scatterlist.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef _ALPHA_SCATTERLIST_H
  2. #define _ALPHA_SCATTERLIST_H
  3. #include <asm/page.h>
  4.   
  5. struct scatterlist {
  6. /* This will disappear in 2.5.x */
  7. char *address;
  8. /* These two are only valid if ADDRESS member of this
  9.    struct is NULL.  */
  10. struct page *page;
  11. unsigned int offset;
  12. unsigned int length;
  13. dma_addr_t dma_address;
  14. __u32 dma_length;
  15. };
  16. #define sg_dma_address(sg) ((sg)->dma_address)
  17. #define sg_dma_len(sg) ((sg)->dma_length)
  18. #define ISA_DMA_THRESHOLD (~0UL)
  19. #endif /* !(_ALPHA_SCATTERLIST_H) */