1 /*
2  * Copyright (c) 1992 OMRON Corporation.
3  * Copyright (c) 1992, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * OMRON Corporation.
8  *
9  * %sccs.include.redist.c%
10  *
11  *	@(#)omron_disklabel.h	8.1 (Berkeley) 06/10/93
12  */
13 
14 /* omron_dislabel.h from UniOS-B */
15 /*    by A.Fujita, JAN-30-1992   */
16 
17 
18 #define DKL_MAGIC	0xDABE 			/* Disk label Magic number */
19 #define NLPART		8			/* # of logical partition */
20 
21 struct scd_dk_label {
22 	char	dkl_asciilabel[128];		/* for compatibility */
23 	char	dkl_pad[512-(128+8*8+11*2+4)];
24 	unsigned short	dkl_badchk;		/* checksum of bad track */
25 	unsigned long	dkl_maxblk;		/* # of total logical block */
26 	unsigned short	dkl_dtype;		/* disk drive type */
27 	unsigned short	dkl_ndisk;		/* # of disk drives */
28 	unsigned short	dkl_ncyl;		/* # of data cylinders */
29 	unsigned short	dkl_acyl;		/* # of alternate cylinders */
30 	unsigned short	dkl_nhead;		/* # of heads in this partition */
31 	unsigned short	dkl_nsect;		/* # of 512 byte sectors per track */
32 	unsigned short	dkl_bhead;		/* identifies proper label locations */
33 	unsigned short	dkl_ppart;		/* physical partition # */
34 	struct dk_map {				/* logical partitions */
35 		daddr_t	dkl_blkno;		/* starting block */
36 		daddr_t dkl_nblk;		/* number of blocks */
37 	} dkl_map[NLPART];
38 	unsigned short	dkl_magic;		/* identifies this label format */
39 	unsigned short	dkl_cksum;		/* xor checksum of sector */
40 };
41