1 /* 2 * Copyright (c) 1992 OMRON Corporation. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * OMRON Corporation. 8 * 9 * %sccs.include.redist.c% 10 * 11 * @(#)romcons.c 8.1 (Berkeley) 06/10/93 12 */ 13 14 /* romcons.c OCT-21-1991 */ 15 16 #include <sys/types.h> 17 #include <luna68k/luna68k/cons.h> 18 #include <luna68k/stand/romvec.h> 19 20 romcnprobe(cp) 21 struct consdev *cp; 22 { 23 cp->cn_tp = 0; 24 cp->cn_dev = 0; 25 cp->cn_pri = CN_NORMAL; 26 } 27 28 romcninit(cp) 29 struct consdev *cp; 30 { 31 } 32 33 romcngetc(dev) 34 dev_t dev; 35 { 36 int c; 37 38 for (;;) 39 if ((c = ROM_getchar()) != -1) 40 break; 41 42 return(c); 43 } 44 45 romcnputc(dev, c) 46 dev_t dev; 47 int c; 48 { 49 ROM_putchar(c); 50 } 51