patch-2.4.19 linux-2.4.19/include/asm-mips/ddb5xxx/ddb5477.h

Next file: linux-2.4.19/include/asm-mips/ddb5xxx/ddb5xxx.h
Previous file: linux-2.4.19/include/asm-mips/ddb5xxx/ddb5476.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-mips/ddb5xxx/ddb5477.h linux-2.4.19/include/asm-mips/ddb5xxx/ddb5477.h
@@ -18,7 +18,6 @@
 #define __ASM_DDB5XXX_DDB5477_H
 
 #include <linux/config.h>
-#include <asm/ddb5xxx/ddb5xxx.h>
 
 /*
  * This contains macros that are specific to DDB5477 or renamed from
@@ -28,9 +27,9 @@
 /*
  * renamed PADRs
  */
-#define	DDB_LCS0	DDB_LDCS0
-#define	DDB_LCS1	DDB_LDCS1
-#define	DDB_LCS2	DDB_LDCS2
+#define	DDB_LCS0	DDB_DCS2
+#define	DDB_LCS1	DDB_DCS3
+#define	DDB_LCS2	DDB_DCS4
 #define	DDB_VRC5477	DDB_INTCS
 
 /*
@@ -173,8 +172,10 @@
  *  corresponding size.  For example, if PCI_IO_SIZE is 16MB, then
  *  PCI_IO_BASE must be aligned along 16MB boundary.
  */
+
+/* the actual ram size is detected at run-time */
 #define	DDB_SDRAM_BASE		0x00000000
-#define	DDB_SDRAM_SIZE		0x08000000	/* 128MB, for sure? */
+#define	DDB_MAX_SDRAM_SIZE	0x08000000	/* less than 128MB */
 
 #define	DDB_PCI0_MEM_BASE	0x08000000
 #define	DDB_PCI0_MEM_SIZE	0x08000000	/* 128 MB */
@@ -227,7 +228,7 @@
 /* 
  * debug routines
  */
-#if defined(CONFIG_LL_DEBUG)
+#if defined(CONFIG_DEBUG)
 extern void vrc5477_show_pdar_regs(void);
 extern void vrc5477_show_pci_regs(void);
 extern void vrc5477_show_bar_regs(void);
@@ -235,4 +236,9 @@
 extern void vrc5477_show_all_regs(void);
 #endif
 
+/*
+ * RAM size
+ */
+extern int board_ram_size;
+
 #endif /* __ASM_DDB5XXX_DDB5477_H */

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