blob: 8e612266da51bb1bcc6871bf55663b144d1d2d12 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _M68K_SCATTERLIST_H
2#define _M68K_SCATTERLIST_H
3
4struct scatterlist {
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 struct page *page;
6 unsigned int offset;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 unsigned int length;
8
Roman Zippelb035c962006-06-25 05:46:56 -07009 __u32 dma_address; /* A place to hang host-specific addresses at. */
Linus Torvalds1da177e2005-04-16 15:20:36 -070010};
11
12/* This is bogus and should go away. */
13#define ISA_DMA_THRESHOLD (0x00ffffff)
14
Roman Zippelb035c962006-06-25 05:46:56 -070015#define sg_dma_address(sg) ((sg)->dma_address)
16#define sg_dma_len(sg) ((sg)->length)
17
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif /* !(_M68K_SCATTERLIST_H) */