| .. | .. |
|---|
| 15 | 15 | #include <asm/sgiarcs.h> |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | extern struct linux_romvec *romvec; |
|---|
| 18 | | -extern int prom_argc; |
|---|
| 19 | | - |
|---|
| 20 | | -extern LONG *_prom_argv, *_prom_envp; |
|---|
| 21 | | - |
|---|
| 22 | | -/* A 32-bit ARC PROM pass arguments and environment as 32-bit pointer. |
|---|
| 23 | | - These macros take care of sign extension. */ |
|---|
| 24 | | -#define prom_argv(index) ((char *) (long) _prom_argv[(index)]) |
|---|
| 25 | | -#define prom_argc(index) ((char *) (long) _prom_argc[(index)]) |
|---|
| 26 | 18 | |
|---|
| 27 | 19 | extern int prom_flags; |
|---|
| 28 | 20 | |
|---|
| .. | .. |
|---|
| 47 | 39 | /* PROM device tree library routines. */ |
|---|
| 48 | 40 | #define PROM_NULL_COMPONENT ((pcomponent *) 0) |
|---|
| 49 | 41 | |
|---|
| 50 | | -/* Get sibling component of THIS. */ |
|---|
| 51 | | -extern pcomponent *ArcGetPeer(pcomponent *this); |
|---|
| 52 | | - |
|---|
| 53 | | -/* Get child component of THIS. */ |
|---|
| 54 | | -extern pcomponent *ArcGetChild(pcomponent *this); |
|---|
| 55 | | - |
|---|
| 56 | 42 | /* This is called at prom_init time to identify the |
|---|
| 57 | 43 | * ARC architecture we are running on |
|---|
| 58 | 44 | */ |
|---|
| .. | .. |
|---|
| 60 | 46 | |
|---|
| 61 | 47 | /* Environment variable routines. */ |
|---|
| 62 | 48 | extern PCHAR ArcGetEnvironmentVariable(PCHAR name); |
|---|
| 63 | | -extern LONG ArcSetEnvironmentVariable(PCHAR name, PCHAR value); |
|---|
| 64 | 49 | |
|---|
| 65 | 50 | /* ARCS command line parsing. */ |
|---|
| 66 | | -extern void prom_init_cmdline(void); |
|---|
| 51 | +extern void prom_init_cmdline(int argc, LONG *argv); |
|---|
| 67 | 52 | |
|---|
| 68 | 53 | /* File operations. */ |
|---|
| 69 | 54 | extern LONG ArcRead(ULONG fd, PVOID buf, ULONG num, PULONG cnt); |
|---|
| 70 | 55 | extern LONG ArcWrite(ULONG fd, PVOID buf, ULONG num, PULONG cnt); |
|---|
| 71 | 56 | |
|---|
| 72 | 57 | /* Misc. routines. */ |
|---|
| 73 | | -extern VOID ArcHalt(VOID) __noreturn; |
|---|
| 74 | | -extern VOID ArcPowerDown(VOID) __noreturn; |
|---|
| 75 | | -extern VOID ArcRestart(VOID) __noreturn; |
|---|
| 76 | | -extern VOID ArcReboot(VOID) __noreturn; |
|---|
| 77 | 58 | extern VOID ArcEnterInteractiveMode(VOID) __noreturn; |
|---|
| 78 | | -extern VOID ArcFlushAllCaches(VOID); |
|---|
| 79 | 59 | extern DISPLAY_STATUS *ArcGetDisplayStatus(ULONG FileID); |
|---|
| 80 | 60 | |
|---|
| 81 | 61 | #endif /* _ASM_SGIALIB_H */ |
|---|