coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | TIMER0_PORT 0x40 |
#define | TIMER1_PORT 0x41 |
#define | TIMER2_PORT 0x42 |
#define | TIMER_MODE_PORT 0x43 |
#define | TIMER0_SEL 0x00 |
#define | TIMER1_SEL 0x40 |
#define | TIMER2_SEL 0x80 |
#define | READBACK_SEL 0xC0 |
#define | LATCH_COUNT 0x00 |
#define | LOBYTE_ACCESS 0x10 |
#define | HIBYTE_ACCESS 0x20 |
#define | WORD_ACCESS 0x30 |
#define | MODE0 0x00 |
#define | MODE1 0x02 |
#define | MODE2 0x04 |
#define | MODE3 0x06 |
#define | MODE4 0x08 |
#define | MODE5 0x0A |
#define | BINARY_COUNT 0x00 |
#define | BCD_COUNT 0x01 |
#define | TICKS_PER_MS 1193 |
#define | PPC_PORTB 0x61 |
#define | PPCB_T2OUT 0x20 /* Bit 5 */ |
#define | PPCB_SPKR 0x02 /* Bit 1 */ |
#define | PPCB_T2GATE 0x01 /* Bit 0 */ |
Functions | |
void | setup_i8254 (void) |
unsigned long | calibrate_tsc_with_pit (void) |
Definition at line 36 of file i8254.c.
References CALIBRATE_DIVISOR, CALIBRATE_INTERVAL, count, DIV_ROUND_UP, tsc_struct::hi, inb(), tsc_struct::lo, outb(), and rdtsc().
Definition at line 10 of file i8254.c.
References BINARY_COUNT, LOBYTE_ACCESS, MODE3, outb(), TIMER0_PORT, TIMER0_SEL, TIMER1_PORT, TIMER1_SEL, TIMER_MODE_PORT, and WORD_ACCESS.
Referenced by lpc_init(), run_bios(), and sc_init().