25 #define KBD_REPORT_UNKN 26 #define KBD_REPORT_TIMEOUTS 27 #undef KBD_IS_FOCUS_9000 28 #undef INITIALIZE_MOUSE 30 #define KBD_INIT_TIMEOUT 1000 31 #define KBC_TIMEOUT 250 32 #define KBD_TIMEOUT 1000 38 extern unsigned char pckbd_read_mask;
39 extern unsigned char aux_device_present;
45 #define KBD_STATUS_REG 0x64 46 #define KBD_CNTL_REG 0x64 47 #define KBD_DATA_REG 0x60 53 #define KBD_CCMD_READ_MODE 0x20 54 #define KBD_CCMD_WRITE_MODE 0x60 55 #define KBD_CCMD_GET_VERSION 0xA1 56 #define KBD_CCMD_MOUSE_DISABLE 0xA7 57 #define KBD_CCMD_MOUSE_ENABLE 0xA8 58 #define KBD_CCMD_TEST_MOUSE 0xA9 59 #define KBD_CCMD_SELF_TEST 0xAA 60 #define KBD_CCMD_KBD_TEST 0xAB 61 #define KBD_CCMD_KBD_DISABLE 0xAD 62 #define KBD_CCMD_KBD_ENABLE 0xAE 63 #define KBD_CCMD_WRITE_AUX_OBUF 0xD3 65 #define KBD_CCMD_WRITE_MOUSE 0xD4 71 #define KBD_CMD_SET_LEDS 0xED 72 #define KBD_CMD_SET_RATE 0xF3 73 #define KBD_CMD_ENABLE 0xF4 74 #define KBD_CMD_DISABLE 0xF5 75 #define KBD_CMD_RESET 0xFF 81 #define KBD_REPLY_POR 0xAA 82 #define KBD_REPLY_ACK 0xFA 83 #define KBD_REPLY_RESEND 0xFE 89 #define KBD_STAT_OBF 0x01 90 #define KBD_STAT_IBF 0x02 91 #define KBD_STAT_SELFTEST 0x04 92 #define KBD_STAT_CMD 0x08 93 #define KBD_STAT_UNLOCKED 0x10 94 #define KBD_STAT_MOUSE_OBF 0x20 95 #define KBD_STAT_GTO 0x40 96 #define KBD_STAT_PERR 0x80 98 #define AUX_STAT_OBF (KBD_STAT_OBF | KBD_STAT_MOUSE_OBF) 104 #define KBD_MODE_KBD_INT 0x01 105 #define KBD_MODE_MOUSE_INT 0x02 106 #define KBD_MODE_SYS 0x04 107 #define KBD_MODE_NO_KEYLOCK 0x08 108 #define KBD_MODE_DISABLE_KBD 0x10 109 #define KBD_MODE_DISABLE_MOUSE 0x20 110 #define KBD_MODE_KCC 0x40 111 #define KBD_MODE_RFU 0x80 117 #define AUX_SET_RES 0xE8 118 #define AUX_SET_SCALE11 0xE6 119 #define AUX_SET_SCALE21 0xE7 120 #define AUX_GET_SCALE 0xE9 121 #define AUX_SET_STREAM 0xEA 122 #define AUX_SET_SAMPLE 0xF3 123 #define AUX_ENABLE_DEV 0xF4 124 #define AUX_DISABLE_DEV 0xF5 125 #define AUX_RESET 0xFF 128 #define AUX_BUF_SIZE 512 136 struct wait_queue *proc_list;
137 struct fasync_struct *fasync;
138 unsigned char buf[AUX_BUF_SIZE];
142 #define kbd_read_input() inb(KBD_DATA_REG) 143 #define kbd_read_status() inb(KBD_STATUS_REG) 144 #define kbd_write_output(val) outb(val, KBD_DATA_REG) 145 #define kbd_write_command(val) outb(val, KBD_CNTL_REG) Definition: ps2_mouse.h:133