1*a47e2eb7Sbouyer /* $NetBSD: disklabel.h,v 1.2 2011/08/30 12:39:53 bouyer Exp $ */ 2e047259aSdrochner 3e047259aSdrochner /* 4e047259aSdrochner * Copyright (c) 1994 Christopher G. Demetriou 5e047259aSdrochner * All rights reserved. 6e047259aSdrochner * 7e047259aSdrochner * Redistribution and use in source and binary forms, with or without 8e047259aSdrochner * modification, are permitted provided that the following conditions 9e047259aSdrochner * are met: 10e047259aSdrochner * 1. Redistributions of source code must retain the above copyright 11e047259aSdrochner * notice, this list of conditions and the following disclaimer. 12e047259aSdrochner * 2. Redistributions in binary form must reproduce the above copyright 13e047259aSdrochner * notice, this list of conditions and the following disclaimer in the 14e047259aSdrochner * documentation and/or other materials provided with the distribution. 15e047259aSdrochner * 3. All advertising materials mentioning features or use of this software 16e047259aSdrochner * must display the following acknowledgement: 17e047259aSdrochner * This product includes software developed by Christopher G. Demetriou. 18e047259aSdrochner * 4. The name of the author may not be used to endorse or promote products 19e047259aSdrochner * derived from this software without specific prior written permission 20e047259aSdrochner * 21e047259aSdrochner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22e047259aSdrochner * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23e047259aSdrochner * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24e047259aSdrochner * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25e047259aSdrochner * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26e047259aSdrochner * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27e047259aSdrochner * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28e047259aSdrochner * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29e047259aSdrochner * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30e047259aSdrochner * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31e047259aSdrochner */ 32e047259aSdrochner 33e047259aSdrochner #ifndef _MACHINE_DISKLABEL_H_ 34e047259aSdrochner #define _MACHINE_DISKLABEL_H_ 35e047259aSdrochner 36*a47e2eb7Sbouyer #define LABELUSESMBR 0 /* no MBR partitionning */ 37e047259aSdrochner #define LABELSECTOR (1024 / DEV_BSIZE) /* sector containing label */ 38e047259aSdrochner #define LABELOFFSET 0 /* offset of label in sector */ 39e047259aSdrochner #define MAXPARTITIONS 8 /* number of partitions */ 40e047259aSdrochner #define RAW_PART 2 /* raw partition: xx?c */ 41e047259aSdrochner 42e047259aSdrochner /* Just a dummy */ 43e047259aSdrochner struct cpu_disklabel { 44e047259aSdrochner int cd_dummy; /* must have one element. */ 45e047259aSdrochner }; 46e047259aSdrochner 47e047259aSdrochner #endif /* _MACHINE_DISKLABEL_H_ */ 48