scatterlist.h 553 B

1234567891011121314151617181920212223
  1. #ifndef __ASM_CRIS_SCATTERLIST_H
  2. #define __ASM_CRIS_SCATTERLIST_H
  3. struct scatterlist {
  4. #ifdef CONFIG_DEBUG_SG
  5. unsigned long sg_magic;
  6. #endif
  7. char * address; /* Location data is to be transferred to */
  8. unsigned int length;
  9. /* The following is i386 highmem junk - not used by us */
  10. unsigned long page_link;
  11. unsigned int offset;/* for highmem, page offset */
  12. };
  13. #define sg_dma_address(sg) ((sg)->address)
  14. #define sg_dma_len(sg) ((sg)->length)
  15. /* i386 junk */
  16. #define ISA_DMA_THRESHOLD (0x1fffffff)
  17. #endif /* !(__ASM_CRIS_SCATTERLIST_H) */