summaryrefslogtreecommitdiff
path: root/sys/arch/kbus/include/prom.h
diff options
context:
space:
mode:
authorgingold <gingold@cvs.openbsd.org>1997-10-14 07:25:35 +0000
committergingold <gingold@cvs.openbsd.org>1997-10-14 07:25:35 +0000
commitf6491d400ca651a8a1493d72c6a74c622aa231b1 (patch)
tree39f29255154f230f637c12e9214f12a9e64bd9d4 /sys/arch/kbus/include/prom.h
parent7a9e3739a66bd0fadfdc611c72e879fcc6f9ef01 (diff)
Gingold's port for kbus Series5 machine. Not fully finished and not very stable
Diffstat (limited to 'sys/arch/kbus/include/prom.h')
-rw-r--r--sys/arch/kbus/include/prom.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/arch/kbus/include/prom.h b/sys/arch/kbus/include/prom.h
new file mode 100644
index 00000000000..01a3b2d5e0d
--- /dev/null
+++ b/sys/arch/kbus/include/prom.h
@@ -0,0 +1,28 @@
+#define ROM_VECTORS 0xff000000
+
+#define ROM_VERSION (ROM_VECTORS + 0)
+#define ROM_COMM_AREA (ROM_VECTORS + 8)
+#define ROM_COMMAND (ROM_VECTORS + 16)
+#define ROM_SLAVEHALT (ROM_VECTORS + 24)
+#define ROM_MSGBUFP (ROM_VECTORS + 32)
+#define ROM_DGRAM (ROM_VECTORS + 40)
+#define ROM_EEVERSION (ROM_VECTORS + 48)
+#define ROM_REVISION (ROM_VECTORS + 56)
+
+struct prom_command_area
+{
+ char *command_ptr;
+ int ret_val;
+ int first_free;
+ int memsize;
+ int ramdisk;
+ char *iomap_addr;
+ int (*slave_start) __P((void));
+ int row;
+ int col;
+ int silent;
+};
+
+/* Prom related fucntions. */
+void idprom_etheraddr __P((u_char *ether));
+void verbose_rom_reset __P((void));