blob: dd4140b4dd2f5d8b5f18455095e8fdc0914fd648 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_IA64_MACHVEC_HPZX1_h
2#define _ASM_IA64_MACHVEC_HPZX1_h
3
Alex Williamson0b9afed2005-09-06 11:20:49 -06004extern ia64_mv_setup_t dig_setup;
FUJITA Tomonori4d9b9772009-01-05 23:36:12 +09005extern ia64_mv_dma_init sba_dma_init;
Linus Torvalds1da177e2005-04-16 15:20:36 -07006extern ia64_mv_dma_alloc_coherent sba_alloc_coherent;
7extern ia64_mv_dma_free_coherent sba_free_coherent;
Arthur Kepner309df0c2008-04-29 01:00:32 -07008extern ia64_mv_dma_map_single_attrs sba_map_single_attrs;
9extern ia64_mv_dma_unmap_single_attrs sba_unmap_single_attrs;
10extern ia64_mv_dma_map_sg_attrs sba_map_sg_attrs;
11extern ia64_mv_dma_unmap_sg_attrs sba_unmap_sg_attrs;
Linus Torvalds1da177e2005-04-16 15:20:36 -070012extern ia64_mv_dma_supported sba_dma_supported;
13extern ia64_mv_dma_mapping_error sba_dma_mapping_error;
14
15/*
16 * This stuff has dual use!
17 *
18 * For a generic kernel, the macros are used to initialize the
19 * platform's machvec structure. When compiling a non-generic kernel,
20 * the macros are used directly.
21 */
Alex Williamson0b9afed2005-09-06 11:20:49 -060022#define platform_name "hpzx1"
23#define platform_setup dig_setup
FUJITA Tomonori4d9b9772009-01-05 23:36:12 +090024#define platform_dma_init sba_dma_init
Alex Williamson0b9afed2005-09-06 11:20:49 -060025#define platform_dma_alloc_coherent sba_alloc_coherent
26#define platform_dma_free_coherent sba_free_coherent
Arthur Kepner309df0c2008-04-29 01:00:32 -070027#define platform_dma_map_single_attrs sba_map_single_attrs
28#define platform_dma_unmap_single_attrs sba_unmap_single_attrs
29#define platform_dma_map_sg_attrs sba_map_sg_attrs
30#define platform_dma_unmap_sg_attrs sba_unmap_sg_attrs
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#define platform_dma_sync_single_for_cpu machvec_dma_sync_single
32#define platform_dma_sync_sg_for_cpu machvec_dma_sync_sg
33#define platform_dma_sync_single_for_device machvec_dma_sync_single
34#define platform_dma_sync_sg_for_device machvec_dma_sync_sg
35#define platform_dma_supported sba_dma_supported
36#define platform_dma_mapping_error sba_dma_mapping_error
37
38#endif /* _ASM_IA64_MACHVEC_HPZX1_h */