]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
Minor - move PORT_PS2_CTRLB from hw/ps2port.h to hw/timer.c
authorKevin O'Connor <kevin@koconnor.net>
Mon, 3 Nov 2014 14:48:21 +0000 (09:48 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 12 Nov 2014 17:17:57 +0000 (12:17 -0500)
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>
src/hw/ps2port.h
src/hw/timer.c

index 566073a8b79f3be52c1b476834ee68181fe95337..e5d9014b70efbb894f62fe4f47052295ec27a91b 100644 (file)
@@ -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.
index 2832dece1b1a95da4a36c6f16aacda946e2ccfe5..5edc9fdbb092f42bfcd2b0787217e19d62eb00b3 100644 (file)
@@ -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)