diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-09-12 04:33:30 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-09-12 04:33:30 +0000 |
commit | cb292d5c97141ae4db0cd3252a3a9a92c14553c1 (patch) | |
tree | 5b596fd6c5bbe7dc06eec30282eab54385371ca1 /sys/arch/sparc/include | |
parent | 58b1e298795c3d8f1b9870db31acf8f9dae2c909 (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')
-rw-r--r-- | sys/arch/sparc/include/disklabel.h | 3 | ||||
-rw-r--r-- | sys/arch/sparc/include/sun_disklabel.h | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/disklabel.h b/sys/arch/sparc/include/disklabel.h index 3b4601fb0f2..9c9b28b1e1a 100644 --- a/sys/arch/sparc/include/disklabel.h +++ b/sys/arch/sparc/include/disklabel.h @@ -1,3 +1,4 @@ +/* $OpenBSD: disklabel.h,v 1.2 1996/09/12 04:33:27 downsj Exp $ */ /* $NetBSD: disklabel.h,v 1.4 1995/09/01 17:20:31 pk Exp $ */ /* @@ -35,7 +36,7 @@ #define LABELSECTOR 0 /* sector containing label */ #define LABELOFFSET 64 /* offset of label in sector */ -#define MAXPARTITIONS 8 /* number of partitions */ +#define MAXPARTITIONS 16 /* number of partitions */ #define RAW_PART 2 /* raw partition: xx?c */ struct cpu_disklabel { 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 */ |