
/* 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(), tty_ioctl();
extern lpr_open(), lpr_close(), lpr_write();
extern kmem_read(),kmem_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, 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, tty_ioctl },  /* /dev/tty */
    { 1, tty_open, tty_close, tty_read, tty_write, tty_ioctl },  /* tty1 */
    { 2, tty_open, tty_close, tty_read, tty_write, tty_ioctl },  /* tty2 */
    { 0, ok, ok, ok, null_write, nogood },		      /* /dev/null */
    { 0, ok, ok, kmem_read, kmem_write, nogood },	      /* /dev/kmem */
    { 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  10     /* Number of block buffers */


#ifdef MACHDEP

struct pg_descr pgtab[] = {
	0x8000, 0, 0,
	0x8010, 0, 0,
	0x8020, 0, 0,
	0x8030, 0, 0,
	0x8040, 0, 0,
	0x8050, 0, 0,
	0x8060, 0, 0,
	0x8070, 0, 0,
	0x8080, 0, 0,
	0x8090, 0, 0,
	0x80a0, 0, 0,
	0x80b0, 0, 0,
	0x80c0, 0, 0,
	0x80d0, 0, 0,
	0x80e0, 0, 0,
	0x80f0, 0, 0,
	0xc000, 0, 0, /* 5 unused pages in system address range */
	0xc0c0,	0, 0,
	0xc0d0, 0, 0,
	0xc0e0, 0, 0,
	0xc0f0, 0, 0
};

int npages = sizeof(pgtab) / sizeof(struct pg_descr);


#endif
