diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-11-03 09:48:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-11-12 12:17:57 -0500 |
commit | 09ae7f1b59a18f3b051cc0934efcd09d70fa6171 (patch) | |
tree | 3200c153b26ce60cb99f35b8a904d1ae6ca6b427 | |
parent | 09f876f11743c1143c73a52eb889ae9231f7a5b3 (diff) | |
download | seabios-09ae7f1b59a18f3b051cc0934efcd09d70fa6171.tar.gz |
Minor - move PORT_PS2_CTRLB from hw/ps2port.h to hw/timer.c
The PORT_PS2_CTRLB port is only used by timers - it's just a
historical artifact that it was part of the original ps2 controller.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/hw/ps2port.h | 1 | ||||
-rw-r--r-- | src/hw/timer.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/hw/ps2port.h b/src/hw/ps2port.h index 566073a8..e5d9014b 100644 --- a/src/hw/ps2port.h +++ b/src/hw/ps2port.h @@ -5,7 +5,6 @@ #include "types.h" // u8 #define PORT_PS2_DATA 0x0060 -#define PORT_PS2_CTRLB 0x0061 #define PORT_PS2_STATUS 0x0064 // Standard commands. diff --git a/src/hw/timer.c b/src/hw/timer.c index 2832dece..5edc9fdb 100644 --- a/src/hw/timer.c +++ b/src/hw/timer.c @@ -7,7 +7,6 @@ #include "biosvar.h" // GET_LOW #include "config.h" // CONFIG_* #include "output.h" // dprintf -#include "ps2port.h" // PORT_PS2_CTRLB #include "stacks.h" // yield #include "util.h" // timer_setup #include "x86.h" // cpuid @@ -16,6 +15,7 @@ #define PORT_PIT_COUNTER1 0x0041 #define PORT_PIT_COUNTER2 0x0042 #define PORT_PIT_MODE 0x0043 +#define PORT_PS2_CTRLB 0x0061 // Bits for PORT_PIT_MODE #define PM_SEL_TIMER0 (0<<6) |