coco3: add gfx_ioctl to system
authorBrett Gordon <beretta42@gmail.com>
Fri, 2 Oct 2015 05:22:06 +0000 (01:22 -0400)
committerBrett Gordon <beretta42@gmail.com>
Fri, 2 Oct 2015 05:22:06 +0000 (01:22 -0400)
Kernel/platform-coco3/devices.c
Kernel/platform-coco3/devtty.h

index 22fd435..d1c1963 100644 (file)
@@ -8,6 +8,7 @@
 #include <devtty.h>
 #include <blkdev.h>
 
+
 struct devsw dev_tab[] =  /* The device driver switch table */
 {
 // minor    open         close        read      write       ioctl
@@ -17,7 +18,7 @@ struct devsw dev_tab[] =  /* The device driver switch table */
   /* 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) */
index 339ae49..53a518a 100644 (file)
@@ -19,5 +19,6 @@ static struct pty {
 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