|
| static ALWAYS_INLINE unsigned | id () |
| static ALWAYS_INLINE unsigned | version () |
| static ALWAYS_INLINE unsigned | lvt_max () |
| static ALWAYS_INLINE void | eoi () |
| static ALWAYS_INLINE void | set_timer (unsigned val) |
| static ALWAYS_INLINE unsigned | get_timer () |
| static void | init () |
| static void | calibrate () |
| static void | lvt_vector (unsigned) asm("lvt_vector") |
|
|
static unsigned | freq_tsc |
|
static unsigned | freq_bus |
|
| enum | Delivery_mode {
DLV_FIXED = 0U << 8
, DLV_LOWEST_PRIO = 1U << 8
, DLV_SMI = 2U << 8
, DLV_REMOTE_READ = 3U << 8
,
DLV_NMI = 4U << 8
, DLV_INIT = 5U << 8
, DLV_SIPI = 6U << 8
, DLV_EXTINT = 7U << 8
} |
| enum | Mask { UNMASKED = 0U << 16
, MASKED = 1U << 16
} |
◆ calibrate()
| void Lapic::calibrate |
( |
| ) |
|
|
static |
77{
78 assert (0);
79
80
81
82
83
84
85
86
87
88
89
90
91}
◆ eoi()
| ALWAYS_INLINE void Lapic::eoi |
( |
| ) |
|
|
inlinestatic |
112 {
113 write (LAPIC_EOI, 0);
114 }
◆ get_timer()
| ALWAYS_INLINE unsigned Lapic::get_timer |
( |
| ) |
|
|
inlinestatic |
124 {
125 return read (LAPIC_TMR_CCR);
126 }
◆ id()
| ALWAYS_INLINE unsigned Lapic::id |
( |
| ) |
|
|
inlinestatic |
94 {
95 return read (LAPIC_IDR) >> 24 & 0xff;
96 }
◆ init()
32{
33 assert (0);
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74}
◆ lvt_max()
| ALWAYS_INLINE unsigned Lapic::lvt_max |
( |
| ) |
|
|
inlinestatic |
106 {
107 return read (LAPIC_LVR) >> 16 & 0xff;
108 }
◆ lvt_vector()
| void Lapic::lvt_vector |
( |
unsigned | vector | ) |
|
|
static |
99{
100
101
102 switch (vector) {
103 case VEC_LVT_TIMER: timer_handler(); break;
104 }
105
106 eoi();
107
108}
◆ set_timer()
| ALWAYS_INLINE void Lapic::set_timer |
( |
unsigned | val | ) |
|
|
inlinestatic |
118 {
119 write (LAPIC_TMR_ICR, val);
120 }
◆ version()
| ALWAYS_INLINE unsigned Lapic::version |
( |
| ) |
|
|
inlinestatic |
100 {
101 return read (LAPIC_LVR) & 0xff;
102 }
The documentation for this class was generated from the following files: