1*1e913dd5Skrw /* $OpenBSD: disklabel.h,v 1.5 2015/09/30 14:57:03 krw Exp $ */ 2908fd733Sjason 3908fd733Sjason /* 4908fd733Sjason * Copyright (c) 1994 Christopher G. Demetriou 5908fd733Sjason * All rights reserved. 6908fd733Sjason * 7908fd733Sjason * Redistribution and use in source and binary forms, with or without 8908fd733Sjason * modification, are permitted provided that the following conditions 9908fd733Sjason * are met: 10908fd733Sjason * 1. Redistributions of source code must retain the above copyright 11908fd733Sjason * notice, this list of conditions and the following disclaimer. 12908fd733Sjason * 2. Redistributions in binary form must reproduce the above copyright 13908fd733Sjason * notice, this list of conditions and the following disclaimer in the 14908fd733Sjason * documentation and/or other materials provided with the distribution. 15908fd733Sjason * 3. All advertising materials mentioning features or use of this software 16908fd733Sjason * must display the following acknowledgement: 17908fd733Sjason * This product includes software developed by Christopher G. Demetriou. 18908fd733Sjason * 4. The name of the author may not be used to endorse or promote products 19908fd733Sjason * derived from this software without specific prior written permission 20908fd733Sjason * 21908fd733Sjason * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22908fd733Sjason * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23908fd733Sjason * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24908fd733Sjason * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25908fd733Sjason * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26908fd733Sjason * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27908fd733Sjason * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28908fd733Sjason * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29908fd733Sjason * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30908fd733Sjason * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31908fd733Sjason */ 32908fd733Sjason 33908fd733Sjason #ifndef _MACHINE_DISKLABEL_H_ 34908fd733Sjason #define _MACHINE_DISKLABEL_H_ 35908fd733Sjason 36908fd733Sjason #define LABELSECTOR 0 /* sector containing label */ 37908fd733Sjason #define LABELOFFSET 128 /* offset of label in sector */ 3854d50441Sjason #define MAXPARTITIONS 16 /* number of partitions */ 39908fd733Sjason 40908fd733Sjason #endif /* _MACHINE_DISKLABEL_H_ */ 41