From cb292d5c97141ae4db0cd3252a3a9a92c14553c1 Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Thu, 12 Sep 1996 04:33:30 +0000 Subject: Add 16 partition support to the SPARC. From NetBSD PR#2675, by der Mouse, . --- sys/arch/sparc/include/sun_disklabel.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys/arch/sparc/include/sun_disklabel.h') 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 */ -- cgit v1.2.3