summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/sun_disklabel.h
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-09-12 04:33:30 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-09-12 04:33:30 +0000
commitcb292d5c97141ae4db0cd3252a3a9a92c14553c1 (patch)
tree5b596fd6c5bbe7dc06eec30282eab54385371ca1 /sys/arch/sparc/include/sun_disklabel.h
parent58b1e298795c3d8f1b9870db31acf8f9dae2c909 (diff)
Add 16 partition support to the SPARC. From NetBSD PR#2675, by der Mouse,
<mouse@Collatz.McRCIM.McGill.EDU>.
Diffstat (limited to 'sys/arch/sparc/include/sun_disklabel.h')
-rw-r--r--sys/arch/sparc/include/sun_disklabel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/arch/sparc/include/sun_disklabel.h b/sys/arch/sparc/include/sun_disklabel.h
index 8f01b84115d..7556bd4c7cd 100644
--- a/sys/arch/sparc/include/sun_disklabel.h
+++ b/sys/arch/sparc/include/sun_disklabel.h
@@ -1,3 +1,4 @@
+/* $OpenBSD: sun_disklabel.h,v 1.5 1996/09/12 04:33:28 downsj Exp $ */
/* $NetBSD: sun_disklabel.h,v 1.6 1996/01/07 22:03:09 thorpej Exp $ */
/*
@@ -88,7 +89,17 @@ struct sun_dkpart {
struct sun_disklabel { /* total size = 512 bytes */
char sl_text[128];
+#if MAXPARTITIONS > 8
+#define SUNXPART (MAXPARTITIONS-8)
+ u_long sl_xpsum; /* additive cksum, [sl_xpmag,sl_xxx1) */
+ u_long sl_xpmag; /* "extended" magic number */
+#define SL_XPMAG (0x199d1fe2+SUNXPART)
+ struct sun_dkpart sl_xpart[SUNXPART]; /* "extended" partitions, i through p */
+ char sl_xxx1[292-8-(8*SUNXPART)]; /* [292] including sl_x* */
+#else
+#define SUNXPART 0
char sl_xxx1[292];
+#endif
u_short sl_rpm; /* rotational speed */
u_short sl_pcylinders; /* number of physical cyls */
u_short sl_sparespercyl; /* spare sectors per cylinder */