Lines Matching +full:0 +full:xf000
48 static unsigned int mk712_io = 0x260; /* Also 0x200, 0x208, 0x300 */
49 module_param_hw_named(io, mk712_io, uint, ioport, 0);
53 module_param_hw_named(irq, mk712_irq, uint, irq, 0);
57 #define MK712_STATUS 0
64 #define MK712_STATUS_TOUCH 0x10
65 #define MK712_CONVERSION_COMPLETE 0x80
68 #define MK712_ENABLE_INT 0x01
69 #define MK712_INT_ON_CONVERSION_COMPLETE 0x02
70 #define MK712_INT_ON_CHANGE_IN_TOUCH_STATUS 0x04
71 #define MK712_ENABLE_PERIODIC_CONVERSIONS 0x10
72 #define MK712_READ_ONE_POINT 0x20
73 #define MK712_POWERUP 0x40
96 input_report_key(mk712_dev, BTN_TOUCH, 0); in mk712_interrupt()
101 debounce = 0; in mk712_interrupt()
110 last_x = inw(mk712_io + MK712_X) & 0x0fff; in mk712_interrupt()
111 last_y = inw(mk712_io + MK712_Y) & 0x0fff; in mk712_interrupt()
123 outb(0, mk712_io + MK712_CONTROL); /* Reset */ in mk712_open()
134 return 0; in mk712_open()
143 outb(0, mk712_io + MK712_CONTROL); in mk712_close()
157 outb(0, mk712_io + MK712_CONTROL); in mk712_init()
159 if ((inw(mk712_io + MK712_X) & 0xf000) || /* Sanity check */ in mk712_init()
160 (inw(mk712_io + MK712_Y) & 0xf000) || in mk712_init()
161 (inw(mk712_io + MK712_STATUS) & 0xf333)) { in mk712_init()
177 mk712_dev->id.vendor = 0x0005; in mk712_init()
178 mk712_dev->id.product = 0x0001; in mk712_init()
179 mk712_dev->id.version = 0x0100; in mk712_init()
184 mk712_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in mk712_init()
186 input_set_abs_params(mk712_dev, ABS_X, 0, 0xfff, 88, 0); in mk712_init()
187 input_set_abs_params(mk712_dev, ABS_Y, 0, 0xfff, 88, 0); in mk712_init()
189 if (request_irq(mk712_irq, mk712_interrupt, 0, "mk712", mk712_dev)) { in mk712_init()
199 return 0; in mk712_init()