11.5Sbouyer/* $NetBSD: disklabel.h,v 1.5 2011/08/30 12:39:52 bouyer Exp $ */ 21.1Sthorpej 31.1Sthorpej/* 41.1Sthorpej * Copyright (c) 1994 Christopher G. Demetriou 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * Redistribution and use in source and binary forms, with or without 81.1Sthorpej * modification, are permitted provided that the following conditions 91.1Sthorpej * are met: 101.1Sthorpej * 1. Redistributions of source code must retain the above copyright 111.1Sthorpej * notice, this list of conditions and the following disclaimer. 121.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 131.1Sthorpej * notice, this list of conditions and the following disclaimer in the 141.1Sthorpej * documentation and/or other materials provided with the distribution. 151.1Sthorpej * 3. All advertising materials mentioning features or use of this software 161.1Sthorpej * must display the following acknowledgement: 171.1Sthorpej * This product includes software developed by Christopher G. Demetriou. 181.1Sthorpej * 4. The name of the author may not be used to endorse or promote products 191.1Sthorpej * derived from this software without specific prior written permission 201.1Sthorpej * 211.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.1Sthorpej * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.1Sthorpej * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.1Sthorpej * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.1Sthorpej * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.1Sthorpej * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.1Sthorpej * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.1Sthorpej * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.1Sthorpej * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.1Sthorpej * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.1Sthorpej */ 321.1Sthorpej 331.1Sthorpej#ifndef _ALGOR_DISKLABEL_H_ 341.1Sthorpej#define _ALGOR_DISKLABEL_H_ 351.1Sthorpej 361.5Sbouyer#define LABELUSESMBR 0 /* no MBR partitionning */ 371.1Sthorpej#define LABELSECTOR 0 /* sector containing label */ 381.1Sthorpej#define LABELOFFSET 64 /* offset of label in sector */ 391.1Sthorpej#define MAXPARTITIONS 8 /* number of partitions */ 401.1Sthorpej#define RAW_PART 2 /* raw partition: xx?c */ 411.1Sthorpej 421.2Sdyoung#if HAVE_NBTOOL_CONFIG_H 431.2Sdyoung#include <nbinclude/sys/dkbad.h> 441.2Sdyoung#else 451.1Sthorpej#include <sys/dkbad.h> 461.2Sdyoung#endif /* HAVE_NBTOOL_CONFIG_H */ 471.1Sthorpej 481.1Sthorpej/* Just a dummy */ 491.1Sthorpejstruct cpu_disklabel { 501.4Spooka#define __HAVE_DISKLABEL_DKBAD 511.1Sthorpej struct dkbad bad; /* must have one element. */ 521.1Sthorpej}; 531.1Sthorpej 541.1Sthorpej#endif /* !_ALGOR_DISKLABEL_H_ */ 55