scatterlist.h 404 B

12345678910111213141516171819202122
  1. #ifndef _ALPHA_SCATTERLIST_H
  2. #define _ALPHA_SCATTERLIST_H
  3. #include <asm/page.h>
  4. #include <asm/types.h>
  5. struct scatterlist {
  6. struct page *page;
  7. unsigned int offset;
  8. unsigned int length;
  9. dma_addr_t dma_address;
  10. __u32 dma_length;
  11. };
  12. #define sg_dma_address(sg) ((sg)->dma_address)
  13. #define sg_dma_len(sg) ((sg)->dma_length)
  14. #define ISA_DMA_THRESHOLD (~0UL)
  15. #endif /* !(_ALPHA_SCATTERLIST_H) */