coco3: allow normal tty ioctls on drivewire
authorAlan Cox <alan@linux.intel.com>
Wed, 7 Oct 2015 20:33:49 +0000 (21:33 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 7 Oct 2015 20:33:49 +0000 (21:33 +0100)
I'll leave it to Brett to write graphics mode changing and routines to convert
GFX_DRAW and friends into OS/9 escape sequences 8)

Kernel/platform-coco3/devtty.c

index 3f757c8..074a1ea 100644 (file)
@@ -497,7 +497,8 @@ unsigned char vt_map(unsigned char c)
 
 int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)
 {
-       if ( minor > 2 ) goto error; /* remove once DW get its own ioctl() */
+       if ( minor > 2 )        /* remove once DW get its own ioctl() */
+               return tty_ioctl(minor, arg, ptr);
        if (arg >> 8 != 0x03)
                return vt_ioctl(minor, arg, ptr);
        if (arg == GFXIOC_GETINFO)