summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-05-01 02:55:58 +0400
committerBjorn Helgaas <bhelgaas@google.com>2012-05-01 02:55:58 +0400
commit29473ec23aa79d401ffe06ec3f3ad3755382be13 (patch)
tree67b136cee8c5f407db94a73cb950ca421fba5759 /include
parent977f857ca566a1e68045fcbb7cfc9c4acb077cf0 (diff)
parentc57ca65a6ea3171370cbb3010e5a3aea7399a5e1 (diff)
downloadlinux-29473ec23aa79d401ffe06ec3f3ad3755382be13.tar.xz
Merge branch 'topic/yinghai-hostbridge-cleanup' into next
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index e444f5b49118..17b7b5b01b4a 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -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