Trait devices::pci::pci_hotplug::HotPluggable
source · pub trait HotPluggable: PciDevice {
// Required methods
fn set_pci_address(
&mut self,
pci_addr: PciAddress
) -> Result<(), PciDeviceError>;
fn configure_io_bars(&mut self) -> Result<(), PciDeviceError>;
fn configure_device_bars(&mut self) -> Result<(), PciDeviceError>;
}
Expand description
Additional requirements for a PciDevice to support hotplug. A hotplug device can be configured without access to the SystemAllocator.
Required Methods§
sourcefn set_pci_address(
&mut self,
pci_addr: PciAddress
) -> Result<(), PciDeviceError>
fn set_pci_address( &mut self, pci_addr: PciAddress ) -> Result<(), PciDeviceError>
Sets PciAddress to pci_addr. Replaces allocate_address.
sourcefn configure_io_bars(&mut self) -> Result<(), PciDeviceError>
fn configure_io_bars(&mut self) -> Result<(), PciDeviceError>
Configures IO BAR layout without memory alloc. Replaces allocate_io_bars.
sourcefn configure_device_bars(&mut self) -> Result<(), PciDeviceError>
fn configure_device_bars(&mut self) -> Result<(), PciDeviceError>
Configure device BAR layout without memory alloc. Replaces allocate_device_bars.