Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add hp300 LIF definitions
details: https://anonhg.NetBSD.org/src/rev/a7efe8cf324f
branches: trunk
changeset: 555283:a7efe8cf324f
user: dsl <dsl%NetBSD.org@localhost>
date: Thu Nov 13 08:17:12 2003 +0000
description:
Add hp300 LIF definitions
diffstat:
sys/sys/bootblock.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 47 insertions(+), 2 deletions(-)
diffs (70 lines):
diff -r 88ab06ffe7f7 -r a7efe8cf324f sys/sys/bootblock.h
--- a/sys/sys/bootblock.h Thu Nov 13 08:06:25 2003 +0000
+++ b/sys/sys/bootblock.h Thu Nov 13 08:17:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootblock.h,v 1.19 2003/10/27 16:48:08 cl Exp $ */
+/* $NetBSD: bootblock.h,v 1.20 2003/11/13 08:17:12 dsl Exp $ */
/*-
* Copyright (c) 2002,2003 The NetBSD Foundation, Inc.
@@ -191,7 +191,7 @@
#define MBR_BS_EXTINT13 0x02 /* Set by fdisk if LBA needed (deprecated) */
#define MBR_BS_READ_LBA 0x04 /* Force LBA reads - even for low numbers */
#define MBR_BS_EXTLBA 0x08 /* Extended ptn capable (LBA reads) */
-#define MBR_BS_NEWMBR 0x80 /* New code: menu user 1..9 for ptns */
+#define MBR_BS_NEWMBR 0x80 /* New code: menu uses 1..9 for ptns */
#if !defined(__ASSEMBLER__) /* { */
@@ -493,6 +493,51 @@
#define APPLE_BZB_USRFS 0x4000
/* ------------------------------------------
+ * hp300
+ *
+ */
+
+/* volume header for "LIF" format volumes */
+
+struct hp300_lifvol {
+ int16_t vol_id;
+ char vol_label[6];
+ int32_t vol_addr;
+ int16_t vol_oct;
+ int16_t vol_dummy;
+ int32_t vol_dirsize;
+ int16_t vol_version;
+ int16_t vol_zero;
+ int32_t vol_huh1;
+ int32_t vol_huh2;
+ int32_t vol_length;
+};
+
+/* LIF directory entry format */
+
+struct hp300_lifdir {
+ char dir_name[10];
+ int16_t dir_type;
+ int32_t dir_addr;
+ int32_t dir_length;
+ char dir_toc[6];
+ int16_t dir_flag;
+ int32_t dir_exec;
+};
+
+/* load header for boot rom */
+struct hp300_load {
+ int32_t address;
+ int32_t count;
+};
+
+#define HP300_VOL_ID -32768
+#define HP300_VOL_OCT 4096
+#define HP300_DIR_TYPE -5822
+#define HP300_DIR_FLAG 0x8001 /* dont ask me! */
+#define HP300_SECTSIZE 256
+
+/* ------------------------------------------
* x86
*
*/
Home |
Main Index |
Thread Index |
Old Index