patch-2.1.44 linux/arch/mips/sgi/prom/env.c

Next file: linux/arch/mips/sgi/prom/file.c
Previous file: linux/arch/mips/sgi/prom/console.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/arch/mips/sgi/prom/env.c linux/arch/mips/sgi/prom/env.c
@@ -0,0 +1,20 @@
+/* $Id: env.c,v 1.1 1997/06/06 09:36:59 ralf Exp $
+ * env.c: ARCS environment variable routines.
+ *
+ * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
+ */
+
+#include <linux/kernel.h>
+#include <linux/string.h>
+
+#include <asm/sgialib.h>
+
+char *prom_getenv(char *name)
+{
+	return romvec->get_evar(name);
+}
+
+long prom_setenv(char *name, char *value)
+{
+	return romvec->set_evar(name, value);
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov