scatterlist_32.h 522 B

1234567891011121314151617181920212223242526
  1. #ifndef _SPARC_SCATTERLIST_H
  2. #define _SPARC_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. __u32 dvma_address; /* A place to hang host-specific addresses at. */
  12. __u32 dvma_length;
  13. };
  14. #define sg_dma_address(sg) ((sg)->dvma_address)
  15. #define sg_dma_len(sg) ((sg)->dvma_length)
  16. #define ISA_DMA_THRESHOLD (~0UL)
  17. #define ARCH_HAS_SG_CHAIN
  18. #endif /* !(_SPARC_SCATTERLIST_H) */