usb_serial.c (227309) | usb_serial.c (228631) |
---|---|
1/* $NetBSD: ucom.c,v 1.40 2001/11/13 06:24:54 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 2001-2003, 2005, 2008 5 * Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/* $NetBSD: ucom.c,v 1.40 2001/11/13 06:24:54 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 2001-2003, 2005, 2008 5 * Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/usb/serial/usb_serial.c 227309 2011-11-07 15:43:11Z ed $"); | 31__FBSDID("$FreeBSD: head/sys/dev/usb/serial/usb_serial.c 228631 2011-12-17 15:08:43Z avg $"); |
32 33/*- 34 * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. 35 * All rights reserved. 36 * 37 * This code is derived from software contributed to The NetBSD Foundation 38 * by Lennart Augustsson (lennart@augustsson.net) at 39 * Carlstedt Research & Technology. --- 1263 unchanged lines hidden (view full) --- 1303 mtx_unlock(sc->sc_mtx); 1304} 1305 1306static cn_probe_t ucom_cnprobe; 1307static cn_init_t ucom_cninit; 1308static cn_term_t ucom_cnterm; 1309static cn_getc_t ucom_cngetc; 1310static cn_putc_t ucom_cnputc; | 32 33/*- 34 * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. 35 * All rights reserved. 36 * 37 * This code is derived from software contributed to The NetBSD Foundation 38 * by Lennart Augustsson (lennart@augustsson.net) at 39 * Carlstedt Research & Technology. --- 1263 unchanged lines hidden (view full) --- 1303 mtx_unlock(sc->sc_mtx); 1304} 1305 1306static cn_probe_t ucom_cnprobe; 1307static cn_init_t ucom_cninit; 1308static cn_term_t ucom_cnterm; 1309static cn_getc_t ucom_cngetc; 1310static cn_putc_t ucom_cnputc; |
1311static cn_grab_t ucom_cngrab; 1312static cn_ungrab_t ucom_cnungrab; |
|
1311 1312CONSOLE_DRIVER(ucom); 1313 1314static void 1315ucom_cnprobe(struct consdev *cp) 1316{ 1317 if (ucom_cons_unit != -1) 1318 cp->cn_pri = CN_NORMAL; --- 8 unchanged lines hidden (view full) --- 1327{ 1328} 1329 1330static void 1331ucom_cnterm(struct consdev *cp) 1332{ 1333} 1334 | 1313 1314CONSOLE_DRIVER(ucom); 1315 1316static void 1317ucom_cnprobe(struct consdev *cp) 1318{ 1319 if (ucom_cons_unit != -1) 1320 cp->cn_pri = CN_NORMAL; --- 8 unchanged lines hidden (view full) --- 1329{ 1330} 1331 1332static void 1333ucom_cnterm(struct consdev *cp) 1334{ 1335} 1336 |
1337static void 1338ucom_cngrab(struct consdev *cp) 1339{ 1340} 1341 1342static void 1343ucom_cnungrab(struct consdev *cp) 1344{ 1345} 1346 |
|
1335static int 1336ucom_cngetc(struct consdev *cd) 1337{ 1338 struct ucom_softc *sc = ucom_cons_softc; 1339 int c; 1340 1341 if (sc == NULL) 1342 return (-1); --- 102 unchanged lines hidden --- | 1347static int 1348ucom_cngetc(struct consdev *cd) 1349{ 1350 struct ucom_softc *sc = ucom_cons_softc; 1351 int c; 1352 1353 if (sc == NULL) 1354 return (-1); --- 102 unchanged lines hidden --- |