summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/stand/libbug/netrd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvmeppc/stand/libbug/netrd.c')
-rw-r--r--sys/arch/mvmeppc/stand/libbug/netrd.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/arch/mvmeppc/stand/libbug/netrd.c b/sys/arch/mvmeppc/stand/libbug/netrd.c
new file mode 100644
index 00000000000..b4fa0376dec
--- /dev/null
+++ b/sys/arch/mvmeppc/stand/libbug/netrd.c
@@ -0,0 +1,16 @@
+/*
+ * bug routines -- assumes that the necessary sections of memory
+ * are preserved.
+ */
+#include <sys/types.h>
+#include <machine/prom.h>
+
+/* returns 0: success, nonzero: error */
+int
+mvmeprom_netrd(arg)
+ struct mvmeprom_netio *arg;
+{
+ asm volatile ("mr 3, %0": : "r" (arg));
+ MVMEPROM_CALL(MVMEPROM_NETRD);
+ return (arg->status);
+}