Deleted Added
full compact
dcons_os.c (190771) dcons_os.c (193018)
1/*-
2 * Copyright (C) 2003,2004
3 * Hidetoshi Shimokawa. 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 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (C) 2003,2004
3 * Hidetoshi Shimokawa. 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 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/dev/dcons/dcons_os.c 190771 2009-04-06 13:09:02Z ed $
34 * $FreeBSD: head/sys/dev/dcons/dcons_os.c 193018 2009-05-29 06:41:23Z ed $
35 */
36
37#include <sys/param.h>
38#include <sys/kdb.h>
39#include <gdb/gdb.h>
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/systm.h>

--- 309 unchanged lines hidden (view full) ---

352
353static int
354dcons_attach_port(int port, char *name, int flags)
355{
356 struct dcons_softc *dc;
357 struct tty *tp;
358
359 dc = &sc[port];
35 */
36
37#include <sys/param.h>
38#include <sys/kdb.h>
39#include <gdb/gdb.h>
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/systm.h>

--- 309 unchanged lines hidden (view full) ---

352
353static int
354dcons_attach_port(int port, char *name, int flags)
355{
356 struct dcons_softc *dc;
357 struct tty *tp;
358
359 dc = &sc[port];
360 tp = tty_alloc(&dcons_ttydevsw, dc, NULL);
360 tp = tty_alloc(&dcons_ttydevsw, dc);
361 dc->flags = flags;
362 dc->tty = tp;
363 tty_init_console(tp, 0);
364 tty_makedev(tp, NULL, "%s", name);
365 return(0);
366}
367
368static int

--- 120 unchanged lines hidden ---
361 dc->flags = flags;
362 dc->tty = tp;
363 tty_init_console(tp, 0);
364 tty_makedev(tp, NULL, "%s", name);
365 return(0);
366}
367
368static int

--- 120 unchanged lines hidden ---