scatterlist.h 708 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2008 Michal Simek <monstr@monstr.eu>
  3. * Copyright (C) 2006 Atmark Techno, Inc.
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. */
  9. #ifndef _ASM_MICROBLAZE_SCATTERLIST_H
  10. #define _ASM_MICROBLAZE_SCATTERLIST_H
  11. struct scatterlist {
  12. #ifdef CONFIG_DEBUG_SG
  13. unsigned long sg_magic;
  14. #endif
  15. unsigned long page_link;
  16. dma_addr_t dma_address;
  17. unsigned int offset;
  18. unsigned int length;
  19. };
  20. #define sg_dma_address(sg) ((sg)->dma_address)
  21. #define sg_dma_len(sg) ((sg)->length)
  22. #define ISA_DMA_THRESHOLD (~0UL)
  23. #endif /* _ASM_MICROBLAZE_SCATTERLIST_H */