From 06ac5b551e29c828c87dd51d57799f9ebc8eef33 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Sat, 4 Oct 2014 19:40:09 +0200 Subject: pci: add resource enum Makes things way clearer than juggling numbers. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- include/linux/pci.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3