aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-11-03 09:48:21 -0500
committerKevin O'Connor <kevin@koconnor.net>2014-11-12 12:17:57 -0500
commit09ae7f1b59a18f3b051cc0934efcd09d70fa6171 (patch)
tree3200c153b26ce60cb99f35b8a904d1ae6ca6b427
parent09f876f11743c1143c73a52eb889ae9231f7a5b3 (diff)
downloadseabios-09ae7f1b59a18f3b051cc0934efcd09d70fa6171.zip
seabios-09ae7f1b59a18f3b051cc0934efcd09d70fa6171.tar.gz
seabios-09ae7f1b59a18f3b051cc0934efcd09d70fa6171.tar.bz2
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.h1
-rw-r--r--src/hw/timer.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/hw/ps2port.h b/src/hw/ps2port.h
index 566073a..e5d9014 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 2832dec..5edc9fd 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)