From 16e8b1bda7edc34dd367e7bc902a3176e890650d Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Fri, 2 Oct 2015 01:22:06 -0400 Subject: [PATCH] coco3: add gfx_ioctl to system --- Kernel/platform-coco3/devices.c | 3 ++- Kernel/platform-coco3/devtty.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-coco3/devices.c b/Kernel/platform-coco3/devices.c index 22fd4353..d1c1963b 100644 --- a/Kernel/platform-coco3/devices.c +++ b/Kernel/platform-coco3/devices.c @@ -8,6 +8,7 @@ #include #include + 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) */ diff --git a/Kernel/platform-coco3/devtty.h b/Kernel/platform-coco3/devtty.h index 339ae494..53a518ae 100644 --- a/Kernel/platform-coco3/devtty.h +++ b/Kernel/platform-coco3/devtty.h @@ -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 -- 2.34.1