aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h22
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,
692int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); 706int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax);
693int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); 707int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax);
694void pci_bus_release_busn_res(struct pci_bus *b); 708void pci_bus_release_busn_res(struct pci_bus *b);
695struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, 709struct 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);
698struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, 712struct 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 */
951int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); 965int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
952#ifdef CONFIG_HOTPLUG
953unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge); 966unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge);
954unsigned int pci_rescan_bus(struct pci_bus *bus); 967unsigned int pci_rescan_bus(struct pci_bus *bus);
955#endif
956 968
957/* Vital product data routines */ 969/* Vital product data routines */
958ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); 970ssize_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
1590extern unsigned long pci_cardbus_io_size; 1602extern unsigned long pci_cardbus_io_size;
1591extern unsigned long pci_cardbus_mem_size; 1603extern unsigned long pci_cardbus_mem_size;
1592extern u8 __devinitdata pci_dfl_cache_line_size; 1604extern u8 pci_dfl_cache_line_size;
1593extern u8 pci_cache_line_size; 1605extern u8 pci_cache_line_size;
1594 1606
1595extern unsigned long pci_hotplug_io_size; 1607extern unsigned long pci_hotplug_io_size;