Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *  Copyright (c) 1999-2001 Vojtech Pavlik
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *  Based on the work of:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *	David Thompson
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * SpaceTec SpaceOrb 360 and Avenger 6dof controller driver for Linux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/input.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <linux/serio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #define DRIVER_DESC	"SpaceTec SpaceOrb 360 and Avenger 6dof controller driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) MODULE_DESCRIPTION(DRIVER_DESC);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) MODULE_LICENSE("GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  * Constants.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #define SPACEORB_MAX_LENGTH	64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) static int spaceorb_buttons[] = { BTN_TL, BTN_TR, BTN_Y, BTN_X, BTN_B, BTN_A };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) static int spaceorb_axes[] = { ABS_X, ABS_Y, ABS_Z, ABS_RX, ABS_RY, ABS_RZ };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38)  * Per-Orb data.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) struct spaceorb {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	struct input_dev *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	int idx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	unsigned char data[SPACEORB_MAX_LENGTH];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	char phys[32];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) static unsigned char spaceorb_xor[] = "SpaceWare";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) static unsigned char *spaceorb_errors[] = { "EEPROM storing 0 failed", "Receive queue overflow", "Transmit queue timeout",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 		"Bad packet", "Power brown-out", "EEPROM checksum error", "Hardware fault" };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54)  * spaceorb_process_packet() decodes packets the driver receives from the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55)  * SpaceOrb.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) static void spaceorb_process_packet(struct spaceorb *spaceorb)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	struct input_dev *dev = spaceorb->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	unsigned char *data = spaceorb->data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	unsigned char c = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	int axes[6];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	int i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	if (spaceorb->idx < 2) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	for (i = 0; i < spaceorb->idx; i++) c ^= data[i];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	if (c) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	switch (data[0]) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 		case 'R':				/* Reset packet */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 			spaceorb->data[spaceorb->idx - 1] = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 			for (i = 1; i < spaceorb->idx && spaceorb->data[i] == ' '; i++);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 			printk(KERN_INFO "input: %s [%s] is %s\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 				 dev->name, spaceorb->data + i, spaceorb->phys);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 		case 'D':				/* Ball + button data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 			if (spaceorb->idx != 12) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 			for (i = 0; i < 9; i++) spaceorb->data[i+2] ^= spaceorb_xor[i];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 			axes[0] = ( data[2]	 << 3) | (data[ 3] >> 4);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 			axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 			axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 			axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 			axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 			axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 			for (i = 0; i < 6; i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 				input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 			for (i = 0; i < 6; i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 				input_report_key(dev, spaceorb_buttons[i], (data[1] >> i) & 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 		case 'K':				/* Button data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 			if (spaceorb->idx != 5) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 			for (i = 0; i < 6; i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 				input_report_key(dev, spaceorb_buttons[i], (data[2] >> i) & 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 		case 'E':				/* Error packet */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 			if (spaceorb->idx != 4) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 			printk(KERN_ERR "spaceorb: Device error. [ ");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 			for (i = 0; i < 7; i++) if (data[1] & (1 << i)) printk("%s ", spaceorb_errors[i]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 			printk("]\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	input_sync(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) static irqreturn_t spaceorb_interrupt(struct serio *serio,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 		unsigned char data, unsigned int flags)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	struct spaceorb* spaceorb = serio_get_drvdata(serio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	if (~data & 0x80) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 		if (spaceorb->idx) spaceorb_process_packet(spaceorb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 		spaceorb->idx = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	if (spaceorb->idx < SPACEORB_MAX_LENGTH)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 		spaceorb->data[spaceorb->idx++] = data & 0x7f;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	return IRQ_HANDLED;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127)  * spaceorb_disconnect() is the opposite of spaceorb_connect()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) static void spaceorb_disconnect(struct serio *serio)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	struct spaceorb* spaceorb = serio_get_drvdata(serio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	serio_close(serio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	serio_set_drvdata(serio, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	input_unregister_device(spaceorb->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	kfree(spaceorb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141)  * spaceorb_connect() is the routine that is called when someone adds a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)  * new serio device that supports SpaceOrb/Avenger protocol and registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)  * it as an input device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) static int spaceorb_connect(struct serio *serio, struct serio_driver *drv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	struct spaceorb *spaceorb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	struct input_dev *input_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	int err = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	int i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	spaceorb = kzalloc(sizeof(struct spaceorb), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	input_dev = input_allocate_device();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	if (!spaceorb || !input_dev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 		goto fail1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	spaceorb->dev = input_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	snprintf(spaceorb->phys, sizeof(spaceorb->phys), "%s/input0", serio->phys);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	input_dev->name = "SpaceTec SpaceOrb 360 / Avenger";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	input_dev->phys = spaceorb->phys;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 	input_dev->id.bustype = BUS_RS232;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	input_dev->id.vendor = SERIO_SPACEORB;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	input_dev->id.product = 0x0001;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	input_dev->id.version = 0x0100;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	input_dev->dev.parent = &serio->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	for (i = 0; i < 6; i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 		set_bit(spaceorb_buttons[i], input_dev->keybit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	for (i = 0; i < 6; i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 		input_set_abs_params(input_dev, spaceorb_axes[i], -508, 508, 0, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	serio_set_drvdata(serio, spaceorb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	err = serio_open(serio, drv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 		goto fail2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	err = input_register_device(spaceorb->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 		goto fail3;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)  fail3:	serio_close(serio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190)  fail2:	serio_set_drvdata(serio, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)  fail1:	input_free_device(input_dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	kfree(spaceorb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)  * The serio driver structure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) static const struct serio_device_id spaceorb_serio_ids[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 		.type	= SERIO_RS232,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 		.proto	= SERIO_SPACEORB,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 		.id	= SERIO_ANY,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 		.extra	= SERIO_ANY,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	{ 0 }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) MODULE_DEVICE_TABLE(serio, spaceorb_serio_ids);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) static struct serio_driver spaceorb_drv = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	.driver		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 		.name	= "spaceorb",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	.description	= DRIVER_DESC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	.id_table	= spaceorb_serio_ids,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	.interrupt	= spaceorb_interrupt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	.connect	= spaceorb_connect,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	.disconnect	= spaceorb_disconnect,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) module_serio_driver(spaceorb_drv);