#[repr(transparent)]struct SlotL(u32);
Expand description
Entry in the redirection table. Lower Half.
Tuple Fields§
§0: u32
Implementations§
source§impl SlotL
impl SlotL
const VECTOR_BITS: usize = 8usize
const VECTOR_OFFSET: usize = 0usize
sourceconst fn vector(&self) -> u8
const fn vector(&self) -> u8
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourceconst fn with_vector(self, value: u8) -> Self
const fn with_vector(self, value: u8) -> Self
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourcefn set_vector(&mut self, value: u8)
fn set_vector(&mut self, value: u8)
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
const DELIVERY_MODE_BITS: usize = 3usize
const DELIVERY_MODE_OFFSET: usize = 8usize
sourceconst fn delivery_mode(&self) -> u8
const fn delivery_mode(&self) -> u8
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourceconst fn with_delivery_mode(self, value: u8) -> Self
const fn with_delivery_mode(self, value: u8) -> Self
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourcefn set_delivery_mode(&mut self, value: u8)
fn set_delivery_mode(&mut self, value: u8)
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
const DESTINATION_MODE_BITS: usize = 1usize
const DESTINATION_MODE_OFFSET: usize = 11usize
sourceconst fn destination_mode(&self) -> bool
const fn destination_mode(&self) -> bool
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourceconst fn with_destination_mode(self, value: bool) -> Self
const fn with_destination_mode(self, value: bool) -> Self
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourcefn set_destination_mode(&mut self, value: bool)
fn set_destination_mode(&mut self, value: bool)
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
const DELIVERY_PENDING_BITS: usize = 1usize
const DELIVERY_PENDING_OFFSET: usize = 12usize
sourceconst fn delivery_pending(&self) -> bool
const fn delivery_pending(&self) -> bool
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn with_delivery_pending(self, value: bool) -> Self
const fn with_delivery_pending(self, value: bool) -> Self
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourcefn set_delivery_pending(&mut self, value: bool)
fn set_delivery_pending(&mut self, value: bool)
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
const POLARITY_BITS: usize = 1usize
const POLARITY_OFFSET: usize = 13usize
sourceconst fn polarity(&self) -> bool
const fn polarity(&self) -> bool
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourceconst fn with_polarity(self, value: bool) -> Self
const fn with_polarity(self, value: bool) -> Self
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourcefn set_polarity(&mut self, value: bool)
fn set_polarity(&mut self, value: bool)
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
const REMOTE_IRR_BITS: usize = 1usize
const REMOTE_IRR_OFFSET: usize = 14usize
sourceconst fn remote_irr(&self) -> bool
const fn remote_irr(&self) -> bool
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourceconst fn with_remote_irr(self, value: bool) -> Self
const fn with_remote_irr(self, value: bool) -> Self
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourcefn set_remote_irr(&mut self, value: bool)
fn set_remote_irr(&mut self, value: bool)
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
const TRIGGER_MODE_BITS: usize = 1usize
const TRIGGER_MODE_OFFSET: usize = 15usize
sourceconst fn trigger_mode(&self) -> bool
const fn trigger_mode(&self) -> bool
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourceconst fn with_trigger_mode(self, value: bool) -> Self
const fn with_trigger_mode(self, value: bool) -> Self
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourcefn set_trigger_mode(&mut self, value: bool)
fn set_trigger_mode(&mut self, value: bool)
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
const MASK_BITS: usize = 1usize
const MASK_OFFSET: usize = 16usize
sourceconst fn mask(&self) -> bool
const fn mask(&self) -> bool
Mask (disables) or unmask interrupts for a particular, external source.
Bits: 16..17