#define UDATA_BLOCKS 0 /* We swap the stash not the uarea */
#define UDATA_SWAPSIZE 0
-#define BOOT_TTY (1) /* Set this to default device for stdio, stderr */
+#define BOOT_TTY (513) /* Set this to default device for stdio, stderr */
/* In this case, the default is the first TTY device */
/* We need a tidier way to do this from the loader */
#include <tty.h>
#include <devsys.h>
#include <devtty.h>
+#include <devmdv.h>
struct devsw dev_tab[] = /* The device driver switch table */
{
-// minor open close read write ioctl
-// -----------------------------------------------------------------
- /* 0: /dev/tty TTY devices */
+ /* 0: /dev/fd Floppy disc block devices, or microdrive etc */
+ { mdv_open, mdv_close, mdv_read, mdv_write, no_ioctl },
+ /* 1: /dev/hd Hard disc block devices */
+ { no_open, no_close, no_rdwr, no_rdwr, no_ioctl },
+ /* 2: /dev/tty TTY devices */
{ tty_open, tty_close, tty_read, tty_write, tty_ioctl },
- /* 1: /dev/mem etc System devices (one offs) */
+ /* 3: /dev/lpr Printer devices */
+ { no_open, no_close, no_rdwr, no_rdwr, no_ioctl },
+ /* 4: /dev/mem etc System devices (one offs) */
{ no_open, no_close, sys_read, sys_write, sys_ioctl },
/* Pack to 7 with nxio if adding private devices and start at 8 */
};