+ acpi_context* acpi = acpi_get_context();
+ assert_msg(acpi, "ACPI not initialized.");
+ if (acpi->mcfg.alloc_num) {
+ // PCIe Enhanced Configuration Mechanism is supported.
+ // TODO: support PCIe addressing mechanism
+ }
+ // Otherwise, fallback to use legacy PCI 3.0 method.