File: system.h

package info (click to toggle)
kernel-source-sparc-2.2.1 2.2.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 62,800 kB
  • ctags: 188,320
  • sloc: ansic: 1,114,164; asm: 49,922; makefile: 8,272; sh: 1,831; perl: 1,584; tcl: 409; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (37 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * linux/include/asm-arm/arch-vnc/system.h
 *
 * Copyright (c) 1996,1997,1998 Russell King.
 * Copyright (c) 1998 Corel Computer Corp.
 */
#include <asm/hardware.h>
#include <asm/dec21285.h>
#include <asm/leds.h>
#include <asm/io.h>

extern __inline__ void arch_reset(char mode)
{
	cli();

	/* open up the SuperIO chip
	 */
	outb(0x87, 0x370);
	outb(0x87, 0x370);

	/* aux function group 1 (Logical Device 7)
	 */
	outb(0x07, 0x370);
	outb(0x07, 0x371);

	/* set GP16 for WD-TIMER output
	 */
	outb(0xE6, 0x370);
	outb(0x00, 0x371);

	/* set a RED LED and toggle WD_TIMER for rebooting...
	 */
	outb(0xC4, 0x338);
}

#define arch_start_idle()	leds_event(led_idle_start)
#define arch_end_idle()		leds_event(led_idle_end)