Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
[firefly-linux-kernel-4.4.55.git] / include / linux / pci.h
index 3bbc77e20a6157f5f2e2427a3ee9921a09bcaf12..d8c379dba6adbb36ae9df6c18adea304e2c6b45c 100644 (file)
@@ -375,11 +375,18 @@ struct pci_host_bridge_window {
 };
 
 struct pci_host_bridge {
-       struct list_head list;
+       struct device dev;
        struct pci_bus *bus;            /* root bus */
        struct list_head windows;       /* pci_host_bridge_windows */
+       void (*release_fn)(struct pci_host_bridge *);
+       void *release_data;
 };
 
+#define        to_pci_host_bridge(n) container_of(n, struct pci_host_bridge, dev)
+void pci_set_host_bridge_release(struct pci_host_bridge *bridge,
+                    void (*release_fn)(struct pci_host_bridge *),
+                    void *release_data);
+
 /*
  * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond
  * to P2P or CardBus bridge windows) go in a table.  Additional ones (for