diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 22:29:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 22:29:33 -0500 |
commit | 215e871aaa3d94540121a3809d80d0c5e5686e4f (patch) | |
tree | 0ed6469c5ad04db8cfa0edb58c676d5155df20cd /drivers/pci/pci.h | |
parent | b6cf160c4b788a31f6a4017a469b956ca77febf4 (diff) | |
parent | fd7d1ced29e5beb88c9068801da7a362606d8273 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6: (64 commits)
PCI: make pci_bus a struct device
PCI: fix codingstyle issues in include/linux/pci.h
PCI: fix codingstyle issues in drivers/pci/pci.h
PCI: PCIE ASPM support
PCI: Fix fakephp deadlock
PCI: modify SB700 SATA MSI quirk
PCI: Run ACPI _OSC method on root bridges only
PCI ACPI: AER driver should only register PCIe devices with _OSC
PCI ACPI: Added a function to register _OSC with only PCIe devices.
PCI: constify function pointer tables
PCI: Convert drivers/pci/proc.c to use unlocked_ioctl
pciehp: block new requests from the device before power off
pciehp: workaround against Bad DLLP during power off
pciehp: wait for 1000ms before LED operation after power off
PCI: Remove pci_enable_device_bars() from documentation
PCI: Remove pci_enable_device_bars()
PCI: Remove users of pci_enable_device_bars()
PCI: Add pci_enable_device_{io,mem} intefaces
PCI: avoid save the same type of cap multiple times
PCI: correctly initialize a structure for pcie_save_pcix_state()
...
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index fc87e14b50de..eabeb1f2ec99 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -6,8 +6,10 @@ extern void pci_remove_sysfs_dev_files(struct pci_dev *pdev); | |||
6 | extern void pci_cleanup_rom(struct pci_dev *dev); | 6 | extern void pci_cleanup_rom(struct pci_dev *dev); |
7 | 7 | ||
8 | /* Firmware callbacks */ | 8 | /* Firmware callbacks */ |
9 | extern pci_power_t (*platform_pci_choose_state)(struct pci_dev *dev, pm_message_t state); | 9 | extern pci_power_t (*platform_pci_choose_state)(struct pci_dev *dev, |
10 | extern int (*platform_pci_set_power_state)(struct pci_dev *dev, pci_power_t state); | 10 | pm_message_t state); |
11 | extern int (*platform_pci_set_power_state)(struct pci_dev *dev, | ||
12 | pci_power_t state); | ||
11 | 13 | ||
12 | extern int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val); | 14 | extern int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val); |
13 | extern int pci_user_read_config_word(struct pci_dev *dev, int where, u16 *val); | 15 | extern int pci_user_read_config_word(struct pci_dev *dev, int where, u16 *val); |
@@ -45,12 +47,6 @@ static inline void pci_no_msi(void) { } | |||
45 | static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { } | 47 | static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { } |
46 | #endif | 48 | #endif |
47 | 49 | ||
48 | #if defined(CONFIG_PCI_MSI) && defined(CONFIG_PM) | ||
49 | void pci_restore_msi_state(struct pci_dev *dev); | ||
50 | #else | ||
51 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | ||
52 | #endif | ||
53 | |||
54 | #ifdef CONFIG_PCIEAER | 50 | #ifdef CONFIG_PCIEAER |
55 | void pci_no_aer(void); | 51 | void pci_no_aer(void); |
56 | #else | 52 | #else |
@@ -68,14 +64,14 @@ static inline int pci_no_d1d2(struct pci_dev *dev) | |||
68 | } | 64 | } |
69 | extern int pcie_mch_quirk; | 65 | extern int pcie_mch_quirk; |
70 | extern struct device_attribute pci_dev_attrs[]; | 66 | extern struct device_attribute pci_dev_attrs[]; |
71 | extern struct class_device_attribute class_device_attr_cpuaffinity; | 67 | extern struct device_attribute dev_attr_cpuaffinity; |
72 | 68 | ||
73 | /** | 69 | /** |
74 | * pci_match_one_device - Tell if a PCI device structure has a matching | 70 | * pci_match_one_device - Tell if a PCI device structure has a matching |
75 | * PCI device id structure | 71 | * PCI device id structure |
76 | * @id: single PCI device id structure to match | 72 | * @id: single PCI device id structure to match |
77 | * @dev: the PCI device structure to match against | 73 | * @dev: the PCI device structure to match against |
78 | * | 74 | * |
79 | * Returns the matching pci_device_id structure or %NULL if there is no match. | 75 | * Returns the matching pci_device_id structure or %NULL if there is no match. |
80 | */ | 76 | */ |
81 | static inline const struct pci_device_id * | 77 | static inline const struct pci_device_id * |