1 | #ifndef _ASM_IA64_MACHVEC_DIG_h |
---|
2 | #define _ASM_IA64_MACHVEC_DIG_h |
---|
3 | |
---|
4 | extern ia64_mv_setup_t dig_setup; |
---|
5 | |
---|
6 | /* |
---|
7 | * This stuff has dual use! |
---|
8 | * |
---|
9 | * For a generic kernel, the macros are used to initialize the |
---|
10 | * platform's machvec structure. When compiling a non-generic kernel, |
---|
11 | * the macros are used directly. |
---|
12 | */ |
---|
13 | #define platform_name "dig" |
---|
14 | #ifdef XEN |
---|
15 | /* |
---|
16 | * All the World is a PC .... yay! yay! yay! |
---|
17 | */ |
---|
18 | extern ia64_mv_setup_t hpsim_setup; |
---|
19 | #define platform_setup hpsim_setup |
---|
20 | |
---|
21 | #define platform_dma_init machvec_noop |
---|
22 | #define platform_dma_alloc_coherent machvec_noop_dma_alloc_coherent |
---|
23 | #define platform_dma_free_coherent machvec_noop_dma_free_coherent |
---|
24 | #define platform_dma_map_single machvec_noop_dma_map_single |
---|
25 | #define platform_dma_unmap_single machvec_noop_dma_unmap_single |
---|
26 | #define platform_dma_map_sg machvec_noop_dma_map_sg |
---|
27 | #define platform_dma_unmap_sg machvec_noop_dma_unmap_sg |
---|
28 | #define platform_dma_sync_single_for_cpu \ |
---|
29 | machvec_noop_dma_sync_single_for_cpu |
---|
30 | #define platform_dma_sync_sg_for_cpu \ |
---|
31 | machvec_noop_dma_sync_sg_for_cpu |
---|
32 | #define platform_dma_sync_single_for_device \ |
---|
33 | machvec_noop_dma_sync_single_for_device |
---|
34 | #define platform_dma_sync_sg_for_device \ |
---|
35 | machvec_noop_dma_sync_sg_for_device |
---|
36 | #define platform_dma_mapping_error machvec_noop_dma_mapping_error |
---|
37 | #define platform_dma_supported machvec_noop_dma_supported |
---|
38 | |
---|
39 | #define platform_pci_get_legacy_mem machvec_noop_pci_get_legacy_mem |
---|
40 | #define platform_pci_legacy_read machvec_noop_pci_legacy_read |
---|
41 | #define platform_pci_legacy_write machvec_noop_pci_legacy_write |
---|
42 | #else |
---|
43 | #define platform_setup dig_setup |
---|
44 | #endif |
---|
45 | |
---|
46 | #endif /* _ASM_IA64_MACHVEC_DIG_h */ |
---|