From 1fb1e88b62886f3e47349a0c5198b99d11261637 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 7 Oct 2015 21:33:49 +0100 Subject: [PATCH] coco3: allow normal tty ioctls on drivewire 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 3f757c82..074a1ea0 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -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) -- 2.34.1