patch-2.4.20 linux-2.4.20/arch/mips/sgi-ip22/ip22-mc.c
Next file: linux-2.4.20/arch/mips/sgi-ip22/ip22-reset.c
Previous file: linux-2.4.20/arch/mips/sgi-ip22/ip22-irq.S
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Nov 28 15:53:10 2002
- Orig file:
linux-2.4.19/arch/mips/sgi-ip22/ip22-mc.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/mips/sgi-ip22/ip22-mc.c linux-2.4.20/arch/mips/sgi-ip22/ip22-mc.c
@@ -16,10 +16,15 @@
/* #define DEBUG_SGIMC */
+#ifdef DEBUG_SGIMC
+extern void prom_printf(char *fmt, ...);
+#endif
+
struct sgimc_misc_ctrl *mcmisc_regs;
struct sgimc_dma_ctrl *dmactrlregs;
u32 *rpsscounter;
+#ifdef DEBUG_SGIMC
static inline char *mconfig_string(unsigned long val)
{
switch(val & SGIMC_MCONFIG_RMASK) {
@@ -45,6 +50,7 @@
return "wheee, unknown";
}
}
+#endif
void __init sgimc_init(void)
{
@@ -82,12 +88,12 @@
/* Place the MC into a known state. This must be done before
* interrupts are first enabled etc.
*/
-
+
/* Step 0: Make sure we turn off the watchdog in case it's
* still running (which might be the case after a
* soft reboot).
*/
- tmpreg = mcmisc_regs->cpuctrl0;
+ tmpreg = mcmisc_regs->cpuctrl0;
tmpreg &= ~SGIMC_CCTRL0_WDOG;
mcmisc_regs->cpuctrl0 = tmpreg;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)