dma-mapping.h 821 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_DMA_MAPPING_H
  3. #define _ASM_IA64_DMA_MAPPING_H
  4. /*
  5. * Copyright (C) 2003-2004 Hewlett-Packard Co
  6. * David Mosberger-Tang <davidm@hpl.hp.com>
  7. */
  8. #include <asm/machvec.h>
  9. #include <linux/scatterlist.h>
  10. #include <linux/dma-debug.h>
  11. #define ARCH_HAS_DMA_GET_REQUIRED_MASK
  12. extern const struct dma_map_ops *dma_ops;
  13. extern struct ia64_machine_vector ia64_mv;
  14. extern void set_iommu_machvec(void);
  15. extern void machvec_dma_sync_single(struct device *, dma_addr_t, size_t,
  16. enum dma_data_direction);
  17. extern void machvec_dma_sync_sg(struct device *, struct scatterlist *, int,
  18. enum dma_data_direction);
  19. static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
  20. {
  21. return platform_dma_get_ops(NULL);
  22. }
  23. #endif /* _ASM_IA64_DMA_MAPPING_H */