diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-01-05 09:36:10 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-06 08:06:49 -0500 |
commit | b4391dd11df6214ad4c11706a3a606926e86a6ce (patch) | |
tree | d31eddf81b3dcc3da0cd2ff3c79d679831de2a9e /arch | |
parent | 98c382bca9382128b2dbc2108a4c77d667d87abc (diff) |
add dma_mapping_ops for SGI Altix
This is for IA64_SGI_SN2.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/sn/pci/pci_dma.c | 16 |
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 | |||
470 | struct 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 | }; | ||