scatterlist.h 782 B

12345678910111213141516171819202122232425262728
  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. struct scatterlist {
  8. struct page *page;
  9. unsigned int offset;
  10. unsigned int length; /* buffer length */
  11. dma_addr_t dma_address;
  12. unsigned int dma_length;
  13. };
  14. /*
  15. * It used to be that ISA_DMA_THRESHOLD had something to do with the
  16. * DMA-limits of ISA-devices. Nowadays, its only remaining use (apart
  17. * from the aha1542.c driver, which isn't 64-bit clean anyhow) is to
  18. * tell the block-layer (via BLK_BOUNCE_ISA) what the max. physical
  19. * address of a page is that is allocated with GFP_DMA. On IA-64,
  20. * that's 4GB - 1.
  21. */
  22. #define ISA_DMA_THRESHOLD 0xffffffff
  23. #endif /* _ASM_IA64_SCATTERLIST_H */