patch-2.1.44 linux/arch/mips/sgi/kernel/reset.c

Next file: linux/arch/mips/sgi/kernel/setup.c
Previous file: linux/arch/mips/sgi/kernel/indy_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/arch/mips/sgi/kernel/reset.c linux/arch/mips/sgi/kernel/reset.c
@@ -0,0 +1,25 @@
+/*
+ *  linux/arch/mips/sgi/kernel/process.c
+ *
+ *  Reset a SGI.
+ */
+#include <asm/io.h>
+#include <asm/system.h>
+#include <asm/reboot.h>
+
+/* XXX How to pass the reboot command to the firmware??? */
+void sgi_machine_restart(char *command)
+{
+        for(;;)
+                prom_imode();
+}
+
+void sgi_machine_halt(void)
+{
+	/* XXX */
+}
+
+void sgi_machine_power_off(void)
+{
+	/* XXX */
+}

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