0001
0002
0003
0004
0005
0006
0007
0008
0009
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
0026 extern char prom_getchar(void);
0027
0028
0029
0030
0031 extern struct linux_mdesc *prom_getmdesc(struct linux_mdesc *curr);
0032 #define PROM_NULL_MDESC ((struct linux_mdesc *) 0)
0033
0034
0035
0036
0037 extern void prom_meminit(void);
0038
0039
0040 #define PROM_NULL_COMPONENT ((pcomponent *) 0)
0041
0042
0043
0044
0045 extern void prom_identify_arch(void);
0046
0047
0048 extern PCHAR ArcGetEnvironmentVariable(PCHAR name);
0049
0050
0051 extern void prom_init_cmdline(int argc, LONG *argv);
0052
0053
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
0058 extern VOID ArcEnterInteractiveMode(VOID) __noreturn;
0059 extern DISPLAY_STATUS *ArcGetDisplayStatus(ULONG FileID);
0060
0061 #endif