patch-2.4.20 linux-2.4.20/include/asm-mips64/sgialib.h
Next file: linux-2.4.20/include/asm-mips64/sgiarcs.h
Previous file: linux-2.4.20/include/asm-mips64/sgi/sgint23.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-mips64/sgialib.h
- Orig date:
Sun Sep 9 10:43:02 2001
diff -urN linux-2.4.19/include/asm-mips64/sgialib.h linux-2.4.20/include/asm-mips64/sgialib.h
@@ -6,7 +6,7 @@
* SGI ARCS firmware interface library for the Linux kernel.
*
* Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
- * Copyright (C) 2001 Ralf Baechle (ralf@gnu.org)
+ * Copyright (C) 2001, 2002 Ralf Baechle (ralf@gnu.org)
*/
#ifndef _ASM_SGIALIB_H
#define _ASM_SGIALIB_H
@@ -24,12 +24,11 @@
#define prom_argc(index) ((char *) (long) _prom_argc[(index)])
extern int prom_flags;
-#define PROM_FLAG_ARCS 1
+#define PROM_FLAG_ARCS 1
+#define PROM_FLAG_USE_AS_CONSOLE 2
-/* Init the PROM library and it's internal data structures. Called
- * at boot time from head.S before start_kernel is invoked.
- */
-extern int prom_init(int argc, char **argv, char **envp);
+/* Init the PROM library and it's internal data structures. */
+extern void prom_init(int argc, char **argv, char **envp, int *prom_vec);
/* Simple char-by-char console I/O. */
extern void prom_putchar(char c);
@@ -41,9 +40,9 @@
/* Memory descriptor management. */
#define PROM_MAX_PMEMBLOCKS 32
struct prom_pmemblock {
- LONG base; /* Within KSEG0 or XKPHYS. */
+ LONG base; /* Within KSEG0 or XKPHYS. */
ULONG size; /* In bytes. */
- ULONG type; /* free or prom memory */
+ ULONG type; /* free or prom memory */
};
/* Get next memory descriptor after CURR, returns first descriptor
@@ -58,9 +57,6 @@
extern void prom_meminit(void);
extern void prom_fixup_mem_map(unsigned long start_mem, unsigned long end_mem);
-/* Returns pointer to PROM physical memory block array. */
-extern struct prom_pmemblock *prom_getpblock_array(void);
-
/* PROM device tree library routines. */
#define PROM_NULL_COMPONENT ((pcomponent *) 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)