keyboard.h 491 B

123456789101112131415161718192021
  1. #ifndef __DEVICE_KEYBOARD_H
  2. #define __DEVICE_KEYBOARD_H
  3. /******************************
  4. * IO Port Access Type Purpose
  5. * 0x60 Read/Write Data Port
  6. * 0x64 Read Status Register
  7. * 0x64 Write Command Registe
  8. ******************************/
  9. #define KBD_DATA_PORT 0x60
  10. #define KBD_STATUS_PORT 0x64
  11. #define KBD_STATUS_MASK 0x02
  12. // 键盘中断处理程序
  13. static void intr_keyboard_handler(void);
  14. void keyboard_init(void);
  15. extern struct ioqueue keyboard_buf;
  16. #endif // !__DEVICE_KEYBOARD_H