pub struct X86PitDevice<H: X86VlapicHostOps> { /* private fields */ }Expand description
Unified-device adapter for EmulatedPit.
Implementations§
Source§impl<H: X86VlapicHostOps> X86PitDevice<H>
impl<H: X86VlapicHostOps> X86PitDevice<H>
Sourcepub const fn inner(&self) -> &EmulatedPit<H>
pub const fn inner(&self) -> &EmulatedPit<H>
Returns the wrapped OS-neutral PIT core.
Trait Implementations§
Source§impl<H: X86VlapicHostOps> Default for X86PitDevice<H>
impl<H: X86VlapicHostOps> Default for X86PitDevice<H>
Source§impl<H: X86VlapicHostOps + 'static> Device for X86PitDevice<H>
impl<H: X86VlapicHostOps + 'static> Device for X86PitDevice<H>
Source§fn name(&self) -> &str
fn name(&self) -> &str
Returns a human-readable name for this device (used in logging and
diagnostics).
Source§fn resources(&self) -> &[Resource]
fn resources(&self) -> &[Resource]
Returns the resources (MMIO windows, port ranges, system registers)
this device requires. Read more
Source§fn handle(&self, access: &BusAccess) -> Result<BusResponse, DeviceError>
fn handle(&self, access: &BusAccess) -> Result<BusResponse, DeviceError>
Handles a single bus access. Read more
Source§impl<H: X86VlapicHostOps> X86PitDeviceOps for X86PitDevice<H>
impl<H: X86VlapicHostOps> X86PitDeviceOps for X86PitDevice<H>
Source§fn consume_irq0_if_due(&self, now_ns: u64) -> bool
fn consume_irq0_if_due(&self, now_ns: u64) -> bool
Consume a pending PIT IRQ0 tick if the deadline is due.
Auto Trait Implementations§
impl<H> !Freeze for X86PitDevice<H>
impl<H> !RefUnwindSafe for X86PitDevice<H>
impl<H> Send for X86PitDevice<H>
impl<H> Sync for X86PitDevice<H>
impl<H> Unpin for X86PitDevice<H>
impl<H> UnsafeUnpin for X86PitDevice<H>
impl<H> UnwindSafe for X86PitDevice<H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more