1*a47e2eb7Sbouyer /* $NetBSD: disklabel.h,v 1.10 2011/08/30 12:39:58 bouyer Exp $ */ 2abe9dea1Ssoren 3abe9dea1Ssoren /* 4abe9dea1Ssoren * Copyright (c) 2000 Soren S. Jorvang 5abe9dea1Ssoren * All rights reserved. 6abe9dea1Ssoren * 7abe9dea1Ssoren * Redistribution and use in source and binary forms, with or without 8abe9dea1Ssoren * modification, are permitted provided that the following conditions 9abe9dea1Ssoren * are met: 10abe9dea1Ssoren * 1. Redistributions of source code must retain the above copyright 11abe9dea1Ssoren * notice, this list of conditions and the following disclaimer. 12abe9dea1Ssoren * 2. Redistributions in binary form must reproduce the above copyright 13abe9dea1Ssoren * notice, this list of conditions and the following disclaimer in the 14abe9dea1Ssoren * documentation and/or other materials provided with the distribution. 15abe9dea1Ssoren * 3. All advertising materials mentioning features or use of this software 16abe9dea1Ssoren * must display the following acknowledgement: 17abe9dea1Ssoren * This product includes software developed for the 1807147999Skeihan * NetBSD Project. See http://www.NetBSD.org/ for 19abe9dea1Ssoren * information about NetBSD. 20abe9dea1Ssoren * 4. The name of the author may not be used to endorse or promote products 21abe9dea1Ssoren * derived from this software without specific prior written permission. 22abe9dea1Ssoren * 23abe9dea1Ssoren * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 24abe9dea1Ssoren * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 25abe9dea1Ssoren * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26abe9dea1Ssoren * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 27abe9dea1Ssoren * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 28abe9dea1Ssoren * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29abe9dea1Ssoren * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30abe9dea1Ssoren * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31abe9dea1Ssoren * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32abe9dea1Ssoren * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33abe9dea1Ssoren */ 34abe9dea1Ssoren 35abe9dea1Ssoren #ifndef _MACHINE_DISKLABEL_H_ 36abe9dea1Ssoren #define _MACHINE_DISKLABEL_H_ 37abe9dea1Ssoren 38*a47e2eb7Sbouyer #define LABELUSESMBR 0 /* no MBR partitionning */ 397f5269c5Swdk #define LABELSECTOR 1 40abe9dea1Ssoren #define LABELOFFSET 0 41abe9dea1Ssoren 4203bd9dc7Slukem #define MAXPARTITIONS 16 4303bd9dc7Slukem #define RAW_PART 2 4403bd9dc7Slukem 45abe9dea1Ssoren struct cpu_disklabel { 46abe9dea1Ssoren int cd_dummy; 47abe9dea1Ssoren }; 48abe9dea1Ssoren 49ceb4d241Sjmc /* Pull in partition definitions. */ 50a37289dbSdyoung #if HAVE_NBTOOL_CONFIG_H 51a37289dbSdyoung #include <nbinclude/sys/bootblock.h> 52a37289dbSdyoung #else 53ceb4d241Sjmc #include <sys/bootblock.h> 54a37289dbSdyoung #endif /* HAVE_NBTOOL_CONFIG_H */ 55abe9dea1Ssoren 56abe9dea1Ssoren #endif /* _MACHINE_DISKLABEL_H_ */ 57