cfe_console.c (225214) | cfe_console.c (228631) |
---|---|
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 225214 2011-08-27 14:24:27Z rwatson $"); | 28__FBSDID("$FreeBSD: head/sys/dev/cfe/cfe_console.c 228631 2011-12-17 15:08:43Z avg $"); |
29 30#include <sys/param.h> 31#include <sys/kdb.h> 32#include <sys/kernel.h> 33#include <sys/priv.h> 34#include <sys/systm.h> 35#include <sys/types.h> 36#include <sys/conf.h> --- 34 unchanged lines hidden (view full) --- 71 72static void cfe_timeout(void *); 73 74static cn_probe_t cfe_cnprobe; 75static cn_init_t cfe_cninit; 76static cn_term_t cfe_cnterm; 77static cn_getc_t cfe_cngetc; 78static cn_putc_t cfe_cnputc; | 29 30#include <sys/param.h> 31#include <sys/kdb.h> 32#include <sys/kernel.h> 33#include <sys/priv.h> 34#include <sys/systm.h> 35#include <sys/types.h> 36#include <sys/conf.h> --- 34 unchanged lines hidden (view full) --- 71 72static void cfe_timeout(void *); 73 74static cn_probe_t cfe_cnprobe; 75static cn_init_t cfe_cninit; 76static cn_term_t cfe_cnterm; 77static cn_getc_t cfe_cngetc; 78static cn_putc_t cfe_cnputc; |
79static cn_grab_t cfe_cngrab; 80static cn_ungrab_t cfe_cnungrab; |
|
79 80CONSOLE_DRIVER(cfe); 81 82static void 83cn_drvinit(void *unused) 84{ 85 struct tty *tp; 86 --- 91 unchanged lines hidden (view full) --- 178} 179 180static void 181cfe_cnterm(struct consdev *cp) 182{ 183 184} 185 | 81 82CONSOLE_DRIVER(cfe); 83 84static void 85cn_drvinit(void *unused) 86{ 87 struct tty *tp; 88 --- 91 unchanged lines hidden (view full) --- 180} 181 182static void 183cfe_cnterm(struct consdev *cp) 184{ 185 186} 187 |
188static void 189cfe_cngrab(struct consdev *cp) 190{ 191 192} 193 194static void 195cfe_cnungrab(struct consdev *cp) 196{ 197 198} 199 |
|
186static int 187cfe_cngetc(struct consdev *cp) 188{ 189 unsigned char ch; 190 191 if (cfe_read(conhandle, &ch, 1) == 1) { 192#if defined(KDB) 193 kdb_alt_break(ch, &alt_break_state); --- 21 unchanged lines hidden --- | 200static int 201cfe_cngetc(struct consdev *cp) 202{ 203 unsigned char ch; 204 205 if (cfe_read(conhandle, &ch, 1) == 1) { 206#if defined(KDB) 207 kdb_alt_break(ch, &alt_break_state); --- 21 unchanged lines hidden --- |