uart_tty.c (186521) | uart_tty.c (193018) |
---|---|
1/*- 2 * Copyright (c) 2003 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_tty.c 186521 2008-12-27 16:03:34Z kan $"); | 28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_tty.c 193018 2009-05-29 06:41:23Z ed $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <sys/cons.h> 35#include <sys/fcntl.h> 36#include <sys/interrupt.h> --- 314 unchanged lines hidden (view full) --- 351}; 352 353int 354uart_tty_attach(struct uart_softc *sc) 355{ 356 struct tty *tp; 357 int unit; 358 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <sys/cons.h> 35#include <sys/fcntl.h> 36#include <sys/interrupt.h> --- 314 unchanged lines hidden (view full) --- 351}; 352 353int 354uart_tty_attach(struct uart_softc *sc) 355{ 356 struct tty *tp; 357 int unit; 358 |
359 sc->sc_u.u_tty.tp = tp = tty_alloc(&uart_tty_class, sc, NULL); | 359 sc->sc_u.u_tty.tp = tp = tty_alloc(&uart_tty_class, sc); |
360 361 unit = device_get_unit(sc->sc_dev); 362 363 if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) { 364 sprintf(((struct consdev *)sc->sc_sysdev->cookie)->cn_name, 365 "ttyu%r", unit); 366 tty_init_console(tp, 0); 367 } --- 22 unchanged lines hidden --- | 360 361 unit = device_get_unit(sc->sc_dev); 362 363 if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) { 364 sprintf(((struct consdev *)sc->sc_sysdev->cookie)->cn_name, 365 "ttyu%r", unit); 366 tty_init_console(tp, 0); 367 } --- 22 unchanged lines hidden --- |