Unstaticized cx_cdevsw (it is used in if_cx.c).

Added a prototype.
This commit is contained in:
Bruce Evans 1995-12-10 21:08:11 +00:00
parent 81ab2caf0a
commit cb8cad01f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12744

View file

@ -61,6 +61,9 @@
#include <machine/cronyx.h> #include <machine/cronyx.h>
#include <i386/isa/cxreg.h> #include <i386/isa/cxreg.h>
extern void cxswitch (cx_chan_t *c, cx_soft_opt_t new);
extern timeout_t cxtimeout;
#ifdef DEBUG #ifdef DEBUG
# define print(s) printf s # define print(s) printf s
#else #else
@ -89,18 +92,17 @@ static d_select_t cxselect;
# define CDEV_MAJOR 42 # 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*/ { cxopen, cxclose, cxread, cxwrite, /*42*/
cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */ cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */
cxselect, nommap, NULL, "cx", NULL, -1 }; cxselect, nommap, NULL, "cx", NULL, -1 };
#else #else
struct tty *cx_tty [NCX*NCHAN]; /* tty data */ struct tty *cx_tty [NCX*NCHAN]; /* tty data */
#endif #endif
static void cxoproc (struct tty *tp); static void cxoproc (struct tty *tp);
static int cxparam (struct tty *tp, struct termios *t); 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) int cxopen (dev_t dev, int flag, int mode, struct proc *p)
{ {