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 * ARC firmware interface. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 1994, 1995, 1996, 1999 Ralf Baechle 98c2ecf20Sopenharmony_ci * Copyright (C) 1999 Silicon Graphics, Inc. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include <asm/fw/arc/types.h> 138c2ecf20Sopenharmony_ci#include <asm/sgialib.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciLONG 168c2ecf20Sopenharmony_ciArcRead(ULONG FileID, VOID *Buffer, ULONG N, ULONG *Count) 178c2ecf20Sopenharmony_ci{ 188c2ecf20Sopenharmony_ci return ARC_CALL4(read, FileID, Buffer, N, Count); 198c2ecf20Sopenharmony_ci} 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciLONG 228c2ecf20Sopenharmony_ciArcWrite(ULONG FileID, PVOID Buffer, ULONG N, PULONG Count) 238c2ecf20Sopenharmony_ci{ 248c2ecf20Sopenharmony_ci return ARC_CALL4(write, FileID, Buffer, N, Count); 258c2ecf20Sopenharmony_ci} 26