patch-2.1.51 linux/include/asm-ppc/scatterlist.h

Next file: linux/include/asm-ppc/semaphore.h
Previous file: linux/include/asm-ppc/resource.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/include/asm-ppc/scatterlist.h linux/include/asm-ppc/scatterlist.h
@@ -1,6 +1,8 @@
 #ifndef _PPC_SCATTERLIST_H
 #define _PPC_SCATTERLIST_H
 
+#include <linux/config.h>
+
 struct scatterlist {
     char *  address;    /* Location data is to be transferred to */
     char * alt_address; /* Location of actual if address is a 
@@ -8,6 +10,18 @@
     unsigned int length;
 };
 
+#ifdef CONFIG_PMAC
+/*
+ * This is used in the scsi code to decide if bounce buffers are needed.
+ * Fortunately the dma controllers on the PowerMac are a bit better
+ * than on PCs...
+ */
+#define ISA_DMA_THRESHOLD (~0UL)
+#endif
+
+#ifdef CONFIG_PREP
+/* PReP systems are like PCs */
 #define ISA_DMA_THRESHOLD (0x00ffffff)
+#endif
 
 #endif /* !(_PPC_SCATTERLIST_H) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov