diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-04 21:04:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-04 21:04:29 -0400 |
commit | 89661adaaee2f85116b399e642129ccd4dafd195 (patch) | |
tree | 86a0bea62ef1ebbd454d5daa4deef1534ab5a222 /drivers/pci/pci.c | |
parent | 6adae5d9e69743aede91b274224751811f7174f1 (diff) | |
parent | 9890b12a4a65a7b3181dd963421740edf0e14d69 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6: (59 commits)
PCI: Free resource files in error path of pci_create_sysfs_dev_files()
pci-quirks: disable MSI on RS400-200 and RS480
PCI hotplug: Use menuconfig objects
PCI: ZT5550 CPCI Hotplug driver fix
PCI: rpaphp: Remove semaphores
PCI: rpaphp: Ensure more pcibios_add/pcibios_remove symmetry
PCI: rpaphp: Use pcibios_remove_pci_devices() symmetrically
PCI: rpaphp: Document is_php_dn()
PCI: rpaphp: Document find_php_slot()
PCI: rpaphp: Rename rpaphp_register_pci_slot() to rpaphp_enable_slot()
PCI: rpaphp: refactor tail call to rpaphp_register_slot()
PCI: rpaphp: remove rpaphp_set_attention_status()
PCI: rpaphp: remove print_slot_pci_funcs()
PCI: rpaphp: Remove setup_pci_slot()
PCI: rpaphp: remove a call that does nothing but a pointer lookup
PCI: rpaphp: Remove another wrappered function
PCI: rpaphp: Remve another call that is a wrapper
PCI: rpaphp: remove a function that does nothing but wrap debug printks
PCI: rpaphp: Remove un-needed goto
PCI: rpaphp: Fix a memleak; slot->location string was never freed
...
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 2a458279327a..fd47ac0c4730 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -35,8 +35,7 @@ unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE; | |||
35 | * Given a PCI bus, returns the highest PCI bus number present in the set | 35 | * Given a PCI bus, returns the highest PCI bus number present in the set |
36 | * including the given PCI bus and its list of child PCI buses. | 36 | * including the given PCI bus and its list of child PCI buses. |
37 | */ | 37 | */ |
38 | unsigned char __devinit | 38 | unsigned char pci_bus_max_busnr(struct pci_bus* bus) |
39 | pci_bus_max_busnr(struct pci_bus* bus) | ||
40 | { | 39 | { |
41 | struct list_head *tmp; | 40 | struct list_head *tmp; |
42 | unsigned char max, n; | 41 | unsigned char max, n; |
@@ -892,6 +891,34 @@ pci_disable_device(struct pci_dev *dev) | |||
892 | } | 891 | } |
893 | 892 | ||
894 | /** | 893 | /** |
894 | * pcibios_set_pcie_reset_state - set reset state for device dev | ||
895 | * @dev: the PCI-E device reset | ||
896 | * @state: Reset state to enter into | ||
897 | * | ||
898 | * | ||
899 | * Sets the PCI-E reset state for the device. This is the default | ||
900 | * implementation. Architecture implementations can override this. | ||
901 | */ | ||
902 | int __attribute__ ((weak)) pcibios_set_pcie_reset_state(struct pci_dev *dev, | ||
903 | enum pcie_reset_state state) | ||
904 | { | ||
905 | return -EINVAL; | ||
906 | } | ||
907 | |||
908 | /** | ||
909 | * pci_set_pcie_reset_state - set reset state for device dev | ||
910 | * @dev: the PCI-E device reset | ||
911 | * @state: Reset state to enter into | ||
912 | * | ||
913 | * | ||
914 | * Sets the PCI reset state for the device. | ||
915 | */ | ||
916 | int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state) | ||
917 | { | ||
918 | return pcibios_set_pcie_reset_state(dev, state); | ||
919 | } | ||
920 | |||
921 | /** | ||
895 | * pci_enable_wake - enable PCI device as wakeup event source | 922 | * pci_enable_wake - enable PCI device as wakeup event source |
896 | * @dev: PCI device affected | 923 | * @dev: PCI device affected |
897 | * @state: PCI state from which device will issue wakeup events | 924 | * @state: PCI state from which device will issue wakeup events |
@@ -1295,7 +1322,7 @@ pci_intx(struct pci_dev *pdev, int enable) | |||
1295 | 1322 | ||
1296 | /** | 1323 | /** |
1297 | * pci_msi_off - disables any msi or msix capabilities | 1324 | * pci_msi_off - disables any msi or msix capabilities |
1298 | * @pdev: the PCI device to operate on | 1325 | * @dev: the PCI device to operate on |
1299 | * | 1326 | * |
1300 | * If you want to use msi see pci_enable_msi and friends. | 1327 | * If you want to use msi see pci_enable_msi and friends. |
1301 | * This is a lower level primitive that allows us to disable | 1328 | * This is a lower level primitive that allows us to disable |
@@ -1427,4 +1454,5 @@ EXPORT_SYMBOL(pci_set_power_state); | |||
1427 | EXPORT_SYMBOL(pci_save_state); | 1454 | EXPORT_SYMBOL(pci_save_state); |
1428 | EXPORT_SYMBOL(pci_restore_state); | 1455 | EXPORT_SYMBOL(pci_restore_state); |
1429 | EXPORT_SYMBOL(pci_enable_wake); | 1456 | EXPORT_SYMBOL(pci_enable_wake); |
1457 | EXPORT_SYMBOL_GPL(pci_set_pcie_reset_state); | ||
1430 | 1458 | ||