18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Miscellaneous ARCS PROM routines. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 1996 David S. Miller (davem@davemloft.net) 98c2ecf20Sopenharmony_ci * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org) 108c2ecf20Sopenharmony_ci * Copyright (C) 1999 Silicon Graphics, Inc. 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci#include <linux/compiler.h> 138c2ecf20Sopenharmony_ci#include <linux/init.h> 148c2ecf20Sopenharmony_ci#include <linux/kernel.h> 158c2ecf20Sopenharmony_ci#include <linux/irqflags.h> 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#include <asm/bcache.h> 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#include <asm/fw/arc/types.h> 208c2ecf20Sopenharmony_ci#include <asm/sgialib.h> 218c2ecf20Sopenharmony_ci#include <asm/bootinfo.h> 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciVOID __noreturn 248c2ecf20Sopenharmony_ciArcEnterInteractiveMode(VOID) 258c2ecf20Sopenharmony_ci{ 268c2ecf20Sopenharmony_ci bc_disable(); 278c2ecf20Sopenharmony_ci local_irq_disable(); 288c2ecf20Sopenharmony_ci ARC_CALL0(imode); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci unreachable(); 318c2ecf20Sopenharmony_ci} 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciDISPLAY_STATUS * __init ArcGetDisplayStatus(ULONG FileID) 348c2ecf20Sopenharmony_ci{ 358c2ecf20Sopenharmony_ci return (DISPLAY_STATUS *) ARC_CALL1(GetDisplayStatus, FileID); 368c2ecf20Sopenharmony_ci} 37