aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/sn/pci/pci_dma.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/ia64/sn/pci/pci_dma.c b/arch/ia64/sn/pci/pci_dma.c
index 53ebb6484495..4ad13ff7cf1e 100644
--- a/arch/ia64/sn/pci/pci_dma.c
+++ b/arch/ia64/sn/pci/pci_dma.c
@@ -11,6 +11,7 @@
11 11
12#include <linux/module.h> 12#include <linux/module.h>
13#include <linux/dma-attrs.h> 13#include <linux/dma-attrs.h>
14#include <linux/dma-mapping.h>
14#include <asm/dma.h> 15#include <asm/dma.h>
15#include <asm/sn/intr.h> 16#include <asm/sn/intr.h>
16#include <asm/sn/pcibus_provider_defs.h> 17#include <asm/sn/pcibus_provider_defs.h>
@@ -465,3 +466,18 @@ int sn_pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size)
465 out: 466 out:
466 return ret; 467 return ret;
467} 468}
469
470struct dma_mapping_ops sn_dma_ops = {
471 .alloc_coherent = sn_dma_alloc_coherent,
472 .free_coherent = sn_dma_free_coherent,
473 .map_single_attrs = sn_dma_map_single_attrs,
474 .unmap_single_attrs = sn_dma_unmap_single_attrs,
475 .map_sg_attrs = sn_dma_map_sg_attrs,
476 .unmap_sg_attrs = sn_dma_unmap_sg_attrs,
477 .sync_single_for_cpu = sn_dma_sync_single_for_cpu,
478 .sync_sg_for_cpu = sn_dma_sync_sg_for_cpu,
479 .sync_single_for_device = sn_dma_sync_single_for_device,
480 .sync_sg_for_device = sn_dma_sync_sg_for_device,
481 .mapping_error = sn_dma_mapping_error,
482 .dma_supported_op = sn_dma_supported,
483};