disklabel.h revision 1.1
11.1Stsubai/* $NetBSD: disklabel.h,v 1.1 1998/02/18 13:48:17 tsubai Exp $ */ 21.1Stsubai 31.1Stsubai/* 41.1Stsubai * Copyright (c) 1994 Christopher G. Demetriou 51.1Stsubai * All rights reserved. 61.1Stsubai * 71.1Stsubai * Redistribution and use in source and binary forms, with or without 81.1Stsubai * modification, are permitted provided that the following conditions 91.1Stsubai * are met: 101.1Stsubai * 1. Redistributions of source code must retain the above copyright 111.1Stsubai * notice, this list of conditions and the following disclaimer. 121.1Stsubai * 2. Redistributions in binary form must reproduce the above copyright 131.1Stsubai * notice, this list of conditions and the following disclaimer in the 141.1Stsubai * documentation and/or other materials provided with the distribution. 151.1Stsubai * 3. All advertising materials mentioning features or use of this software 161.1Stsubai * must display the following acknowledgement: 171.1Stsubai * This product includes software developed by Christopher G. Demetriou. 181.1Stsubai * 4. The name of the author may not be used to endorse or promote products 191.1Stsubai * derived from this software without specific prior written permission 201.1Stsubai * 211.1Stsubai * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.1Stsubai * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.1Stsubai * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.1Stsubai * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.1Stsubai * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.1Stsubai * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.1Stsubai * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.1Stsubai * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.1Stsubai * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.1Stsubai * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.1Stsubai */ 321.1Stsubai 331.1Stsubai#ifndef _MACHINE_DISKLABEL_H_ 341.1Stsubai#define _MACHINE_DISKLABEL_H_ 351.1Stsubai 361.1Stsubai#define LABELSECTOR 0 /* sector containing label */ 371.1Stsubai#define LABELOFFSET 64 /* offset of label in sector */ 381.1Stsubai#define MAXPARTITIONS 8 /* number of partitions */ 391.1Stsubai#define RAW_PART 2 /* raw partition: xx?c */ 401.1Stsubai#define NUMBOOT 2 /* bootxx + xxboot... */ 411.1Stsubai 421.1Stsubai/* Just a dummy */ 431.1Stsubaistruct cpu_disklabel { 441.1Stsubai int cd_dummy; /* must have one element. */ 451.1Stsubai}; 461.1Stsubai 471.1Stsubai#endif /* _MACHINE_DISKLABEL_H_ */ 48