summaryrefslogtreecommitdiffstats
path: root/include/asm-alpha/scatterlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-alpha/scatterlist.h')
-rw-r--r--include/asm-alpha/scatterlist.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-alpha/scatterlist.h b/include/asm-alpha/scatterlist.h
new file mode 100644
index 0000000..6afb8bd
--- /dev/null
+++ b/include/asm-alpha/scatterlist.h
@@ -0,0 +1,21 @@
+#ifndef _ALPHA_SCATTERLIST_H
+#define _ALPHA_SCATTERLIST_H
+
+#include <asm/page.h>
+
+struct scatterlist {
+ struct page *page;
+ unsigned int offset;
+
+ unsigned int length;
+
+ dma_addr_t dma_address;
+ __u32 dma_length;
+};
+
+#define sg_dma_address(sg) ((sg)->dma_address)
+#define sg_dma_len(sg) ((sg)->dma_length)
+
+#define ISA_DMA_THRESHOLD (~0UL)
+
+#endif /* !(_ALPHA_SCATTERLIST_H) */
OpenPOWER on IntegriCloud