diff options
| author | Alex Williamson <alex.williamson@redhat.com> | 2013-12-17 18:43:39 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-12-17 19:36:38 -0500 |
| commit | 157e876ffe0b28821a0d82d8ac944fe7363bbe87 (patch) | |
| tree | 60f443e2745b8b419ece22040d54f619895c465b /include/linux | |
| parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
PCI: Add pci_wait_for_pending() (refactor pci_wait_for_pending_transaction())
We currently have two instance of this loop which waits for a pending bit
to clear in a status dword. Generalize the function for future users.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 1084a15175e0..211ce43ba483 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -938,6 +938,7 @@ bool pci_check_and_unmask_intx(struct pci_dev *dev); | |||
| 938 | void pci_msi_off(struct pci_dev *dev); | 938 | void pci_msi_off(struct pci_dev *dev); |
| 939 | int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size); | 939 | int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size); |
| 940 | int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask); | 940 | int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask); |
| 941 | int pci_wait_for_pending(struct pci_dev *dev, int pos, u16 mask); | ||
| 941 | int pci_wait_for_pending_transaction(struct pci_dev *dev); | 942 | int pci_wait_for_pending_transaction(struct pci_dev *dev); |
| 942 | int pcix_get_max_mmrbc(struct pci_dev *dev); | 943 | int pcix_get_max_mmrbc(struct pci_dev *dev); |
| 943 | int pcix_get_mmrbc(struct pci_dev *dev); | 944 | int pcix_get_mmrbc(struct pci_dev *dev); |
