refactor + wip bios call from protected mode
This commit is contained in:
1 parent
121e13165b
commit
766a9c981c
8 files changed
+389
-136
No files matched your search
@@ -19,20 +19,6 @@
|
||||
%define VGA_WIDTH 80
|
||||
%define VGA_HEIGHT 25
|
||||
|
||||
%define INTEL_8042_IO_DATA 0x60
|
||||
%define INTEL_8042_IN_STATUS 0x64
|
||||
%define INTEL_8042_OUT_CMD 0x64
|
||||
|
||||
%define INTEL_8042_STATUS_BIT_OBUF 0
|
||||
%define INTEL_8042_STATUS_BIT_IBUF 1
|
||||
%define INTEL_8042_STATUS_MASK_OBUF (1 << INTEL_8042_STATUS_BIT_OBUF)
|
||||
%define INTEL_8042_STATUS_MASK_IBUF (1 << INTEL_8042_STATUS_BIT_IBUF)
|
||||
|
||||
%define INTEL_8042_CMD_PS2_1_DISABLE 0xad
|
||||
%define INTEL_8042_CMD_PS2_1_ENABLE 0xae
|
||||
%define INTEL_8042_CMD_CONTROLLER_OUT_PORT_READ 0xd0
|
||||
%define INTEL_8042_CMD_CONTROLLER_OUT_PORT_WRITE 0xd1
|
||||
|
||||
; ASCII string "SMAP", which is used by e820 as a magic number argument and return value.
|
||||
%define E820_MAGIC 0x534d4150
|
||||
; Size of entry returned by e820. This is less than MEMMAP_ENT_SIZE because we add some fields of
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
%ifndef BOOT_PS2_H
|
||||
%define BOOT_PS2_H
|
||||
|
||||
%define INTEL_8042_IO_DATA 0x60
|
||||
%define INTEL_8042_IN_STATUS 0x64
|
||||
%define INTEL_8042_OUT_CMD 0x64
|
||||
|
||||
%define INTEL_8042_STATUS_BIT_OBUF 0
|
||||
%define INTEL_8042_STATUS_BIT_IBUF 1
|
||||
%define INTEL_8042_STATUS_MASK_OBUF (1 << INTEL_8042_STATUS_BIT_OBUF)
|
||||
%define INTEL_8042_STATUS_MASK_IBUF (1 << INTEL_8042_STATUS_BIT_IBUF)
|
||||
|
||||
%define INTEL_8042_CMD_PS2_1_DISABLE 0xad
|
||||
%define INTEL_8042_CMD_PS2_1_ENABLE 0xae
|
||||
%define INTEL_8042_CMD_CONTROLLER_OUT_PORT_READ 0xd0
|
||||
%define INTEL_8042_CMD_CONTROLLER_OUT_PORT_WRITE 0xd1
|
||||
|
||||
%endif
|
||||
Reference in new issue
Block a user