瀏覽代碼

feat: add port number for keyboard

greatbridf 3 年之前
父節點
當前提交
f26f9d7c34
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/asm/port_io.h

+ 3 - 0
include/asm/port_io.h

@@ -9,6 +9,9 @@
 #define PORT_PIC2_COMMAND (PORT_PIC2)
 #define PORT_PIC2_DATA ((PORT_PIC2) + 1)
 
+#define PORT_KEYBOARD_COMMAND (0x64)
+#define PORT_KEYBOARD_DATA (0x60)
+
 #define PORT_KEYDATA 0x0060u
 
 extern void asm_outb(uint16_t port_number, uint8_t data);