x86: enable CONFIG_DEBUG_PAGEALLOC more widely
[wrt350n-kernel.git] / include / asm-frv / scatterlist.h
blob2e7143b5a7ad2921109e4bbf1ec3a4ec2d8d1e76
1 #ifndef _ASM_SCATTERLIST_H
2 #define _ASM_SCATTERLIST_H
4 #include <asm/types.h>
6 /*
7 * Drivers must set either ->address or (preferred) page and ->offset
8 * to indicate where data must be transferred to/from.
10 * Using page is recommended since it handles highmem data as well as
11 * low mem. ->address is restricted to data which has a virtual mapping, and
12 * it will go away in the future. Updating to page can be automated very
13 * easily -- something like
15 * sg->address = some_ptr;
17 * can be rewritten as
19 * sg_set_buf(sg, some_ptr, length);
21 * and that's it. There's no excuse for not highmem enabling YOUR driver. /jens
23 struct scatterlist {
24 #ifdef CONFIG_DEBUG_SG
25 unsigned long sg_magic;
26 #endif
27 unsigned long page_link;
28 unsigned int offset; /* for highmem, page offset */
30 dma_addr_t dma_address;
31 unsigned int length;
34 #define ISA_DMA_THRESHOLD (0xffffffffUL)
36 #endif /* !_ASM_SCATTERLIST_H */