pub fn init_device(
    pci_device: &PciDevice
) -> Result<Option<StorageControllerRef>, &'static str>
Expand description

Attempts to handle the initialization of the given PciDevice, if it is a recognized storage device.

Return

  • Ok(Some(StorageControllerRef)) if successful, containing the newly-initialized storage controller.
  • Ok(None) if the given PciDevice isn’t a supported storage device,
  • An error if it fails to initialize a supported storage device.