Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * SGI ARCS firmware interface library for the Linux kernel.
0007  *
0008  * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
0009  * Copyright (C) 2001, 2002 Ralf Baechle (ralf@gnu.org)
0010  */
0011 #ifndef _ASM_SGIALIB_H
0012 #define _ASM_SGIALIB_H
0013 
0014 #include <linux/compiler.h>
0015 #include <asm/sgiarcs.h>
0016 
0017 extern struct linux_romvec *romvec;
0018 
0019 extern int prom_flags;
0020 
0021 #define PROM_FLAG_ARCS          1
0022 #define PROM_FLAG_USE_AS_CONSOLE    2
0023 #define PROM_FLAG_DONT_FREE_TEMP    4
0024 
0025 /* Simple char-by-char console I/O. */
0026 extern char prom_getchar(void);
0027 
0028 /* Get next memory descriptor after CURR, returns first descriptor
0029  * in chain is CURR is NULL.
0030  */
0031 extern struct linux_mdesc *prom_getmdesc(struct linux_mdesc *curr);
0032 #define PROM_NULL_MDESC   ((struct linux_mdesc *) 0)
0033 
0034 /* Called by prom_init to setup the physical memory pmemblock
0035  * array.
0036  */
0037 extern void prom_meminit(void);
0038 
0039 /* PROM device tree library routines. */
0040 #define PROM_NULL_COMPONENT ((pcomponent *) 0)
0041 
0042 /* This is called at prom_init time to identify the
0043  * ARC architecture we are running on
0044  */
0045 extern void prom_identify_arch(void);
0046 
0047 /* Environment variable routines. */
0048 extern PCHAR ArcGetEnvironmentVariable(PCHAR name);
0049 
0050 /* ARCS command line parsing. */
0051 extern void prom_init_cmdline(int argc, LONG *argv);
0052 
0053 /* File operations. */
0054 extern LONG ArcRead(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
0055 extern LONG ArcWrite(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
0056 
0057 /* Misc. routines. */
0058 extern VOID ArcEnterInteractiveMode(VOID) __noreturn;
0059 extern DISPLAY_STATUS *ArcGetDisplayStatus(ULONG FileID);
0060 
0061 #endif /* _ASM_SGIALIB_H */