patch-2.4.22 linux-2.4.22/include/asm-mips/cobalt/cobalt.h

Next file: linux-2.4.22/include/asm-mips/cpu.h
Previous file: linux-2.4.22/include/asm-mips/checksum.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-mips/cobalt/cobalt.h linux-2.4.22/include/asm-mips/cobalt/cobalt.h
@@ -7,7 +7,7 @@
  *
  * Copyright (C) 1997 Cobalt Microserver
  * Copyright (C) 1997 Ralf Baechle
- * Copyright (C) 2001 Liam Davies (ldavies@agile.tv)
+ * Copyright (C) 2001, 2002, 2003 Liam Davies (ldavies@agile.tv)
  *
  */
 #ifndef __ASM_MIPS_COBALT_H
@@ -37,10 +37,9 @@
  */
 #define COBALT_TIMER_IRQ       0
 #define COBALT_KEYBOARD_IRQ    1
-#define COBALT_QUBE_ETH_IRQ    13
 #define COBALT_QUBE_SLOT_IRQ   9
-#define COBALT_RAQ_ETH0_IRQ    4
-#define COBALT_RAQ_ETH1_IRQ    13
+#define COBALT_ETH0_IRQ        4
+#define COBALT_ETH1_IRQ        13
 #define COBALT_SCC_IRQ         4
 #define COBALT_SERIAL2_IRQ     4
 #define COBALT_PARALLEL_IRQ    5
@@ -79,5 +78,19 @@
 #define COBALT_BRD_ID_QUBE2    0x5
 #define COBALT_BRD_ID_RAQ2     0x6
 
-#endif /* __ASM_MIPS_COBALT_H */
 
+/*
+ * Galileo chipset access macros for the Cobalt. The base address for
+ * the GT64111 chip is 0x14000000
+ */
+#define GT64111_BASE		0x04000000
+#define GALILEO_REG(ofs)	(GT64111_BASE + (ofs))
+
+#define GALILEO_INL(port)	(inl(GALILEO_REG(port)))
+#define GALILEO_OUTL(val, port)	outl(val, GALILEO_REG(port))
+
+#define GALILEO_T0EXP		0x0100
+#define GALILEO_ENTC0		0x01
+#define GALILEO_SELTC0		0x02
+
+#endif /* __ASM_MIPS_COBALT_H */

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