summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/libbug/m88k/getbrdid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme68k/stand/libbug/m88k/getbrdid.c')
-rw-r--r--sys/arch/mvme68k/stand/libbug/m88k/getbrdid.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/arch/mvme68k/stand/libbug/m88k/getbrdid.c b/sys/arch/mvme68k/stand/libbug/m88k/getbrdid.c
new file mode 100644
index 00000000000..eeda9468ab7
--- /dev/null
+++ b/sys/arch/mvme68k/stand/libbug/m88k/getbrdid.c
@@ -0,0 +1,17 @@
+/*
+ * bug routines -- assumes that the necessary sections of memory
+ * are preserved.
+ */
+#include <sys/types.h>
+#include <machine/prom.h>
+
+/* BUG - query board routines */
+struct mvmeprom_brdid *
+mvmeprom_brdid()
+{
+ struct mvmeprom_brdid *id;
+
+ MVMEPROM_CALL(MVMEPROM_GETBRDID);
+ asm volatile ("or %0,r0,r2": "=r" (id):);
+ return (id);
+}