Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include define 'struct boot_block' which is t...
details: https://anonhg.NetBSD.org/src/rev/9a1f87630ce6
branches: trunk
changeset: 471480:9a1f87630ce6
user: cgd <cgd%NetBSD.org@localhost>
date: Fri Apr 02 07:32:33 1999 +0000
description:
define 'struct boot_block' which is the alpha (SRM) boot block
diffstat:
sys/arch/alpha/include/disklabel.h | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r 6240b3acd683 -r 9a1f87630ce6 sys/arch/alpha/include/disklabel.h
--- a/sys/arch/alpha/include/disklabel.h Fri Apr 02 06:36:30 1999 +0000
+++ b/sys/arch/alpha/include/disklabel.h Fri Apr 02 07:32:33 1999 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: disklabel.h,v 1.3 1997/04/06 08:47:22 cgd Exp $ */
+/* $NetBSD: disklabel.h,v 1.4 1999/04/02 07:32:33 cgd Exp $ */
/*
- * Copyright (c) 1994 Christopher G. Demetriou
+ * Copyright (c) 1994, 1999 Christopher G. Demetriou
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,8 @@
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
- * This product includes software developed by Christopher G. Demetriou.
+ * This product includes software developed by Christopher G. Demetriou
+ * for the NetBSD Project.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
@@ -45,4 +46,21 @@
struct dkbad bad; /* bad-sector information */
};
+/*
+ * Alpha (disk, but also tape) Boot Block. See Section (III) 3.6.1 of the
+ * Alpha Architecture Reference Manual.
+ */
+
+struct boot_block {
+ u_int64_t bb_pad[60]; /* disklabel lives in here */
+ u_int64_t bb_secsize; /* secondary size (blocks) */
+ u_int64_t bb_secstart; /* secondary start (blocks) */
+ u_int64_t bb_flags; /* unknown; always zero */
+ u_int64_t bb_cksum; /* checksum of the the boot block,
+ * taken as u_int64_t's
+ */
+};
+
+#define BOOT_BLOCK_BLOCKSIZE 512 /* block size for sec. size/start */
+
#endif /* _MACHINE_DISKLABEL_H_ */
Home |
Main Index |
Thread Index |
Old Index