Deleted Added
sdiff udiff text old ( 225214 ) new ( 228631 )
full compact
1/*-
2 * Copyright (C) 2001 Benno Rice.
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

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

19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 225214 2011-08-27 14:24:27Z rwatson $");
28
29#include "opt_ofw.h"
30
31#include <sys/param.h>
32#include <sys/kdb.h>
33#include <sys/kernel.h>
34#include <sys/priv.h>
35#include <sys/systm.h>

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

69
70static void ofw_timeout(void *);
71
72static cn_probe_t ofw_cnprobe;
73static cn_init_t ofw_cninit;
74static cn_term_t ofw_cnterm;
75static cn_getc_t ofw_cngetc;
76static cn_putc_t ofw_cnputc;
77
78CONSOLE_DRIVER(ofw);
79
80static void
81cn_drvinit(void *unused)
82{
83 phandle_t options;
84 char output[32];

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

187 strcpy(cp->cn_name, "ofwcons");
188}
189
190static void
191ofw_cnterm(struct consdev *cp)
192{
193}
194
195static int
196ofw_cngetc(struct consdev *cp)
197{
198 unsigned char ch;
199
200 if (OF_read(stdin, &ch, 1) > 0) {
201#if defined(KDB)
202 kdb_alt_break(ch, &alt_break_state);

--- 20 unchanged lines hidden ---