blob: 24887a2d9c7bd09290b6980fee23e4a1d74090fa [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 {
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 struct page *page;
8 unsigned int offset;
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 unsigned int length;
10
Roman Zippelb035c962006-06-25 05:46:56 -070011 __u32 dma_address; /* A place to hang host-specific addresses at. */
Linus Torvalds1da177e2005-04-16 15:20:36 -070012};
13
14/* This is bogus and should go away. */
15#define ISA_DMA_THRESHOLD (0x00ffffff)
16
Roman Zippelb035c962006-06-25 05:46:56 -070017#define sg_dma_address(sg) ((sg)->dma_address)
18#define sg_dma_len(sg) ((sg)->length)
19
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#endif /* !(_M68K_SCATTERLIST_H) */