Lines Matching refs:mk712_io
48 static unsigned int mk712_io = 0x260; /* Also 0x200, 0x208, 0x300 */ variable
49 module_param_hw_named(io, mk712_io, uint, ioport, 0);
87 status = inb(mk712_io + MK712_STATUS); 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()
128 MK712_POWERUP, mk712_io + MK712_CONTROL); in mk712_open()
130 outb(10, mk712_io + MK712_RATE); /* 187 points per second */ in mk712_open()
143 outb(0, mk712_io + MK712_CONTROL); in mk712_close()
152 if (!request_region(mk712_io, 8, "mk712")) { in mk712_init()
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()
203 release_region(mk712_io, 8); in mk712_init()
211 release_region(mk712_io, 8); in mk712_exit()