From 2b2c31d206365ad54b0db8dac10e7bdb8ccb2281 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 3 Jul 2019 00:18:15 +0200 Subject: [PATCH] pci: Use device PCI header type for our root bridge The Bridge header type is really meant to be for PCI-to-PCI bridges. Fixes: #85 Signed-off-by: Samuel Ortiz --- pci/src/bus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pci/src/bus.rs b/pci/src/bus.rs index 54e779df4..153f68a8d 100644 --- a/pci/src/bus.rs +++ b/pci/src/bus.rs @@ -45,7 +45,7 @@ impl PciRoot { PciClassCode::BridgeDevice, &PciBridgeSubclass::HostBridge, None, - PciHeaderType::Bridge, + PciHeaderType::Device, 0, 0, None,