Input: remove obsolete maple input drivers

These haven't worked in some time, and we've dropped support for the bus
from the SH tree until someone shows some interest in maintaining it.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Paul Mundt and committed by
Dmitry Torokhov
94f8d28c e2bd470e

-123
-10
drivers/input/keyboard/Kconfig
··· 143 To compile this driver as a module, choose M here: the 144 module will be called spitzkbd. 145 146 - config KEYBOARD_MAPLE 147 - tristate "Maple bus keyboard" 148 - depends on SH_DREAMCAST && MAPLE 149 - help 150 - Say Y here if you have a DreamCast console running Linux and have 151 - a keyboard attached to its Maple bus. 152 - 153 - To compile this driver as a module, choose M here: the 154 - module will be called maple_keyb. 155 - 156 config KEYBOARD_AMIGA 157 tristate "Amiga keyboard" 158 depends on AMIGA
··· 143 To compile this driver as a module, choose M here: the 144 module will be called spitzkbd. 145 146 config KEYBOARD_AMIGA 147 tristate "Amiga keyboard" 148 depends on AMIGA
-1
drivers/input/keyboard/Makefile
··· 5 # Each configuration option enables a list of files. 6 7 obj-$(CONFIG_KEYBOARD_ATKBD) += atkbd.o 8 - obj-$(CONFIG_KEYBOARD_MAPLE) += maple_keyb.o 9 obj-$(CONFIG_KEYBOARD_SUNKBD) += sunkbd.o 10 obj-$(CONFIG_KEYBOARD_LKKBD) += lkkbd.o 11 obj-$(CONFIG_KEYBOARD_XTKBD) += xtkbd.o
··· 5 # Each configuration option enables a list of files. 6 7 obj-$(CONFIG_KEYBOARD_ATKBD) += atkbd.o 8 obj-$(CONFIG_KEYBOARD_SUNKBD) += sunkbd.o 9 obj-$(CONFIG_KEYBOARD_LKKBD) += lkkbd.o 10 obj-$(CONFIG_KEYBOARD_XTKBD) += xtkbd.o
-10
drivers/input/mouse/Kconfig
··· 86 To compile this driver as a module, choose M here: the 87 module will be called pc110pad. 88 89 - config MOUSE_MAPLE 90 - tristate "Maple bus mouse" 91 - depends on SH_DREAMCAST && MAPLE 92 - help 93 - Say Y if you have a DreamCast console and a mouse attached to 94 - its Maple bus. 95 - 96 - To compile this driver as a module, choose M here: the 97 - module will be called maplemouse. 98 - 99 config MOUSE_AMIGA 100 tristate "Amiga mouse" 101 depends on AMIGA
··· 86 To compile this driver as a module, choose M here: the 87 module will be called pc110pad. 88 89 config MOUSE_AMIGA 90 tristate "Amiga mouse" 91 depends on AMIGA
-1
drivers/input/mouse/Makefile
··· 8 obj-$(CONFIG_MOUSE_RISCPC) += rpcmouse.o 9 obj-$(CONFIG_MOUSE_INPORT) += inport.o 10 obj-$(CONFIG_MOUSE_LOGIBM) += logibm.o 11 - obj-$(CONFIG_MOUSE_MAPLE) += maplemouse.o 12 obj-$(CONFIG_MOUSE_PC110PAD) += pc110pad.o 13 obj-$(CONFIG_MOUSE_PS2) += psmouse.o 14 obj-$(CONFIG_MOUSE_SERIAL) += sermouse.o
··· 8 obj-$(CONFIG_MOUSE_RISCPC) += rpcmouse.o 9 obj-$(CONFIG_MOUSE_INPORT) += inport.o 10 obj-$(CONFIG_MOUSE_LOGIBM) += logibm.o 11 obj-$(CONFIG_MOUSE_PC110PAD) += pc110pad.o 12 obj-$(CONFIG_MOUSE_PS2) += psmouse.o 13 obj-$(CONFIG_MOUSE_SERIAL) += sermouse.o
-101
drivers/input/mouse/maplemouse.c
··· 1 - /* 2 - * $Id: maplemouse.c,v 1.2 2004/03/22 01:18:15 lethal Exp $ 3 - * SEGA Dreamcast mouse driver 4 - * Based on drivers/usb/usbmouse.c 5 - */ 6 - 7 - #include <linux/kernel.h> 8 - #include <linux/slab.h> 9 - #include <linux/input.h> 10 - #include <linux/module.h> 11 - #include <linux/init.h> 12 - #include <linux/timer.h> 13 - #include <linux/maple.h> 14 - 15 - MODULE_AUTHOR("YAEGASHI Takeshi <t@keshi.org>"); 16 - MODULE_DESCRIPTION("SEGA Dreamcast mouse driver"); 17 - 18 - static void dc_mouse_callback(struct mapleq *mq) 19 - { 20 - int buttons, relx, rely, relz; 21 - struct maple_device *mapledev = mq->dev; 22 - struct input_dev *dev = mapledev->private_data; 23 - unsigned char *res = mq->recvbuf; 24 - 25 - buttons = ~res[8]; 26 - relx = *(unsigned short *)(res + 12) - 512; 27 - rely = *(unsigned short *)(res + 14) - 512; 28 - relz = *(unsigned short *)(res + 16) - 512; 29 - 30 - input_report_key(dev, BTN_LEFT, buttons & 4); 31 - input_report_key(dev, BTN_MIDDLE, buttons & 9); 32 - input_report_key(dev, BTN_RIGHT, buttons & 2); 33 - input_report_rel(dev, REL_X, relx); 34 - input_report_rel(dev, REL_Y, rely); 35 - input_report_rel(dev, REL_WHEEL, relz); 36 - input_sync(dev); 37 - } 38 - 39 - static int dc_mouse_connect(struct maple_device *dev) 40 - { 41 - unsigned long data = be32_to_cpu(dev->devinfo.function_data[0]); 42 - struct input_dev *input_dev; 43 - 44 - dev->private_data = input_dev = input_allocate_device(); 45 - if (!input_dev) 46 - return -ENOMEM; 47 - 48 - dev->private_data = input_dev; 49 - 50 - input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL); 51 - input_dev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT) | BIT(BTN_MIDDLE); 52 - input_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y) | BIT(REL_WHEEL); 53 - 54 - input_dev->name = dev->product_name; 55 - input_dev->id.bustype = BUS_MAPLE; 56 - 57 - input_register_device(input_dev); 58 - 59 - maple_getcond_callback(dev, dc_mouse_callback, 1, MAPLE_FUNC_MOUSE); 60 - 61 - return 0; 62 - } 63 - 64 - 65 - static void dc_mouse_disconnect(struct maple_device *dev) 66 - { 67 - struct input_dev *input_dev = dev->private_data; 68 - 69 - input_unregister_device(input_dev); 70 - } 71 - 72 - 73 - static struct maple_driver dc_mouse_driver = { 74 - .function = MAPLE_FUNC_MOUSE, 75 - .name = "Dreamcast mouse", 76 - .connect = dc_mouse_connect, 77 - .disconnect = dc_mouse_disconnect, 78 - }; 79 - 80 - 81 - static int __init dc_mouse_init(void) 82 - { 83 - maple_register_driver(&dc_mouse_driver); 84 - return 0; 85 - } 86 - 87 - 88 - static void __exit dc_mouse_exit(void) 89 - { 90 - maple_unregister_driver(&dc_mouse_driver); 91 - } 92 - 93 - 94 - module_init(dc_mouse_init); 95 - module_exit(dc_mouse_exit); 96 - 97 - /* 98 - * Local variables: 99 - * c-basic-offset: 8 100 - * End: 101 - */
···