#include <devtty.h>
#include <blkdev.h>
+
struct devsw dev_tab[] = /* The device driver switch table */
{
// minor open close read write ioctl
/* 1: /dev/fd Floppy disc block devices */
{ nxio_open, no_close, no_rdwr, no_rdwr, no_ioctl },
/* 2: /dev/tty TTY devices */
- { tty_open, my_tty_close, tty_read, tty_write, tty_ioctl },
+ { tty_open, my_tty_close, tty_read, tty_write, gfx_ioctl },
/* 3: /dev/lpr Printer devices */
{ nxio_open, no_close, no_rdwr, no_rdwr, no_ioctl },
/* 4: /dev/mem etc System devices (one offs) */
extern struct pty *curpty;
int my_tty_close( uint8_t minor ); /* wrapper call to close DW ports */
+int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr);
#endif