forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/include/asm/sgialib.h
....@@ -15,14 +15,6 @@
1515 #include <asm/sgiarcs.h>
1616
1717 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)])
2618
2719 extern int prom_flags;
2820
....@@ -47,12 +39,6 @@
4739 /* PROM device tree library routines. */
4840 #define PROM_NULL_COMPONENT ((pcomponent *) 0)
4941
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
-
5642 /* This is called at prom_init time to identify the
5743 * ARC architecture we are running on
5844 */
....@@ -60,22 +46,16 @@
6046
6147 /* Environment variable routines. */
6248 extern PCHAR ArcGetEnvironmentVariable(PCHAR name);
63
-extern LONG ArcSetEnvironmentVariable(PCHAR name, PCHAR value);
6449
6550 /* ARCS command line parsing. */
66
-extern void prom_init_cmdline(void);
51
+extern void prom_init_cmdline(int argc, LONG *argv);
6752
6853 /* File operations. */
6954 extern LONG ArcRead(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
7055 extern LONG ArcWrite(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
7156
7257 /* 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;
7758 extern VOID ArcEnterInteractiveMode(VOID) __noreturn;
78
-extern VOID ArcFlushAllCaches(VOID);
7959 extern DISPLAY_STATUS *ArcGetDisplayStatus(ULONG FileID);
8060
8161 #endif /* _ASM_SGIALIB_H */