* better
[mascara-docs.git] / i386 / linux-2.3.21 / arch / mips / jazz / reset.c
blobd689d696c306265ee435db7e52c41a14df5dfbf9
1 /*
2 * linux/arch/mips/jazz/process.c
4 * Reset a Jazz machine.
6 * $Id: reset.c,v 1.3 1998/03/04 08:29:10 ralf Exp $
7 */
9 #include <linux/sched.h>
10 #include <asm/jazz.h>
11 #include <asm/io.h>
12 #include <asm/system.h>
13 #include <asm/reboot.h>
14 #include <asm/delay.h>
15 #include <asm/keyboard.h>
17 static inline void kb_wait(void)
19 unsigned long start = jiffies;
21 do {
22 if (! (kbd_read_status() & 0x02))
23 return;
24 } while (jiffies - start < 50);
27 void jazz_machine_restart(char *command)
29 while (1) {
30 kb_wait ();
31 kbd_write_command (0xd1);
32 kb_wait ();
33 kbd_write_output (0x00);
37 void jazz_machine_halt(void)
41 void jazz_machine_power_off(void)
43 /* Jazz machines don't have a software power switch */