Lines Matching refs:mk712_io
52 static unsigned int mk712_io = 0x260; /* Also 0x200, 0x208, 0x300 */ variable
53 module_param_named(io, mk712_io, uint, 0);
91 status = inb(mk712_io + MK712_STATUS); in mk712_interrupt()
114 last_x = inw(mk712_io + MK712_X) & 0x0fff; in mk712_interrupt()
115 last_y = inw(mk712_io + MK712_Y) & 0x0fff; in mk712_interrupt()
127 outb(0, mk712_io + MK712_CONTROL); /* Reset */ in mk712_open()
132 MK712_POWERUP, mk712_io + MK712_CONTROL); in mk712_open()
134 outb(10, mk712_io + MK712_RATE); /* 187 points per second */ in mk712_open()
147 outb(0, mk712_io + MK712_CONTROL); in mk712_close()
156 if (!request_region(mk712_io, 8, "mk712")) { in mk712_init()
161 outb(0, mk712_io + MK712_CONTROL); in mk712_init()
163 if ((inw(mk712_io + MK712_X) & 0xf000) || /* Sanity check */ in mk712_init()
164 (inw(mk712_io + MK712_Y) & 0xf000) || in mk712_init()
165 (inw(mk712_io + MK712_STATUS) & 0xf333)) { in mk712_init()
207 release_region(mk712_io, 8); in mk712_init()
215 release_region(mk712_io, 8); in mk712_exit()