keyboard.h 422 B

12345678910111213141516171819
  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. void keyboard_init(void);
  13. extern struct ioqueue keyboard_buf;
  14. #endif // !__DEVICE_KEYBOARD_H