KVM: PPC: Book3S: Only report KVM_CAP_SPAPR_TCE_VFIO on powernv machines
[linux/fpc-iii.git] / arch / mips / fw / arc / misc.c
blob19f710117d974bf2a0da97764e7bc3ec428b3fc8
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/compiler.h>
13 #include <linux/init.h>
14 #include <linux/kernel.h>
15 #include <linux/irqflags.h>
17 #include <asm/bcache.h>
19 #include <asm/fw/arc/types.h>
20 #include <asm/sgialib.h>
21 #include <asm/bootinfo.h>
23 VOID __noreturn
24 ArcHalt(VOID)
26 bc_disable();
27 local_irq_disable();
28 ARC_CALL0(halt);
30 unreachable();
33 VOID __noreturn
34 ArcPowerDown(VOID)
36 bc_disable();
37 local_irq_disable();
38 ARC_CALL0(pdown);
40 unreachable();
43 /* XXX is this a soft reset basically? XXX */
44 VOID __noreturn
45 ArcRestart(VOID)
47 bc_disable();
48 local_irq_disable();
49 ARC_CALL0(restart);
51 unreachable();
54 VOID __noreturn
55 ArcReboot(VOID)
57 bc_disable();
58 local_irq_disable();
59 ARC_CALL0(reboot);
61 unreachable();
64 VOID __noreturn
65 ArcEnterInteractiveMode(VOID)
67 bc_disable();
68 local_irq_disable();
69 ARC_CALL0(imode);
71 unreachable();
74 LONG
75 ArcSaveConfiguration(VOID)
77 return ARC_CALL0(cfg_save);
80 struct linux_sysid *
81 ArcGetSystemId(VOID)
83 return (struct linux_sysid *) ARC_CALL0(get_sysid);
86 VOID __init
87 ArcFlushAllCaches(VOID)
89 ARC_CALL0(cache_flush);
92 DISPLAY_STATUS * __init ArcGetDisplayStatus(ULONG FileID)
94 return (DISPLAY_STATUS *) ARC_CALL1(GetDisplayStatus, FileID);