Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
misc.c
Go to the documentation of this file.
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License. See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Miscellaneous ARCS PROM routines.
7  *
8  * Copyright (C) 1996 David S. Miller ([email protected])
9  * Copyright (C) 1999 Ralf Baechle ([email protected])
10  * Copyright (C) 1999 Silicon Graphics, Inc.
11  */
12 #include <linux/init.h>
13 #include <linux/kernel.h>
14 #include <linux/irqflags.h>
15 
16 #include <asm/bcache.h>
17 
18 #include <asm/fw/arc/types.h>
19 #include <asm/sgialib.h>
20 #include <asm/bootinfo.h>
21 
22 VOID
24 {
25  bc_disable();
27  ARC_CALL0(halt);
28 never: goto never;
29 }
30 
31 VOID
33 {
34  bc_disable();
36  ARC_CALL0(pdown);
37 never: goto never;
38 }
39 
40 /* XXX is this a soft reset basically? XXX */
41 VOID
43 {
44  bc_disable();
46  ARC_CALL0(restart);
47 never: goto never;
48 }
49 
50 VOID
52 {
53  bc_disable();
55  ARC_CALL0(reboot);
56 never: goto never;
57 }
58 
59 VOID
61 {
62  bc_disable();
64  ARC_CALL0(imode);
65 never: goto never;
66 }
67 
68 LONG
70 {
71  return ARC_CALL0(cfg_save);
72 }
73 
74 struct linux_sysid *
76 {
77  return (struct linux_sysid *) ARC_CALL0(get_sysid);
78 }
79 
82 {
83  ARC_CALL0(cache_flush);
84 }
85 
87 {
88  return (DISPLAY_STATUS *) ARC_CALL1(GetDisplayStatus, FileID);
89 }