Lines Matching +full:0 +full:x23c
31 #define LOGIBM_BASE 0x23c
34 #define LOGIBM_DATA_PORT LOGIBM_BASE + 0
39 #define LOGIBM_ENABLE_IRQ 0x00
40 #define LOGIBM_DISABLE_IRQ 0x10
41 #define LOGIBM_READ_X_LOW 0x80
42 #define LOGIBM_READ_X_HIGH 0xa0
43 #define LOGIBM_READ_Y_LOW 0xc0
44 #define LOGIBM_READ_Y_HIGH 0xe0
46 #define LOGIBM_DEFAULT_MODE 0x90
47 #define LOGIBM_CONFIG_BYTE 0x91
48 #define LOGIBM_SIGNATURE_BYTE 0xa5
53 module_param_hw_named(irq, logibm_irq, uint, irq, 0);
64 dx = (inb(LOGIBM_DATA_PORT) & 0xf); in logibm_interrupt()
66 dx |= (inb(LOGIBM_DATA_PORT) & 0xf) << 4; in logibm_interrupt()
68 dy = (inb(LOGIBM_DATA_PORT) & 0xf); in logibm_interrupt()
71 dy |= (buttons & 0xf) << 4; in logibm_interrupt()
87 if (request_irq(logibm_irq, logibm_interrupt, 0, "logibm", NULL)) { in logibm_open()
92 return 0; in logibm_open()
133 logibm_dev->id.vendor = 0x0003; in logibm_init()
134 logibm_dev->id.product = 0x0001; in logibm_init()
135 logibm_dev->id.version = 0x0100; in logibm_init()
137 logibm_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in logibm_init()
140 logibm_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); in logibm_init()
149 return 0; in logibm_init()