47 #define _COMPONENT ACPI_NAMESPACE
51 #define PCI_CFG_HEADER_TYPE_REG 0x0E
52 #define PCI_CFG_PRIMARY_BUS_NUMBER_REG 0x18
53 #define PCI_CFG_SECONDARY_BUS_NUMBER_REG 0x19
55 #define PCI_HEADER_TYPE_MASK 0x7F
56 #define PCI_TYPE_BRIDGE 0x01
57 #define PCI_TYPE_CARDBUS_BRIDGE 0x02
80 u16 *bus_number,
u8 *is_bridge);
137 acpi_hw_build_pci_list(root_pci_device, pci_region, &list_head);
142 status = acpi_hw_process_pci_list(pci_id, list_head);
147 acpi_hw_delete_pci_list(list_head);
171 acpi_hw_build_pci_list(
acpi_handle root_pci_device,
186 current_device = pci_region;
195 if (parent_device == root_pci_device) {
208 list_element->
device = parent_device;
209 list_head = list_element;
211 current_device = parent_device;
244 "Input PciId: Seg %4.4X Bus %4.4X Dev %4.4X Func %4.4X\n",
248 bus_number = pci_id->
bus;
259 status = acpi_hw_get_pci_device_info(pci_id, info->
device,
260 &bus_number, &is_bridge);
269 "Output PciId: Seg %4.4X Bus %4.4X Dev %4.4X Func %4.4X "
270 "Status %X BusNumber %X IsBridge %X\n",
272 pci_id->
function, status, bus_number, is_bridge));
298 next = previous->
next;
324 acpi_hw_get_pci_device_info(
struct acpi_pci_id *pci_id,
326 u16 *bus_number,
u8 *is_bridge)
347 pci_device, &return_value);
364 pci_id->
bus = *bus_number;
399 pci_id->
bus = (
u16)pci_value;
410 *bus_number = (
u16)pci_value;