![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <commonlib/helpers.h>
#include <cpu/x86/tsc.h>
#include <pc80/i8254.h>
Go to the source code of this file.
Macros | |
#define | CLOCK_TICK_RATE 1193180U /* Underlying HZ */ |
#define | CALIBRATE_INTERVAL ((2*CLOCK_TICK_RATE)/1000) /* 2ms */ |
#define | CALIBRATE_DIVISOR (2*1000) /* 2ms / 2000 == 1usec */ |
Functions | |
void | setup_i8254 (void) |
unsigned long | calibrate_tsc_with_pit (void) |
#define CALIBRATE_INTERVAL ((2*CLOCK_TICK_RATE)/1000) /* 2ms */ |
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().