aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/pci_64.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-04 00:58:39 -0500
committerPaul Mackerras <paulus@samba.org>2007-03-08 23:03:25 -0500
commit9874777016e06ad2df420237963e81389776cb6d (patch)
treeabd509f5d37da4f8e2cdef8e3e41ec498c4a10ca /arch/powerpc/kernel/pci_64.c
parent618d3adc351a24c4c48437c767befb88ca2d199d (diff)
[POWERPC] Create and use set_pci_dma_ops
This will allow us to build without PCI easier. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r--arch/powerpc/kernel/pci_64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 7e97d71a5f8f..73d509343d5b 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -70,6 +70,11 @@ int global_phb_number; /* Global phb counter */
70struct pci_dev *ppc64_isabridge_dev = NULL; 70struct pci_dev *ppc64_isabridge_dev = NULL;
71EXPORT_SYMBOL_GPL(ppc64_isabridge_dev); 71EXPORT_SYMBOL_GPL(ppc64_isabridge_dev);
72 72
73void set_pci_dma_ops(struct dma_mapping_ops *dma_ops)
74{
75 pci_dma_ops = dma_ops;
76}
77
73static void fixup_broken_pcnet32(struct pci_dev* dev) 78static void fixup_broken_pcnet32(struct pci_dev* dev)
74{ 79{
75 if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { 80 if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) {