소스 검색

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);