Searched refs:LVTRegister (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | x2apic.rs | 9 use super::{hw_irq::ApicId, LVTRegister, LocalAPIC, LVT}; 99 fn read_lvt(&self, reg: LVTRegister) -> LVT { in read_lvt() 107 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt() 110 self.set_lvt(LVT::new(LVTRegister::Thermal, LVT::MASKED).unwrap()); in mask_all_lvt() 114 self.set_lvt(LVT::new(LVTRegister::PerformanceMonitor, LVT::MASKED).unwrap()); in mask_all_lvt() 117 self.set_lvt(LVT::new(LVTRegister::LINT0, LVT::MASKED).unwrap()); in mask_all_lvt() 118 self.set_lvt(LVT::new(LVTRegister::LINT1, LVT::MASKED).unwrap()); in mask_all_lvt() 120 self.set_lvt(LVT::new(LVTRegister::ErrorReg, LVT::MASKED).unwrap()); in mask_all_lvt()
|
H A D | mod.rs | 77 fn read_lvt(&self, reg: LVTRegister) -> LVT; in read_lvt() 89 pub enum LVTRegister { enum 121 impl From<LVTRegister> for u32 { 122 fn from(val: LVTRegister) -> Self { in from() 129 register: LVTRegister, 137 pub fn new(register: LVTRegister, data: u32) -> Option<Self> { in new() argument 142 LVTRegister::Timer | LVTRegister::ErrorReg => {} in new() 150 if let LVTRegister::LINT0 | LVTRegister::LINT1 = result.register { in new() 161 if let LVTRegister::Timer = result.register { in new() 176 pub fn register(&self) -> LVTRegister { in register() argument [all …]
|
H A D | xapic.rs | 18 use super::{hw_irq::ApicId, LVTRegister, LocalAPIC, LVT}; 101 impl From<LVTRegister> for XApicOffset { 102 fn from(lvt: LVTRegister) -> Self { in from() 104 LVTRegister::Timer => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_TIMER, in from() 105 LVTRegister::Thermal => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_THERMAL, in from() 106 LVTRegister::PerformanceMonitor => { in from() 109 LVTRegister::LINT0 => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_LINT0, in from() 110 LVTRegister::LINT1 => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_LINT1, in from() 111 LVTRegister::ErrorReg => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_ERROR, in from() 112 LVTRegister::CMCI => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_CMCI, in from() [all …]
|
H A D | apic_timer.rs | 29 use super::{CurrentApic, LVTRegister, LocalAPIC, LVT}; 242 let lvt = LVT::new(LVTRegister::Timer, data).unwrap(); in setup_lvt() 258 let mut lvt = CurrentApic.read_lvt(LVTRegister::Timer); in start_current() 264 let mut lvt = CurrentApic.read_lvt(LVTRegister::Timer); in stop_current()
|