Disintegrate asm/system.h for MIPS
[linux-2.6.git] / arch / mips / fw / arc / misc.c
blob7cf80ca2c1d2117c239ba574406c6814ecb91961
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.
6 * Miscellaneous ARCS PROM routines.
8 * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
9 * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
10 * Copyright (C) 1999 Silicon Graphics, Inc.
12 #include <linux/init.h>
13 #include <linux/kernel.h>
15 #include <asm/bcache.h>
17 #include <asm/fw/arc/types.h>
18 #include <asm/sgialib.h>
19 #include <asm/bootinfo.h>
21 VOID
22 ArcHalt(VOID)
24 bc_disable();
25 local_irq_disable();
26 ARC_CALL0(halt);
27 never: goto never;
30 VOID
31 ArcPowerDown(VOID)
33 bc_disable();
34 local_irq_disable();
35 ARC_CALL0(pdown);
36 never: goto never;
39 /* XXX is this a soft reset basically? XXX */
40 VOID
41 ArcRestart(VOID)
43 bc_disable();
44 local_irq_disable();
45 ARC_CALL0(restart);
46 never: goto never;
49 VOID
50 ArcReboot(VOID)
52 bc_disable();
53 local_irq_disable();
54 ARC_CALL0(reboot);
55 never: goto never;
58 VOID
59 ArcEnterInteractiveMode(VOID)
61 bc_disable();
62 local_irq_disable();
63 ARC_CALL0(imode);
64 never: goto never;
67 LONG
68 ArcSaveConfiguration(VOID)
70 return ARC_CALL0(cfg_save);
73 struct linux_sysid *
74 ArcGetSystemId(VOID)
76 return (struct linux_sysid *) ARC_CALL0(get_sysid);
79 VOID __init
80 ArcFlushAllCaches(VOID)
82 ARC_CALL0(cache_flush);
85 DISPLAY_STATUS * __init ArcGetDisplayStatus(ULONG FileID)
87 return (DISPLAY_STATUS *) ARC_CALL1(GetDisplayStatus, FileID);