157091Sakito /*
257091Sakito  * Copyright (c) 1992 OMRON Corporation.
3*63199Sbostic  * Copyright (c) 1992, 1993
4*63199Sbostic  *	The Regents of the University of California.  All rights reserved.
557091Sakito  *
657091Sakito  * This code is derived from software contributed to Berkeley by
757091Sakito  * OMRON Corporation.
857091Sakito  *
957091Sakito  * %sccs.include.redist.c%
1057091Sakito  *
11*63199Sbostic  *	@(#)omron_disklabel.h	8.1 (Berkeley) 06/10/93
1257091Sakito  */
1357091Sakito 
1457091Sakito /* omron_dislabel.h from UniOS-B */
1557091Sakito /*    by A.Fujita, JAN-30-1992   */
1657091Sakito 
1757091Sakito 
1857091Sakito #define DKL_MAGIC	0xDABE 			/* Disk label Magic number */
1957091Sakito #define NLPART		8			/* # of logical partition */
2057091Sakito 
2157091Sakito struct scd_dk_label {
2257091Sakito 	char	dkl_asciilabel[128];		/* for compatibility */
2357091Sakito 	char	dkl_pad[512-(128+8*8+11*2+4)];
2457091Sakito 	unsigned short	dkl_badchk;		/* checksum of bad track */
2557091Sakito 	unsigned long	dkl_maxblk;		/* # of total logical block */
2657091Sakito 	unsigned short	dkl_dtype;		/* disk drive type */
2757091Sakito 	unsigned short	dkl_ndisk;		/* # of disk drives */
2857091Sakito 	unsigned short	dkl_ncyl;		/* # of data cylinders */
2957091Sakito 	unsigned short	dkl_acyl;		/* # of alternate cylinders */
3057091Sakito 	unsigned short	dkl_nhead;		/* # of heads in this partition */
3157091Sakito 	unsigned short	dkl_nsect;		/* # of 512 byte sectors per track */
3257091Sakito 	unsigned short	dkl_bhead;		/* identifies proper label locations */
3357091Sakito 	unsigned short	dkl_ppart;		/* physical partition # */
3457091Sakito 	struct dk_map {				/* logical partitions */
3557091Sakito 		daddr_t	dkl_blkno;		/* starting block */
3657091Sakito 		daddr_t dkl_nblk;		/* number of blocks */
3757091Sakito 	} dkl_map[NLPART];
3857091Sakito 	unsigned short	dkl_magic;		/* identifies this label format */
3957091Sakito 	unsigned short	dkl_cksum;		/* xor checksum of sector */
4057091Sakito };
41