disklabel.h revision 1.1
11.1Sober/* $NetBSD: disklabel.h,v 1.1 2006/12/16 05:43:59 ober Exp $ */ 21.1Sober 31.1Sober/* 41.1Sober * Copyright (c) 1994 Christopher G. Demetriou 51.1Sober * All rights reserved. 61.1Sober * 71.1Sober * Redistribution and use in source and binary forms, with or without 81.1Sober * modification, are permitted provided that the following conditions 91.1Sober * are met: 101.1Sober * 1. Redistributions of source code must retain the above copyright 111.1Sober * notice, this list of conditions and the following disclaimer. 121.1Sober * 2. Redistributions in binary form must reproduce the above copyright 131.1Sober * notice, this list of conditions and the following disclaimer in the 141.1Sober * documentation and/or other materials provided with the distribution. 151.1Sober * 3. All advertising materials mentioning features or use of this software 161.1Sober * must display the following acknowledgement: 171.1Sober * This product includes software developed by Christopher G. Demetriou. 181.1Sober * 4. The name of the author may not be used to endorse or promote products 191.1Sober * derived from this software without specific prior written permission 201.1Sober * 211.1Sober * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.1Sober * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.1Sober * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.1Sober * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.1Sober * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.1Sober * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.1Sober * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.1Sober * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.1Sober * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.1Sober * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.1Sober */ 321.1Sober 331.1Sober#ifndef _MACHINE_DISKLABEL_H_ 341.1Sober#define _MACHINE_DISKLABEL_H_ 351.1Sober 361.1Sober#define LABELSECTOR 1 /* sector containing label */ 371.1Sober#define LABELOFFSET 0 /* offset of label in sector */ 381.1Sober#define MAXPARTITIONS 16 /* number of partitions */ 391.1Sober#define RAW_PART 3 /* raw partition: XX?d (XXX) */ 401.1Sober 411.1Sober/* Pull in MBR partition definitions. */ 421.1Sober#if HAVE_NBTOOL_CONFIG_H 431.1Sober#include <nbinclude/sys/bootblock.h> 441.1Sober#else 451.1Sober#include <sys/bootblock.h> 461.1Sober#endif /* HAVE_NBTOOL_CONFIG_H */ 471.1Sober 481.1Sober#ifndef __ASSEMBLER__ 491.1Sober#if HAVE_NBTOOL_CONFIG_H 501.1Sober#include <nbinclude/sys/dkbad.h> 511.1Sober#else 521.1Sober#include <sys/dkbad.h> 531.1Sober#endif /* HAVE_NBTOOL_CONFIG_H */ 541.1Sober 551.1Soberstruct cpu_disklabel { 561.1Sober struct mbr_partition dosparts[MBR_PART_COUNT]; 571.1Sober struct dkbad bad; 581.1Sober}; 591.1Sober#endif /* __ASSEMBLER__ */ 601.1Sober 611.1Sober#endif /* _MACHINE_DISKLABEL_H_ */ 62