blob: 5a8a83440d3b80a8d9c8033032e00c14dda566a3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_CRIS_SCATTERLIST_H
2#define __ASM_CRIS_SCATTERLIST_H
3
4struct scatterlist {
5 char * address; /* Location data is to be transferred to */
6 unsigned int length;
7
8 /* The following is i386 highmem junk - not used by us */
Jens Axboe18dabf42007-10-22 19:57:20 +02009 unsigned long page_link;
Linus Torvalds1da177e2005-04-16 15:20:36 -070010 unsigned int offset;/* for highmem, page offset */
11
12};
13
14#define sg_dma_address(sg) ((sg)->address)
15#define sg_dma_len(sg) ((sg)->length)
16/* i386 junk */
17
18#define ISA_DMA_THRESHOLD (0x1fffffff)
19
20#endif /* !(__ASM_CRIS_SCATTERLIST_H) */