pub struct AdaptedChipset {
pub chipset: Arc<Chipset>,
/* private fields */
}Expand description
This struct adds the necessary CpuIo implementation to a Chipset, so it
can be used directly in the VP dispatch loop and passed to the processor
implementations.
Fields§
§chipset: Arc<Chipset>Implementations§
Source§impl AdaptedChipset
impl AdaptedChipset
Sourcepub fn new(chipset: Arc<Chipset>, fatal_policy: FatalErrorPolicy) -> Self
pub fn new(chipset: Arc<Chipset>, fatal_policy: FatalErrorPolicy) -> Self
Create a new AdaptedChipset from a Chipset and a FatalErrorPolicy.
Trait Implementations§
Source§impl Clone for AdaptedChipset
impl Clone for AdaptedChipset
Source§fn clone(&self) -> AdaptedChipset
fn clone(&self) -> AdaptedChipset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CpuIo for AdaptedChipset
impl CpuIo for AdaptedChipset
Source§fn acknowledge_pic_interrupt(&self) -> Option<u8>
fn acknowledge_pic_interrupt(&self) -> Option<u8>
Gets the vector of the next interrupt to inject from the legacy
interrupt controller (PIC) and sets the IRQ in service.
Source§fn handle_eoi(&self, irq: u32)
fn handle_eoi(&self, irq: u32)
Handle End Of Interrupt (EOI) Read more
Source§fn read_mmio(
&self,
vp: VpIndex,
address: u64,
data: &mut [u8],
) -> impl Future<Output = ()>
fn read_mmio( &self, vp: VpIndex, address: u64, data: &mut [u8], ) -> impl Future<Output = ()>
Memory mapped IO read.
Source§fn write_mmio(
&self,
vp: VpIndex,
address: u64,
data: &[u8],
) -> impl Future<Output = ()>
fn write_mmio( &self, vp: VpIndex, address: u64, data: &[u8], ) -> impl Future<Output = ()>
Memory mapped IO write.
Source§fn read_io(
&self,
vp: VpIndex,
port: u16,
data: &mut [u8],
) -> impl Future<Output = ()>
fn read_io( &self, vp: VpIndex, port: u16, data: &mut [u8], ) -> impl Future<Output = ()>
Programmed IO read.
Source§fn write_io(
&self,
vp: VpIndex,
port: u16,
data: &[u8],
) -> impl Future<Output = ()>
fn write_io( &self, vp: VpIndex, port: u16, data: &[u8], ) -> impl Future<Output = ()>
Programmed IO write.
Source§fn fatal_error(&self, error: Box<dyn Error + Send + Sync>) -> VpHaltReason
fn fatal_error(&self, error: Box<dyn Error + Send + Sync>) -> VpHaltReason
Report an internal fatal error. Read more
Auto Trait Implementations§
impl Freeze for AdaptedChipset
impl !RefUnwindSafe for AdaptedChipset
impl Send for AdaptedChipset
impl Sync for AdaptedChipset
impl Unpin for AdaptedChipset
impl !UnwindSafe for AdaptedChipset
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