patch-2.2.11 linux/include/asm-alpha/core_tsunami.h

Next file: linux/include/asm-alpha/fpu.h
Previous file: linux/include/asm-alpha/core_pyxis.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.10/linux/include/asm-alpha/core_tsunami.h linux/include/asm-alpha/core_tsunami.h
@@ -16,8 +16,24 @@
  *
  */
 
+/*
+ * We must actually use 2 windows to direct-map the 2GB space, because
+ * of an "idiot-syncracy" of the CYPRESS chip used on DS20 and others.
+ * It may respond to a PCI bus address in the last 1MB of the 4GB
+ * address range, and that is where real memory may appear.
+ *
+ * Sigh...
+ */
 #define TSUNAMI_DMA_WIN_BASE_DEFAULT    (1024*1024*1024U)
-#define TSUNAMI_DMA_WIN_SIZE_DEFAULT    (1024*1024*1024U)
+#define TSUNAMI_DMA_WIN_SIZE_DEFAULT    (2*1024*1024*1024U)
+
+#define TSUNAMI_DMA_WIN0_BASE_DEFAULT    (1024*1024*1024UL)
+#define TSUNAMI_DMA_WIN0_SIZE_DEFAULT    (1024*1024*1024UL)
+#define TSUNAMI_DMA_WIN0_TRAN_DEFAULT    (0UL)
+
+#define TSUNAMI_DMA_WIN1_BASE_DEFAULT    (2*1024*1024*1024UL)
+#define TSUNAMI_DMA_WIN1_SIZE_DEFAULT    (1024*1024*1024UL)
+#define TSUNAMI_DMA_WIN1_TRAN_DEFAULT    (1024*1024*1024UL)
 
 #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM_SETUP)
 #define TSUNAMI_DMA_WIN_BASE		alpha_mv.dma_win_base

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)