Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / asm-m68k / scatterlist.h
blobd3a7a0edfecab3d9ad3a04cc3e936cf1ca9faf50
1 #ifndef _M68K_SCATTERLIST_H
2 #define _M68K_SCATTERLIST_H
4 #include <linux/types.h>
6 struct scatterlist {
7 #ifdef CONFIG_DEBUG_SG
8 unsigned long sg_magic;
9 #endif
10 unsigned long page_link;
11 unsigned int offset;
12 unsigned int length;
14 __u32 dma_address; /* A place to hang host-specific addresses at. */
17 /* This is bogus and should go away. */
18 #define ISA_DMA_THRESHOLD (0x00ffffff)
20 #define sg_dma_address(sg) ((sg)->dma_address)
21 #define sg_dma_len(sg) ((sg)->length)
23 #endif /* !(_M68K_SCATTERLIST_H) */