mambo_console.c (225214) | mambo_console.c (228631) |
---|---|
1/*- 2 * Copyright (C) 2008 by Nathan Whitehorn. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 19 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 20 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 21 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 22 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 2008 by Nathan Whitehorn. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 19 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 20 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 21 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 22 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/powerpc/mambo/mambo_console.c 225214 2011-08-27 14:24:27Z rwatson $"); | 26__FBSDID("$FreeBSD: head/sys/powerpc/mambo/mambo_console.c 228631 2011-12-17 15:08:43Z avg $"); |
27 28#include <sys/param.h> 29#include <sys/kdb.h> 30#include <sys/kernel.h> 31#include <sys/priv.h> 32#include <sys/systm.h> 33#include <sys/types.h> 34#include <sys/conf.h> --- 29 unchanged lines hidden (view full) --- 64 65static void mambo_timeout(void *); 66 67static cn_probe_t mambo_cnprobe; 68static cn_init_t mambo_cninit; 69static cn_term_t mambo_cnterm; 70static cn_getc_t mambo_cngetc; 71static cn_putc_t mambo_cnputc; | 27 28#include <sys/param.h> 29#include <sys/kdb.h> 30#include <sys/kernel.h> 31#include <sys/priv.h> 32#include <sys/systm.h> 33#include <sys/types.h> 34#include <sys/conf.h> --- 29 unchanged lines hidden (view full) --- 64 65static void mambo_timeout(void *); 66 67static cn_probe_t mambo_cnprobe; 68static cn_init_t mambo_cninit; 69static cn_term_t mambo_cnterm; 70static cn_getc_t mambo_cngetc; 71static cn_putc_t mambo_cnputc; |
72static cn_grab_t mambo_cngrab; 73static cn_ungrab_t mambo_cnungrab; |
|
72 73CONSOLE_DRIVER(mambo); 74 75static void 76cn_drvinit(void *unused) 77{ 78 79 if (mambo_consdev.cn_pri != CN_DEAD && --- 61 unchanged lines hidden (view full) --- 141 strcpy(cp->cn_name, "mambocons"); 142} 143 144static void 145mambo_cnterm(struct consdev *cp) 146{ 147} 148 | 74 75CONSOLE_DRIVER(mambo); 76 77static void 78cn_drvinit(void *unused) 79{ 80 81 if (mambo_consdev.cn_pri != CN_DEAD && --- 61 unchanged lines hidden (view full) --- 143 strcpy(cp->cn_name, "mambocons"); 144} 145 146static void 147mambo_cnterm(struct consdev *cp) 148{ 149} 150 |
151static void 152mambo_cngrab(struct consdev *cp) 153{ 154} 155 156static void 157mambo_cnungrab(struct consdev *cp) 158{ 159} 160 |
|
149static int 150mambo_cngetc(struct consdev *cp) 151{ 152 int ch; 153 154 ch = mambocall(MAMBO_CONSOLE_READ); 155 156 if (ch > 0 && ch < 0xff) { --- 17 unchanged lines hidden --- | 161static int 162mambo_cngetc(struct consdev *cp) 163{ 164 int ch; 165 166 ch = mambocall(MAMBO_CONSOLE_READ); 167 168 if (ch > 0 && ch < 0xff) { --- 17 unchanged lines hidden --- |