diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 87195b62de52..b7e4b633c69b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -278,6 +278,7 @@ struct pci_bus { | |||
278 | struct device dev; | 278 | struct device dev; |
279 | struct bin_attribute *legacy_io; /* legacy I/O for this bus */ | 279 | struct bin_attribute *legacy_io; /* legacy I/O for this bus */ |
280 | struct bin_attribute *legacy_mem; /* legacy mem */ | 280 | struct bin_attribute *legacy_mem; /* legacy mem */ |
281 | unsigned int is_added:1; | ||
281 | }; | 282 | }; |
282 | 283 | ||
283 | #define pci_bus_b(n) list_entry(n, struct pci_bus, node) | 284 | #define pci_bus_b(n) list_entry(n, struct pci_bus, node) |
@@ -389,6 +390,16 @@ struct pci_driver { | |||
389 | #define to_pci_driver(drv) container_of(drv, struct pci_driver, driver) | 390 | #define to_pci_driver(drv) container_of(drv, struct pci_driver, driver) |
390 | 391 | ||
391 | /** | 392 | /** |
393 | * DEFINE_PCI_DEVICE_TABLE - macro used to describe a pci device table | ||
394 | * @_table: device table name | ||
395 | * | ||
396 | * This macro is used to create a struct pci_device_id array (a device table) | ||
397 | * in a generic manner. | ||
398 | */ | ||
399 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ | ||
400 | const struct pci_device_id _table[] __devinitconst | ||
401 | |||
402 | /** | ||
392 | * PCI_DEVICE - macro used to describe a specific pci device | 403 | * PCI_DEVICE - macro used to describe a specific pci device |
393 | * @vend: the 16 bit PCI Vendor ID | 404 | * @vend: the 16 bit PCI Vendor ID |
394 | * @dev: the 16 bit PCI Device ID | 405 | * @dev: the 16 bit PCI Device ID |
@@ -1034,6 +1045,8 @@ void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); | |||
1034 | void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr); | 1045 | void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr); |
1035 | void __iomem * const *pcim_iomap_table(struct pci_dev *pdev); | 1046 | void __iomem * const *pcim_iomap_table(struct pci_dev *pdev); |
1036 | int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name); | 1047 | int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name); |
1048 | int pcim_iomap_regions_request_all(struct pci_dev *pdev, u16 mask, | ||
1049 | const char *name); | ||
1037 | void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask); | 1050 | void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask); |
1038 | 1051 | ||
1039 | extern int pci_pci_problems; | 1052 | extern int pci_pci_problems; |