summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-10-04 19:40:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-10-08 08:39:00 +0200
commit06ac5b551e29c828c87dd51d57799f9ebc8eef33 (patch)
tree21d013f5b70bc7e2d6ff6b2eb2f8531e917244cb /include
parent72d9846fa6a940ae77ff92ac4413a6e28729a8aa (diff)
downloadbarebox-06ac5b551e29c828c87dd51d57799f9ebc8eef33.tar.gz
barebox-06ac5b551e29c828c87dd51d57799f9ebc8eef33.tar.xz
pci: add resource enum
Makes things way clearer than juggling numbers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 0ec1320b2f..f5ef588171 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -114,6 +114,12 @@ struct pci_dev {
};
#define to_pci_dev(dev) container_of(dev, struct pci_dev, dev)
+enum {
+ PCI_BUS_RESOURCE_IO = 0,
+ PCI_BUS_RESOURCE_MEM = 1,
+ PCI_BUS_RESOURCE_MEM_PREF = 2,
+ PCI_BUS_RESOURCE_BUSN = 3,
+};
struct pci_bus {
struct pci_controller *host; /* associated host controller */
struct list_head node; /* node in list of buses */