Deleted Added
full compact
cfe_console.c (186513) cfe_console.c (193018)
1/*-
2 * Copyright (c) 2007 Bruce M. Simpson.
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 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007 Bruce M. Simpson.
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 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/cfe/cfe_console.c 186513 2008-12-27 11:38:41Z bz $");
28__FBSDID("$FreeBSD: head/sys/dev/cfe/cfe_console.c 193018 2009-05-29 06:41:23Z ed $");
29
30#include "opt_comconsole.h"
31
32#include <sys/param.h>
33#include <sys/kdb.h>
34#include <sys/kernel.h>
35#include <sys/priv.h>
36#include <sys/systm.h>

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

84static void
85cn_drvinit(void *unused)
86{
87 char output[32];
88 struct tty *tp;
89
90 if (cfe_consdev.cn_pri != CN_DEAD &&
91 cfe_consdev.cn_name[0] != '\0') {
29
30#include "opt_comconsole.h"
31
32#include <sys/param.h>
33#include <sys/kdb.h>
34#include <sys/kernel.h>
35#include <sys/priv.h>
36#include <sys/systm.h>

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

84static void
85cn_drvinit(void *unused)
86{
87 char output[32];
88 struct tty *tp;
89
90 if (cfe_consdev.cn_pri != CN_DEAD &&
91 cfe_consdev.cn_name[0] != '\0') {
92 tp = tty_alloc(&cfe_ttydevsw, NULL, NULL);
92 tp = tty_alloc(&cfe_ttydevsw, NULL);
93 tty_makedev(tp, NULL, "%s", output);
94 tty_makealias(tp, "cfecons");
95 }
96}
97
98static int
99cfe_tty_open(struct tty *tp)
100{

--- 132 unchanged lines hidden ---
93 tty_makedev(tp, NULL, "%s", output);
94 tty_makealias(tp, "cfecons");
95 }
96}
97
98static int
99cfe_tty_open(struct tty *tp)
100{

--- 132 unchanged lines hidden ---