Annotation of sys/arch/mvme88k/include/disklabel.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: disklabel.h,v 1.14 2007/06/20 18:15:45 deraadt Exp $ */
! 2:
! 3: /*
! 4: * Copyright (c) 1996 Nivas Madhur
! 5: * Copyright (c) 1995 Dale Rahn.
! 6: * All rights reserved.
! 7: *
! 8: * Redistribution and use in source and binary forms, with or without
! 9: * modification, are permitted provided that the following conditions
! 10: * are met:
! 11: * 1. Redistributions of source code must retain the above copyright
! 12: * notice, this list of conditions and the following disclaimer.
! 13: * 2. Redistributions in binary form must reproduce the above copyright
! 14: * notice, this list of conditions and the following disclaimer in the
! 15: * documentation and/or other materials provided with the distribution.
! 16: * 3. The name of the author may not be used to endorse or promote products
! 17: * derived from this software without specific prior written permission.
! 18: *
! 19: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
! 20: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! 21: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
! 22: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
! 23: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
! 24: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
! 25: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
! 26: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! 27: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
! 28: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 29: */
! 30:
! 31: #ifndef __MACHINE_DISKLABEL_H__
! 32: #define __MACHINE_DISKLABEL_H__
! 33:
! 34: #define LABELSECTOR 0 /* sector containing label */
! 35: #define LABELOFFSET 0 /* offset of label in sector */
! 36: #define MAXPARTITIONS 16 /* number of partitions */
! 37:
! 38: /*
! 39: * Note: this structure is exactly 512 bytes in size. If you move fields
! 40: * around, make sure the various members are properly aligned and the
! 41: * compiler won't do any additional padding.
! 42: */
! 43: struct mvmedisklabel {
! 44: /* VID */
! 45: u_char vid_id[4];
! 46: u_char vid_0[16];
! 47: u_int vid_oss;
! 48: u_short vid_osl;
! 49: u_char vid_1[4];
! 50: u_short vid_osa_u;
! 51: u_short vid_osa_l;
! 52: u_char version;
! 53: u_char vid_2[1];
! 54: u_short checksum; /* 2 */
! 55: u_short partitions;
! 56: u_char vid_vd[16];
! 57: u_long bbsize;
! 58: u_long magic1; /* 4 */
! 59: u_short type; /* 2 */
! 60: u_short subtype; /* 2 */
! 61: u_char packname[16]; /* 16 */
! 62: u_long flags; /* 4 */
! 63: u_long drivedata[5]; /* 4 */
! 64: u_long spare[5]; /* 4 */
! 65:
! 66: u_long secpercyl; /* 4 */
! 67: u_long secperunit; /* 4 */
! 68: u_long headswitch; /* 4 */
! 69:
! 70: u_char vid_3[4];
! 71: u_int vid_cas;
! 72: u_char vid_cal;
! 73: u_char vid_4_0[3];
! 74: u_char vid_4[64];
! 75: u_char vid_4_1[28];
! 76: u_long sbsize;
! 77: u_char vid_mot[8];
! 78:
! 79: /* CFG */
! 80: u_char cfg_0[4];
! 81: u_short cfg_atm;
! 82: u_short cfg_prm;
! 83: u_short cfg_atw;
! 84: u_short cfg_rec;
! 85:
! 86: u_short sparespertrack;
! 87: u_short sparespercyl;
! 88: u_long acylinders;
! 89: u_short rpm;
! 90: u_short cylskew;
! 91:
! 92: u_char cfg_spt;
! 93: u_char cfg_hds;
! 94: u_short cfg_trk;
! 95: u_char cfg_ilv;
! 96: u_char cfg_sof;
! 97: u_short cfg_psm;
! 98: u_short cfg_shd;
! 99: u_char cfg_2[2];
! 100: u_short cfg_pcom;
! 101: u_char cfg_3;
! 102: u_char cfg_ssr;
! 103: u_short cfg_rwcc;
! 104: u_short cfg_ecc;
! 105: u_short cfg_eatm;
! 106: u_short cfg_eprm;
! 107: u_short cfg_eatw;
! 108: u_char cfg_gpb1;
! 109: u_char cfg_gpb2;
! 110: u_char cfg_gpb3;
! 111: u_char cfg_gpb4;
! 112: u_char cfg_ssc;
! 113: u_char cfg_runit;
! 114: u_short cfg_rsvc1;
! 115: u_short cfg_rsvc2;
! 116: u_long magic2;
! 117: u_char cfg_4[192];
! 118: };
! 119:
! 120: #endif /* __MACHINE_DISKLABEL_H__ */
CVSweb