Annotation of sys/arch/mac68k/mac68k/dpme.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: dpme.h,v 1.6 1999/04/19 04:48:02 downsj Exp $ */
! 2: /* $NetBSD: dpme.h,v 1.8 1997/11/30 04:46:59 briggs Exp $ */
! 3:
! 4: /*
! 5: * Copyright (C) 1993 Allen K. Briggs, Chris P. Caputo,
! 6: * Michael L. Finch, Bradley A. Grantham, and
! 7: * Lawrence A. Kesteloot
! 8: * All rights reserved.
! 9: *
! 10: * Redistribution and use in source and binary forms, with or without
! 11: * modification, are permitted provided that the following conditions
! 12: * are met:
! 13: * 1. Redistributions of source code must retain the above copyright
! 14: * notice, this list of conditions and the following disclaimer.
! 15: * 2. Redistributions in binary form must reproduce the above copyright
! 16: * notice, this list of conditions and the following disclaimer in the
! 17: * documentation and/or other materials provided with the distribution.
! 18: * 3. All advertising materials mentioning features or use of this software
! 19: * must display the following acknowledgement:
! 20: * This product includes software developed by the Alice Group.
! 21: * 4. The names of the Alice Group or any of its members may not be used
! 22: * to endorse or promote products derived from this software without
! 23: * specific prior written permission.
! 24: *
! 25: * THIS SOFTWARE IS PROVIDED BY THE ALICE GROUP ``AS IS'' AND ANY EXPRESS OR
! 26: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! 27: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
! 28: * IN NO EVENT SHALL THE ALICE GROUP BE LIABLE FOR ANY DIRECT, INDIRECT,
! 29: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
! 30: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
! 31: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
! 32: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! 33: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
! 34: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 35: *
! 36: */
! 37:
! 38: #include <sys/types.h>
! 39:
! 40: /*
! 41: * Partition map structure from Inside Macintosh V-579.
! 42: */
! 43: struct partmapentry {
! 44: u_int16_t pmSig;
! 45: u_int16_t pmSigPad;
! 46: u_int32_t pmMapBlkCnt;
! 47: u_int32_t pmPyPartStart;
! 48: u_int32_t pmPartBlkCnt;
! 49: u_int8_t pmPartName[32];
! 50: u_int8_t pmPartType[32];
! 51: u_int32_t pmLgDataStart;
! 52: u_int32_t pmDataCnt;
! 53: u_int32_t pmPartStatus;
! 54: u_int32_t pmLgBootStart;
! 55: u_int32_t pmBootSize;
! 56: u_int32_t pmBootLoad;
! 57: u_int32_t pmBootLoad2;
! 58: u_int32_t pmBootEntry;
! 59: u_int32_t pmBootEntry2;
! 60: u_int32_t pmBootCksum;
! 61: int8_t pmProcessor[16];
! 62: u_int8_t pmBootArgs[128];
! 63: u_int8_t blockpadding[248];
! 64: };
! 65:
! 66: /*
! 67: * Disk Partition Map Entry Magic number. Valid entries have this
! 68: * in the pmSig field.
! 69: */
! 70: #define DPME_MAGIC 0x504d
! 71:
! 72: /*
! 73: * "pmBootArgs" for APPLE_UNIX_SVR2 partition.
! 74: * OpenBSD/Mac68k only uses Magic, Cluster, Type, and Flags.
! 75: */
! 76: struct blockzeroblock {
! 77: u_int32_t bzbMagic;
! 78: u_int8_t bzbCluster;
! 79: u_int8_t bzbType;
! 80: u_int16_t bzbBadBlockInode;
! 81: u_int16_t bzbFlags;
! 82: u_int16_t bzbReserved;
! 83: u_int32_t bzbCreationTime;
! 84: u_int32_t bzbMountTime;
! 85: u_int32_t bzbUMountTime;
! 86: };
! 87:
! 88: #define BZB_MAGIC 0xABADBABE
! 89: #define BZB_TYPEFS 1
! 90: #define BZB_TYPESWAP 3
! 91: #define BZB_ROOTFS 0x8000
! 92: #define BZB_USRFS 0x4000
! 93: #define BZB_EXFS4 0x4
! 94: #define BZB_EXFS5 0x5
! 95: #define BZB_EXFS6 0x6
! 96:
! 97: /* MF */
! 98: #define PART_UNIX_TYPE "APPLE_UNIX_SVR2"
! 99: #define PART_MAC_TYPE "APPLE_HFS"
! 100: #define PART_SCRATCH "APPLE_SCRATCH"
! 101: #define PART_DRIVER_TYPE "APPLE_DRIVER"
! 102: #define PART_DRIVER43_TYPE "APPLE_DRIVER43"
! 103: #define PART_DRIVERATA_TYPE "APPLE_DRIVER_ATA"
! 104: #define PART_FWB_COMPONENT_TYPE "FWB DRIVER COMPONENTS"
! 105: #define PART_PARTMAP_TYPE "APPLE_PARTITION_MAP"
CVSweb