xref: /OK3568_Linux_fs/kernel/arch/mips/fw/arc/misc.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
3*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
4*4882a593Smuzhiyun  * for more details.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Miscellaneous ARCS PROM routines.
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
9*4882a593Smuzhiyun  * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
10*4882a593Smuzhiyun  * Copyright (C) 1999 Silicon Graphics, Inc.
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun #include <linux/compiler.h>
13*4882a593Smuzhiyun #include <linux/init.h>
14*4882a593Smuzhiyun #include <linux/kernel.h>
15*4882a593Smuzhiyun #include <linux/irqflags.h>
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #include <asm/bcache.h>
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #include <asm/fw/arc/types.h>
20*4882a593Smuzhiyun #include <asm/sgialib.h>
21*4882a593Smuzhiyun #include <asm/bootinfo.h>
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun VOID __noreturn
ArcEnterInteractiveMode(VOID)24*4882a593Smuzhiyun ArcEnterInteractiveMode(VOID)
25*4882a593Smuzhiyun {
26*4882a593Smuzhiyun 	bc_disable();
27*4882a593Smuzhiyun 	local_irq_disable();
28*4882a593Smuzhiyun 	ARC_CALL0(imode);
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun 	unreachable();
31*4882a593Smuzhiyun }
32*4882a593Smuzhiyun 
ArcGetDisplayStatus(ULONG FileID)33*4882a593Smuzhiyun DISPLAY_STATUS * __init ArcGetDisplayStatus(ULONG FileID)
34*4882a593Smuzhiyun {
35*4882a593Smuzhiyun 	return (DISPLAY_STATUS *) ARC_CALL1(GetDisplayStatus, FileID);
36*4882a593Smuzhiyun }
37