diff options
Diffstat (limited to 'Kernel/i8253.h')
-rw-r--r-- | Kernel/i8253.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Kernel/i8253.h b/Kernel/i8253.h index c537036f2a..573399d1a1 100644 --- a/Kernel/i8253.h +++ b/Kernel/i8253.h @@ -2,26 +2,26 @@ #include <AK/Types.h> -#define TICKS_PER_SECOND 1000 +#define TICKS_PER_SECOND 1000 /* Timer related ports */ -#define TIMER0_CTL 0x40 -#define TIMER1_CTL 0x41 -#define TIMER2_CTL 0x42 -#define PIT_CTL 0x43 +#define TIMER0_CTL 0x40 +#define TIMER1_CTL 0x41 +#define TIMER2_CTL 0x42 +#define PIT_CTL 0x43 /* Building blocks for PIT_CTL */ -#define TIMER0_SELECT 0x00 -#define TIMER1_SELECT 0x40 -#define TIMER2_SELECT 0x80 +#define TIMER0_SELECT 0x00 +#define TIMER1_SELECT 0x40 +#define TIMER2_SELECT 0x80 -#define MODE_COUNTDOWN 0x00 -#define MODE_ONESHOT 0x02 -#define MODE_RATE 0x04 -#define MODE_SQUARE_WAVE 0x06 +#define MODE_COUNTDOWN 0x00 +#define MODE_ONESHOT 0x02 +#define MODE_RATE 0x04 +#define MODE_SQUARE_WAVE 0x06 -#define WRITE_WORD 0x30 +#define WRITE_WORD 0x30 -#define BASE_FREQUENCY 1193182 +#define BASE_FREQUENCY 1193182 namespace PIT { |