diff options
author | bde <bde@FreeBSD.org> | 1995-12-10 21:08:11 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-10 21:08:11 +0000 |
commit | e423d4fa01ba759ac71f8832b8dd3fd134134004 (patch) | |
tree | c24e8c28cbd9fbc1c4e39f31535bdf773b7069ae /sys/i386/isa/cx.c | |
parent | 644a38f2a8c2703b7a30bacebb79ea959c94a469 (diff) | |
download | FreeBSD-src-e423d4fa01ba759ac71f8832b8dd3fd134134004.zip FreeBSD-src-e423d4fa01ba759ac71f8832b8dd3fd134134004.tar.gz |
Unstaticized cx_cdevsw (it is used in if_cx.c).
Added a prototype.
Diffstat (limited to 'sys/i386/isa/cx.c')
-rw-r--r-- | sys/i386/isa/cx.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index 86b5ade..09a92b1 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -61,6 +61,9 @@ #include <machine/cronyx.h> #include <i386/isa/cxreg.h> +extern void cxswitch (cx_chan_t *c, cx_soft_opt_t new); +extern timeout_t cxtimeout; + #ifdef DEBUG # define print(s) printf s #else @@ -89,18 +92,17 @@ static d_select_t cxselect; # define CDEV_MAJOR 42 -static struct cdevsw cx_cdevsw = +/* Don't make this static. if_cx.c uses it. */ +struct cdevsw cx_cdevsw = { cxopen, cxclose, cxread, cxwrite, /*42*/ cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */ cxselect, nommap, NULL, "cx", NULL, -1 }; - #else struct tty *cx_tty [NCX*NCHAN]; /* tty data */ #endif static void cxoproc (struct tty *tp); static int cxparam (struct tty *tp, struct termios *t); -void cxswitch (cx_chan_t *c, cx_soft_opt_t new); int cxopen (dev_t dev, int flag, int mode, struct proc *p) { |