aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 2c946b3bbf77..419f78f96375 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -368,9 +368,16 @@ static inline int pci_channel_offline(struct pci_dev *pdev)
368 return (pdev->error_state != pci_channel_io_normal); 368 return (pdev->error_state != pci_channel_io_normal);
369} 369}
370 370
371struct pci_host_bridge_window {
372 struct list_head list;
373 struct resource *res; /* host bridge aperture (CPU address) */
374 resource_size_t offset; /* bus address + offset = CPU address */
375};
376
371struct pci_host_bridge { 377struct pci_host_bridge {
372 struct list_head list; 378 struct list_head list;
373 struct pci_bus *bus; /* root bus */ 379 struct pci_bus *bus; /* root bus */
380 struct list_head windows; /* pci_host_bridge_windows */
374}; 381};
375 382
376/* 383/*
@@ -901,6 +908,8 @@ void pci_release_selected_regions(struct pci_dev *, int);
901 908
902/* drivers/pci/bus.c */ 909/* drivers/pci/bus.c */
903void pci_add_resource(struct list_head *resources, struct resource *res); 910void pci_add_resource(struct list_head *resources, struct resource *res);
911void pci_add_resource_offset(struct list_head *resources, struct resource *res,
912 resource_size_t offset);
904void pci_free_resource_list(struct list_head *resources); 913void pci_free_resource_list(struct list_head *resources);
905void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, unsigned int flags); 914void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, unsigned int flags);
906struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n); 915struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n);