Create an empty PCI root bridge.
(config: Option<PciConfiguration>)
| 64 | impl PciRoot { |
| 65 | /// Create an empty PCI root bridge. |
| 66 | pub fn new(config: Option<PciConfiguration>) -> Self { |
| 67 | if let Some(config) = config { |
| 68 | PciRoot { config } |
| 69 | } else { |
| 70 | PciRoot { |
| 71 | config: PciConfiguration::new( |
| 72 | VENDOR_ID_INTEL, |
| 73 | DEVICE_ID_INTEL_VIRT_PCIE_HOST, |
| 74 | 0, |
| 75 | PciClassCode::BridgeDevice, |
| 76 | &PciBridgeSubclass::HostBridge, |
| 77 | None, |
| 78 | PciHeaderType::Device, |
| 79 | 0, |
| 80 | 0, |
| 81 | None, |
| 82 | None, |
| 83 | ), |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | impl BusDevice for PciRoot {} |