blob: d3a7a0edfecab3d9ad3a04cc3e936cf1ca9faf50 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _M68K_SCATTERLIST_H
2#define _M68K_SCATTERLIST_H
3
Geert Uytterhoevenb590d2b2007-05-08 20:27:03 -07004#include <linux/types.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006struct scatterlist {
Jens Axboed6ec0842007-10-22 20:01:06 +02007#ifdef CONFIG_DEBUG_SG
8 unsigned long sg_magic;
9#endif
Jens Axboe18dabf42007-10-22 19:57:20 +020010 unsigned long page_link;
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 unsigned int offset;
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 unsigned int length;
13
Roman Zippelb035c962006-06-25 05:46:56 -070014 __u32 dma_address; /* A place to hang host-specific addresses at. */
Linus Torvalds1da177e2005-04-16 15:20:36 -070015};
16
17/* This is bogus and should go away. */
18#define ISA_DMA_THRESHOLD (0x00ffffff)
19
Roman Zippelb035c962006-06-25 05:46:56 -070020#define sg_dma_address(sg) ((sg)->dma_address)
21#define sg_dma_len(sg) ((sg)->length)
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif /* !(_M68K_SCATTERLIST_H) */