diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-18 21:41:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-28 22:10:31 -0400 |
commit | 4ade523a9db32b2a0e3cdeec3413c52e463542c8 (patch) | |
tree | 83da55d3236672934dc003765578d52e48b737bb /src/hw/timer.c | |
parent | 7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a (diff) | |
download | seabios-hppa-4ade523a9db32b2a0e3cdeec3413c52e463542c8.zip seabios-hppa-4ade523a9db32b2a0e3cdeec3413c52e463542c8.tar.gz seabios-hppa-4ade523a9db32b2a0e3cdeec3413c52e463542c8.tar.bz2 |
Remove ioport.h; disperse its contents to other header files.
Move the inb(), insb(), etc. code from ioport.h to x86.h. Move the
PORT_* definitions to their appropriate hardware files.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/timer.c')
-rw-r--r-- | src/hw/timer.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/hw/timer.c b/src/hw/timer.c index ec1e3c5..2832dec 100644 --- a/src/hw/timer.c +++ b/src/hw/timer.c @@ -1,4 +1,4 @@ -// Internal timer support. +// Internal timer and Intel 8253 Programmable Interrupt Timer (PIT) support. // // Copyright (C) 2008-2013 Kevin O'Connor <kevin@koconnor.net> // @@ -6,12 +6,17 @@ #include "biosvar.h" // GET_LOW #include "config.h" // CONFIG_* -#include "ioport.h" // PORT_PIT_MODE #include "output.h" // dprintf +#include "ps2port.h" // PORT_PS2_CTRLB #include "stacks.h" // yield #include "util.h" // timer_setup #include "x86.h" // cpuid +#define PORT_PIT_COUNTER0 0x0040 +#define PORT_PIT_COUNTER1 0x0041 +#define PORT_PIT_COUNTER2 0x0042 +#define PORT_PIT_MODE 0x0043 + // Bits for PORT_PIT_MODE #define PM_SEL_TIMER0 (0<<6) #define PM_SEL_TIMER1 (1<<6) |