pub struct FramebufferDevice { /* private fields */ }
Expand description
A chipset device for the framebuffer.
Implementations§
Source§impl FramebufferDevice
impl FramebufferDevice
Sourcepub fn new(
mapper: Box<dyn MemoryMapper>,
framebuffer: Framebuffer,
framebuffer_gpa_base_fixed: Option<u64>,
) -> Result<Self>
pub fn new( mapper: Box<dyn MemoryMapper>, framebuffer: Framebuffer, framebuffer_gpa_base_fixed: Option<u64>, ) -> Result<Self>
Creates a new framebuffer device from the specified framebuffer using the given mapper. Optionally creates a second mapping that does not move once the VM is started. This can be used fo VTL2 to read from.
Sourcepub fn into_framebuffer(self) -> Framebuffer
pub fn into_framebuffer(self) -> Framebuffer
Gets the inner framebuffer back.
Sourcepub fn control(&self) -> FramebufferLocalControl
pub fn control(&self) -> FramebufferLocalControl
Gets the control plane for the framebuffer.
Trait Implementations§
Source§impl ChangeDeviceState for FramebufferDevice
impl ChangeDeviceState for FramebufferDevice
Source§impl ChipsetDevice for FramebufferDevice
impl ChipsetDevice for FramebufferDevice
§fn supports_pio(&mut self) -> Option<&mut (dyn PortIoIntercept + 'static)>
fn supports_pio(&mut self) -> Option<&mut (dyn PortIoIntercept + 'static)>
Optionally returns a trait object to send IO port intercepts to.
§fn supports_mmio(&mut self) -> Option<&mut (dyn MmioIntercept + 'static)>
fn supports_mmio(&mut self) -> Option<&mut (dyn MmioIntercept + 'static)>
Optionally returns a trait object to send MMIO port intercepts to.
§fn supports_pci(&mut self) -> Option<&mut (dyn PciConfigSpace + 'static)>
fn supports_pci(&mut self) -> Option<&mut (dyn PciConfigSpace + 'static)>
Optionally returns a trait object to send PCI config space accesses to.
§fn supports_poll_device(&mut self) -> Option<&mut dyn PollDevice>
fn supports_poll_device(&mut self) -> Option<&mut dyn PollDevice>
Optionally returns a trait object to send poll requests to.
§fn supports_line_interrupt_target(
&mut self,
) -> Option<&mut dyn LineInterruptTarget>
fn supports_line_interrupt_target( &mut self, ) -> Option<&mut dyn LineInterruptTarget>
Optionally returns a trait object to send interrupt line changes to.
§fn supports_handle_eoi(&mut self) -> Option<&mut dyn HandleEoi>
fn supports_handle_eoi(&mut self) -> Option<&mut dyn HandleEoi>
Optionally returns a trait object to send EOI requests to.
§fn supports_acknowledge_pic_interrupt(
&mut self,
) -> Option<&mut dyn AcknowledgePicInterrupt>
fn supports_acknowledge_pic_interrupt( &mut self, ) -> Option<&mut dyn AcknowledgePicInterrupt>
Optionally returns a trait object with which to acknowledge PIC
interrupts.
Source§impl InspectMut for FramebufferDevice
impl InspectMut for FramebufferDevice
Source§fn inspect_mut(&mut self, req: Request<'_>)
fn inspect_mut(&mut self, req: Request<'_>)
Inspects the object.
Source§impl SaveRestore for FramebufferDevice
impl SaveRestore for FramebufferDevice
Auto Trait Implementations§
impl Freeze for FramebufferDevice
impl !RefUnwindSafe for FramebufferDevice
impl Send for FramebufferDevice
impl Sync for FramebufferDevice
impl Unpin for FramebufferDevice
impl !UnwindSafe for FramebufferDevice
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