Lines Matching +full:0 +full:x801
44 #define HIL_DATA 0x800
45 #define HIL_CMD 0x801
52 #define HILBASE 0xf0428000UL /* HP300 (m68k) port address */
53 #define HIL_DATA 0x1
54 #define HIL_CMD 0x3
70 #define hil_command(x) do { hil_writeb((x), HILBASE + HIL_CMD); } while (0)
72 #define hil_write_data(x) do { hil_writeb((x), HILBASE + HIL_DATA); } while (0)
76 #define HIL_BUSY 0x02
77 #define HIL_DATA_RDY 0x01
79 #define HIL_SETARD 0xA0 /* set auto-repeat delay */
80 #define HIL_SETARR 0xA2 /* set auto-repeat rate */
81 #define HIL_SETTONE 0xA3 /* set tone generator */
82 #define HIL_CNMT 0xB2 /* clear nmi */
83 #define HIL_INTON 0x5C /* Turn on interrupts. */
84 #define HIL_INTOFF 0x5D /* Turn off interrupts. */
86 #define HIL_READKBDSADR 0xF9
87 #define HIL_WRITEKBDSADR 0xE9
116 switch (hil_dev.data[0]) { in poll_finished()
117 case 0x40: in poll_finished()
118 down = (hil_dev.data[1] & 1) == 0; in poll_finished()
124 hil_dev.curdev = 0; in poll_finished()
130 if (c & 0x8) { in handle_status()
132 if (c & 0x10) in handle_status()
135 if (c & 0x10) { in handle_status()
139 hil_dev.ptr = 0; in handle_status()
163 case 0x5: in hil_interrupt()
166 case 0x6: in hil_interrupt()
169 case 0x4: in hil_interrupt()
214 err = request_irq(HIL_IRQ, hil_interrupt, 0, "hil", hil_dev.dev_id); in hil_keyb_init()
221 hil_do(HIL_INTON, NULL, 0); in hil_keyb_init()
224 hil_dev.valid = 0; /* clear any pending data */ in hil_keyb_init()
225 hil_do(HIL_READKBDSADR, NULL, 0); in hil_keyb_init()
232 hil_dev.valid = 0; in hil_keyb_init()
233 if (c == 0) { in hil_keyb_init()
242 c = 0; in hil_keyb_init()
245 for (i = 0; i < HIL_KEYCODES_SET1_TBLSIZE; i++) in hil_keyb_init()
249 hil_dev.dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP); in hil_keyb_init()
250 hil_dev.dev->ledbit[0] = BIT_MASK(LED_NUML) | BIT_MASK(LED_CAPSL) | in hil_keyb_init()
253 hil_dev.dev->keycodesize= sizeof(hphilkeyb_keycode[0]); in hil_keyb_init()
260 hil_dev.dev->id.product = 0x0001; in hil_keyb_init()
261 hil_dev.dev->id.version = 0x0010; in hil_keyb_init()
269 printk(KERN_INFO "input: %s, ID %d at 0x%08lx (irq %d) found and attached\n", in hil_keyb_init()
272 return 0; in hil_keyb_init()
275 hil_do(HIL_INTOFF, NULL, 0); in hil_keyb_init()
289 hil_do(HIL_INTOFF, NULL, 0); in hil_keyb_exit()
303 printk(KERN_WARNING "HIL: IRQ not found for HIL bus at 0x%p\n", in hil_probe_chip()
312 printk(KERN_INFO "Found HIL bus at 0x%08lx, IRQ %d\n", hil_base, hil_irq); in hil_probe_chip()
323 { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00073 },
324 { 0, }
327 #if 0
378 return 0; in hil_init()