aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-02-06 11:04:00 -0500
committerSteve French <sfrench@us.ibm.com>2008-02-06 11:04:00 -0500
commitf315ccb3e679f271583f2a4f463ad9b65665b751 (patch)
tree44eb52102587d7b0bb592464cef6ec04bcac8b90 /drivers/pci/pci.c
parentead03e30b050d6dda769e7e9b071c5fa720bf8d2 (diff)
parent551e4fb2465b87de9d4aa1669b27d624435443bb (diff)
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 04aac7782468..ae3df46eaabf 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1451,6 +1451,22 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
1451} 1451}
1452#endif 1452#endif
1453 1453
1454#ifndef HAVE_ARCH_PCI_SET_DMA_MAX_SEGMENT_SIZE
1455int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size)
1456{
1457 return dma_set_max_seg_size(&dev->dev, size);
1458}
1459EXPORT_SYMBOL(pci_set_dma_max_seg_size);
1460#endif
1461
1462#ifndef HAVE_ARCH_PCI_SET_DMA_SEGMENT_BOUNDARY
1463int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask)
1464{
1465 return dma_set_seg_boundary(&dev->dev, mask);
1466}
1467EXPORT_SYMBOL(pci_set_dma_seg_boundary);
1468#endif
1469
1454/** 1470/**
1455 * pcix_get_max_mmrbc - get PCI-X maximum designed memory read byte count 1471 * pcix_get_max_mmrbc - get PCI-X maximum designed memory read byte count
1456 * @dev: PCI device to query 1472 * @dev: PCI device to query