/* Remake devio.c when this is changed */
#ifdef DEVIO

extern wd_open(), wd_read(),wd_write();
/* extern fd_open(), fd_read(),fd_write(); */
extern tty_open(), tty_close(), tty_read(),tty_write();
extern lpr_open(), lpr_close(), lpr_write();
extern mem_read(),mem_write();
extern mt_read(), mt_write(), mt_open(), mt_close();
extern null_write();


static struct devsw dev_tab[] =  /* The device driver switch table */
{
    { 0x6680, wd_open, ok,       wd_read, wd_write, nogood },
    { 0, ok, ok, ok, null_write, nogood },			/* /dev/null */
/*  { 0, fd_open, ok,       fd_read, fd_write, nogood },	/* floppy */
    { 0x80a0, wd_open, ok,       wd_read, wd_write, nogood },
    { 0x6066, wd_open, ok,       wd_read, wd_write, nogood },   /* Swap */
    { 0, lpr_open, lpr_close, nogood, lpr_write, nogood},     /* printer */
    { 0, tty_open, tty_close, tty_read, tty_write, ok },      /* /dev/tty */
    { 1, tty_open, tty_close, tty_read, tty_write, ok },      /* tty1 */
    { 2, tty_open, tty_close, tty_read, tty_write, ok },      /* tty2 */
    { 0, ok, ok, ok, null_write, nogood },			/* /dev/null */
    { 0, ok, ok, mem_read, mem_write, nogood },		     /* /dev/mem */
    { 0, mt_open, mt_close, mt_read, mt_write, nogood }
};

#endif

#define NDEVS   3    /* Devices 0..NDEVS-1 are capable of being mounted */
#define TTYDEV  6    /* Device used by kernel for messages, panics */
		     /* Also initial process controlling tty */
#define SWAPDEV  3   /* Device for swapping. */
#define NBUFS  5     /* Number of block buffers */

