patch-2.3.43 linux/include/asm-alpha/scatterlist.h
Next file: linux/include/asm-alpha/semaphore.h
Previous file: linux/include/asm-alpha/pgalloc.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Feb 7 20:09:05 2000
- Orig file:
v2.3.42/linux/include/asm-alpha/scatterlist.h
- Orig date:
Mon Dec 30 03:01:10 1996
diff -u --recursive --new-file v2.3.42/linux/include/asm-alpha/scatterlist.h linux/include/asm-alpha/scatterlist.h
@@ -1,12 +1,19 @@
#ifndef _ALPHA_SCATTERLIST_H
#define _ALPHA_SCATTERLIST_H
+#include <linux/types.h>
+
struct scatterlist {
- char * address; /* Location data is to be transferred to */
- char * alt_address; /* Location of actual if address is a
- * dma indirect buffer. NULL otherwise */
- unsigned int length;
+ char *address; /* Source/target vaddr. */
+ char *alt_address; /* Location of actual if address is a
+ dma indirect buffer, else NULL. */
+ dma_addr_t dma_address;
+ unsigned int length;
+ unsigned int dma_length;
};
+
+#define sg_dma_address(sg) ((sg)->dma_address)
+#define sg_dma_len(sg) ((sg)->dma_length)
#define ISA_DMA_THRESHOLD (~0UL)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)