vmm: Expose _SEG with segment ID for PCI bus

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-10-05 11:14:28 +01:00
parent a7fba8105f
commit b59f1d90dd

View File

@ -311,7 +311,7 @@ impl Aml for PciSegment {
pci_dsdt_inner_data.push(&cid);
let adr = aml::Name::new("_ADR".into(), &aml::ZERO);
pci_dsdt_inner_data.push(&adr);
let seg = aml::Name::new("_SEG".into(), &aml::ZERO);
let seg = aml::Name::new("_SEG".into(), &self.id);
pci_dsdt_inner_data.push(&seg);
let uid = aml::Name::new("_UID".into(), &aml::ZERO);
pci_dsdt_inner_data.push(&uid);