scatterlist.h 627 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_PARISC_SCATTERLIST_H
  2. #define _ASM_PARISC_SCATTERLIST_H
  3. #include <asm/page.h>
  4. #include <asm/types.h>
  5. struct scatterlist {
  6. #ifdef CONFIG_DEBUG_SG
  7. unsigned long sg_magic;
  8. #endif
  9. unsigned long page_link;
  10. unsigned int offset;
  11. unsigned int length;
  12. /* an IOVA can be 64-bits on some PA-Risc platforms. */
  13. dma_addr_t iova; /* I/O Virtual Address */
  14. __u32 iova_length; /* bytes mapped */
  15. };
  16. #define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
  17. #define sg_dma_address(sg) ((sg)->iova)
  18. #define sg_dma_len(sg) ((sg)->iova_length)
  19. #define ISA_DMA_THRESHOLD (~0UL)
  20. #endif /* _ASM_PARISC_SCATTERLIST_H */