summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-01-07 14:14:24 +0000
committeryokota <yokota@FreeBSD.org>1999-01-07 14:14:24 +0000
commit9625424b5fb4fcb6b1736c570b2cdb8125017e32 (patch)
tree7f60287f9f3401103df2c43566ac702ccc350468 /sys/i386/isa/pcvt
parentd3a68b2218865fe260aba70f878854dd945b07d4 (diff)
downloadFreeBSD-src-9625424b5fb4fcb6b1736c570b2cdb8125017e32.zip
FreeBSD-src-9625424b5fb4fcb6b1736c570b2cdb8125017e32.tar.gz
Remove a hard-coded table of kernel console I/O functions exported
from sc, vt and sio drivers. Use instead a linker_set to collect them. Staticize ??cngetc(), ??cnputc(), etc functions in sc and vt drivers. We must still have siocngetc() and siocnputc() as globals because they are directly referred to by i386-gdbstub.c :-( Oked by: bde
Diffstat (limited to 'sys/i386/isa/pcvt')
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 99217c0..26c02f3 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -114,6 +114,14 @@ static void vgapelinit(void); /* read initial VGA DAC palette */
static int pcvt_xmode_set(int on, struct proc *p); /* initialize for X mode */
#endif /* XSERVER && !PCVT_USL_VT_COMPAT */
+static cn_probe_t pccnprobe;
+static cn_init_t pccninit;
+static cn_getc_t pccngetc;
+static cn_checkc_t pccncheckc;
+static cn_putc_t pccnputc;
+
+CONS_DRIVER(pc, pccnprobe, pccninit, pccngetc, pccncheckc, pccnputc);
+
static d_open_t pcopen;
static d_close_t pcclose;
static d_read_t pcread;
@@ -1116,7 +1124,7 @@ consinit() /* init for kernel messages during boot */
#endif /* PCVT_NETBSD */
#if PCVT_FREEBSD > 205
-void
+static void
#else
int
#endif
@@ -1171,7 +1179,7 @@ pccnprobe(struct consdev *cp)
}
#if PCVT_FREEBSD > 205
-void
+static void
#else
int
#endif
@@ -1184,7 +1192,7 @@ pccninit(struct consdev *cp)
}
#if PCVT_FREEBSD > 205
-void
+static void
#else
int
#endif
@@ -1218,7 +1226,7 @@ pccnputc(Dev_t dev, U_char c)
#endif
}
-int
+static int
pccngetc(Dev_t dev)
{
register int s;
@@ -1267,7 +1275,7 @@ pccngetc(Dev_t dev)
}
#if PCVT_FREEBSD >= 200
-int
+static int
pccncheckc(Dev_t dev)
{
char *cp;
OpenPOWER on IntegriCloud