scatterlist.h 512 B

1234567891011121314151617181920212223
  1. #ifndef _M68K_SCATTERLIST_H
  2. #define _M68K_SCATTERLIST_H
  3. #include <linux/types.h>
  4. struct scatterlist {
  5. #ifdef CONFIG_DEBUG_SG
  6. unsigned long sg_magic;
  7. #endif
  8. unsigned long page_link;
  9. unsigned int offset;
  10. unsigned int length;
  11. dma_addr_t dma_address; /* A place to hang host-specific addresses at. */
  12. };
  13. /* This is bogus and should go away. */
  14. #define ISA_DMA_THRESHOLD (0x00ffffff)
  15. #define sg_dma_address(sg) ((sg)->dma_address)
  16. #define sg_dma_len(sg) ((sg)->length)
  17. #endif /* !(_M68K_SCATTERLIST_H) */