summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/libbug/netcfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme88k/stand/libbug/netcfig.c')
-rw-r--r--sys/arch/mvme88k/stand/libbug/netcfig.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/mvme88k/stand/libbug/netcfig.c b/sys/arch/mvme88k/stand/libbug/netcfig.c
new file mode 100644
index 00000000000..27a8b6e7cf7
--- /dev/null
+++ b/sys/arch/mvme88k/stand/libbug/netcfig.c
@@ -0,0 +1,15 @@
+/* $OpenBSD: netcfig.c,v 1.1 2012/11/25 14:10:47 miod Exp $ */
+/* public domain */
+
+#include <sys/types.h>
+#include <machine/prom.h>
+
+#include "prom.h"
+
+int
+mvmeprom_netcfig(struct mvmeprom_netcfig *cfg)
+{
+ asm volatile ("or r2,r0,%0": : "r" (cfg));
+ MVMEPROM_CALL(MVMEPROM_NETCFIG);
+ return cfg->status;
+}