|
UNIX xv6 (rev8, 9/1/15)
|
#include "types.h"#include "defs.h"#include "date.h"#include "memlayout.h"#include "traps.h"#include "mmu.h"#include "x86.h"Go to the source code of this file.
Macros | |
| #define | ID (0x0020/4) |
| #define | VER (0x0030/4) |
| #define | TPR (0x0080/4) |
| #define | EOI (0x00B0/4) |
| #define | SVR (0x00F0/4) |
| #define | ENABLE 0x00000100 |
| #define | ESR (0x0280/4) |
| #define | ICRLO (0x0300/4) |
| #define | INIT 0x00000500 |
| #define | STARTUP 0x00000600 |
| #define | DELIVS 0x00001000 |
| #define | ASSERT 0x00004000 |
| #define | DEASSERT 0x00000000 |
| #define | LEVEL 0x00008000 |
| #define | BCAST 0x00080000 |
| #define | BUSY 0x00001000 |
| #define | FIXED 0x00000000 |
| #define | ICRHI (0x0310/4) |
| #define | TIMER (0x0320/4) |
| #define | X1 0x0000000B |
| #define | PERIODIC 0x00020000 |
| #define | PCINT (0x0340/4) |
| #define | LINT0 (0x0350/4) |
| #define | LINT1 (0x0360/4) |
| #define | ERROR (0x0370/4) |
| #define | MASKED 0x00010000 |
| #define | TICR (0x0380/4) |
| #define | TCCR (0x0390/4) |
| #define | TDCR (0x03E0/4) |
| #define | CMOS_PORT 0x70 |
| #define | CMOS_RETURN 0x71 |
| #define | CMOS_STATA 0x0a |
| #define | CMOS_STATB 0x0b |
| #define | CMOS_UIP (1 << 7) |
| #define | SECS 0x00 |
| #define | MINS 0x02 |
| #define | HOURS 0x04 |
| #define | DAY 0x07 |
| #define | MONTH 0x08 |
| #define | YEAR 0x09 |
| #define | CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) |
Functions | |
| void | lapicinit (void) |
| int | cpunum (void) |
| void | lapiceoi (void) |
| void | microdelay (int us) |
| void | lapicstartap (uchar apicid, uint addr) |
| void | cmostime (struct rtcdate *r) |
Variables | |
| volatile uint * | lapic |
| #define CONV | ( | x) | (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) |
1.8.4