Lines Matching refs:u32
34 #[repr(u32)]
95 impl From<XApicOffset> for u32 { implementation
97 val as u32 in from()
131 pub unsafe fn read(&self, reg: XApicOffset) -> u32 { in read() argument
132 read_volatile((self.apic_vaddr.data() + reg as usize) as *const u32) in read() constant
137 pub unsafe fn write(&self, reg: XApicOffset, value: u32) { in write() argument
139 (self.apic_vaddr.data() + (reg as u32) as usize) as *mut u32, in write()
179 const X1: u32 = 0x0000000B; // 将除数设置为1,即不除频率
181 const PERIODIC: u32 = 0x00020000; // 周期性模式
183 const ENABLE: u32 = 0x00000100; // 单元使能
185 const MASKED: u32 = 0x00010000; // 中断屏蔽
186 const LEVEL: u32 = 0x00008000; // 电平触发
187 const BCAST: u32 = 0x00080000; // 发送到所有APIC,包括自己
188 const DELIVS: u32 = 0x00001000; // 传递状态
189 const INIT: u32 = 0x00000500; // INIT/RESET
193 const T_IRQ0: u32 = 32; // IRQ 0 对应于 T_IRQ 中断
195 const IRQ_TIMER: u32 = 0;
197 const IRQ_KBD: u32 = 1;
199 const IRQ_COM1: u32 = 4;
201 const IRQ_IDE: u32 = 14;
203 const IRQ_ERROR: u32 = 19;
205 const IRQ_SPURIOUS: u32 = 31;