@@ -636,27 +636,6 @@ void pci_set_host_bridge_release(struct pci_host_bridge *bridge,
636636
637637int pcibios_root_bridge_prepare (struct pci_host_bridge * bridge );
638638
639- /*
640- * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond
641- * to P2P or CardBus bridge windows) go in a table. Additional ones (for
642- * buses below host bridges or subtractive decode bridges) go in the list.
643- * Use pci_bus_for_each_resource() to iterate through all the resources.
644- */
645-
646- /*
647- * PCI_SUBTRACTIVE_DECODE means the bridge forwards the window implicitly
648- * and there's no way to program the bridge with the details of the window.
649- * This does not apply to ACPI _CRS windows, even with the _DEC subtractive-
650- * decode bit set, because they are explicit and can be programmed with _SRS.
651- */
652- #define PCI_SUBTRACTIVE_DECODE 0x1
653-
654- struct pci_bus_resource {
655- struct list_head list ;
656- struct resource * res ;
657- unsigned int flags ;
658- };
659-
660639#define PCI_REGION_FLAG_MASK 0x0fU /* These bits of resource flags tell us the PCI region flags */
661640
662641struct pci_bus {
@@ -1509,8 +1488,7 @@ void pci_add_resource(struct list_head *resources, struct resource *res);
15091488void pci_add_resource_offset (struct list_head * resources , struct resource * res ,
15101489 resource_size_t offset );
15111490void pci_free_resource_list (struct list_head * resources );
1512- void pci_bus_add_resource (struct pci_bus * bus , struct resource * res ,
1513- unsigned int flags );
1491+ void pci_bus_add_resource (struct pci_bus * bus , struct resource * res );
15141492struct resource * pci_bus_resource_n (const struct pci_bus * bus , int n );
15151493void pci_bus_remove_resources (struct pci_bus * bus );
15161494void pci_bus_remove_resource (struct pci_bus * bus , struct resource * res );
0 commit comments