diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d11cc6e79994..15472d691ee6 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -594,7 +594,7 @@ struct pci_driver { | |||
594 | * in a generic manner. | 594 | * in a generic manner. |
595 | */ | 595 | */ |
596 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ | 596 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ |
597 | const struct pci_device_id _table[] __devinitconst | 597 | const struct pci_device_id _table[] |
598 | 598 | ||
599 | /** | 599 | /** |
600 | * PCI_DEVICE - macro used to describe a specific pci device | 600 | * PCI_DEVICE - macro used to describe a specific pci device |
@@ -610,6 +610,20 @@ struct pci_driver { | |||
610 | .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID | 610 | .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID |
611 | 611 | ||
612 | /** | 612 | /** |
613 | * PCI_DEVICE_SUB - macro used to describe a specific pci device with subsystem | ||
614 | * @vend: the 16 bit PCI Vendor ID | ||
615 | * @dev: the 16 bit PCI Device ID | ||
616 | * @subvend: the 16 bit PCI Subvendor ID | ||
617 | * @subdev: the 16 bit PCI Subdevice ID | ||
618 | * | ||
619 | * This macro is used to create a struct pci_device_id that matches a | ||
620 | * specific device with subsystem information. | ||
621 | */ | ||
622 | #define PCI_DEVICE_SUB(vend, dev, subvend, subdev) \ | ||
623 | .vendor = (vend), .device = (dev), \ | ||
624 | .subvendor = (subvend), .subdevice = (subdev) | ||
625 | |||
626 | /** | ||
613 | * PCI_DEVICE_CLASS - macro used to describe a specific pci device class | 627 | * PCI_DEVICE_CLASS - macro used to describe a specific pci device class |
614 | * @dev_class: the class, subclass, prog-if triple for this device | 628 | * @dev_class: the class, subclass, prog-if triple for this device |
615 | * @dev_class_mask: the class mask for this device | 629 | * @dev_class_mask: the class mask for this device |
@@ -692,7 +706,7 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus, | |||
692 | int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); | 706 | int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); |
693 | int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); | 707 | int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); |
694 | void pci_bus_release_busn_res(struct pci_bus *b); | 708 | void pci_bus_release_busn_res(struct pci_bus *b); |
695 | struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, | 709 | struct pci_bus *pci_scan_root_bus(struct device *parent, int bus, |
696 | struct pci_ops *ops, void *sysdata, | 710 | struct pci_ops *ops, void *sysdata, |
697 | struct list_head *resources); | 711 | struct list_head *resources); |
698 | struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, | 712 | struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, |
@@ -949,10 +963,8 @@ void set_pcie_hotplug_bridge(struct pci_dev *pdev); | |||
949 | 963 | ||
950 | /* Functions for PCI Hotplug drivers to use */ | 964 | /* Functions for PCI Hotplug drivers to use */ |
951 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); | 965 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); |
952 | #ifdef CONFIG_HOTPLUG | ||
953 | unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge); | 966 | unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge); |
954 | unsigned int pci_rescan_bus(struct pci_bus *bus); | 967 | unsigned int pci_rescan_bus(struct pci_bus *bus); |
955 | #endif | ||
956 | 968 | ||
957 | /* Vital product data routines */ | 969 | /* Vital product data routines */ |
958 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); | 970 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); |
@@ -1589,7 +1601,7 @@ extern int pci_pci_problems; | |||
1589 | 1601 | ||
1590 | extern unsigned long pci_cardbus_io_size; | 1602 | extern unsigned long pci_cardbus_io_size; |
1591 | extern unsigned long pci_cardbus_mem_size; | 1603 | extern unsigned long pci_cardbus_mem_size; |
1592 | extern u8 __devinitdata pci_dfl_cache_line_size; | 1604 | extern u8 pci_dfl_cache_line_size; |
1593 | extern u8 pci_cache_line_size; | 1605 | extern u8 pci_cache_line_size; |
1594 | 1606 | ||
1595 | extern unsigned long pci_hotplug_io_size; | 1607 | extern unsigned long pci_hotplug_io_size; |