scatterlist.h 897 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _ASM_IA64_SCATTERLIST_H
  2. #define _ASM_IA64_SCATTERLIST_H
  3. /*
  4. * Modified 1998-1999, 2001-2002, 2004
  5. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  6. */
  7. #include <asm/types.h>
  8. struct scatterlist {
  9. struct page *page;
  10. unsigned int offset;
  11. unsigned int length; /* buffer length */
  12. dma_addr_t dma_address;
  13. unsigned int dma_length;
  14. };
  15. /*
  16. * It used to be that ISA_DMA_THRESHOLD had something to do with the
  17. * DMA-limits of ISA-devices. Nowadays, its only remaining use (apart
  18. * from the aha1542.c driver, which isn't 64-bit clean anyhow) is to
  19. * tell the block-layer (via BLK_BOUNCE_ISA) what the max. physical
  20. * address of a page is that is allocated with GFP_DMA. On IA-64,
  21. * that's 4GB - 1.
  22. */
  23. #define ISA_DMA_THRESHOLD 0xffffffff
  24. #define sg_dma_len(sg) ((sg)->dma_length)
  25. #define sg_dma_address(sg) ((sg)->dma_address)
  26. #endif /* _ASM_IA64_SCATTERLIST_H */