machvec_hpzx1_swiotlb.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h
  2. #define _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h
  3. extern ia64_mv_setup_t dig_setup;
  4. extern ia64_mv_dma_alloc_coherent hwsw_alloc_coherent;
  5. extern ia64_mv_dma_free_coherent hwsw_free_coherent;
  6. extern ia64_mv_dma_map_single_attrs hwsw_map_single_attrs;
  7. extern ia64_mv_dma_unmap_single_attrs hwsw_unmap_single_attrs;
  8. extern ia64_mv_dma_map_sg_attrs hwsw_map_sg_attrs;
  9. extern ia64_mv_dma_unmap_sg_attrs hwsw_unmap_sg_attrs;
  10. extern ia64_mv_dma_supported hwsw_dma_supported;
  11. extern ia64_mv_dma_mapping_error hwsw_dma_mapping_error;
  12. extern ia64_mv_dma_sync_single_for_cpu hwsw_sync_single_for_cpu;
  13. extern ia64_mv_dma_sync_sg_for_cpu hwsw_sync_sg_for_cpu;
  14. extern ia64_mv_dma_sync_single_for_device hwsw_sync_single_for_device;
  15. extern ia64_mv_dma_sync_sg_for_device hwsw_sync_sg_for_device;
  16. /*
  17. * This stuff has dual use!
  18. *
  19. * For a generic kernel, the macros are used to initialize the
  20. * platform's machvec structure. When compiling a non-generic kernel,
  21. * the macros are used directly.
  22. */
  23. #define platform_name "hpzx1_swiotlb"
  24. #define platform_setup dig_setup
  25. #define platform_dma_init machvec_noop
  26. #define platform_dma_alloc_coherent hwsw_alloc_coherent
  27. #define platform_dma_free_coherent hwsw_free_coherent
  28. #define platform_dma_map_single_attrs hwsw_map_single_attrs
  29. #define platform_dma_unmap_single_attrs hwsw_unmap_single_attrs
  30. #define platform_dma_map_sg_attrs hwsw_map_sg_attrs
  31. #define platform_dma_unmap_sg_attrs hwsw_unmap_sg_attrs
  32. #define platform_dma_supported hwsw_dma_supported
  33. #define platform_dma_mapping_error hwsw_dma_mapping_error
  34. #define platform_dma_sync_single_for_cpu hwsw_sync_single_for_cpu
  35. #define platform_dma_sync_sg_for_cpu hwsw_sync_sg_for_cpu
  36. #define platform_dma_sync_single_for_device hwsw_sync_single_for_device
  37. #define platform_dma_sync_sg_for_device hwsw_sync_sg_for_device
  38. #endif /* _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h */