scatterlist.h 533 B

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