scatterlist.h 465 B

12345678910111213141516171819202122232425
  1. #ifndef _ALPHA_SCATTERLIST_H
  2. #define _ALPHA_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. dma_addr_t dma_address;
  13. __u32 dma_length;
  14. };
  15. #define sg_dma_address(sg) ((sg)->dma_address)
  16. #define sg_dma_len(sg) ((sg)->dma_length)
  17. #define ISA_DMA_THRESHOLD (~0UL)
  18. #endif /* !(_ALPHA_SCATTERLIST_H) */