scatterlist.h 722 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _PPC64_SCATTERLIST_H
  2. #define _PPC64_SCATTERLIST_H
  3. /*
  4. * Copyright (C) 2001 PPC64 Team, IBM Corp
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #include <linux/types.h>
  12. #include <asm/dma.h>
  13. struct scatterlist {
  14. struct page *page;
  15. unsigned int offset;
  16. unsigned int length;
  17. /* For TCE support */
  18. u32 dma_address;
  19. u32 dma_length;
  20. };
  21. #define sg_dma_address(sg) ((sg)->dma_address)
  22. #define sg_dma_len(sg) ((sg)->dma_length)
  23. #define ISA_DMA_THRESHOLD (~0UL)
  24. #endif /* !(_PPC64_SCATTERLIST_H) */