ofw_console.c (225214) | ofw_console.c (228631) |
---|---|
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> | 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 $"); | 27__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 228631 2011-12-17 15:08:43Z avg $"); |
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; | 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; |
77static cn_grab_t ofw_cngrab; 78static cn_ungrab_t ofw_cnungrab; |
|
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 | 79 80CONSOLE_DRIVER(ofw); 81 82static void 83cn_drvinit(void *unused) 84{ 85 phandle_t options; 86 char output[32]; --- 102 unchanged lines hidden (view full) --- 189 strcpy(cp->cn_name, "ofwcons"); 190} 191 192static void 193ofw_cnterm(struct consdev *cp) 194{ 195} 196 |
197static void 198ofw_cngrab(struct consdev *cp) 199{ 200} 201 202static void 203ofw_cnungrab(struct consdev *cp) 204{ 205} 206 |
|
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 --- | 207static int 208ofw_cngetc(struct consdev *cp) 209{ 210 unsigned char ch; 211 212 if (OF_read(stdin, &ch, 1) > 0) { 213#if defined(KDB) 214 kdb_alt_break(ch, &alt_break_state); --- 20 unchanged lines hidden --- |