1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright (c) 1995 by Sun Microsystems, Inc. 24*0Sstevel@tonic-gate * All rights reserved. 25*0Sstevel@tonic-gate */ 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate #ifndef _SYS_FDMEDIA_H 28*0Sstevel@tonic-gate #define _SYS_FDMEDIA_H 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate #pragma ident "%W% %E% SMI" 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate #ifdef __cplusplus 33*0Sstevel@tonic-gate extern "C" { 34*0Sstevel@tonic-gate #endif 35*0Sstevel@tonic-gate 36*0Sstevel@tonic-gate /* 37*0Sstevel@tonic-gate * Default names for label 38*0Sstevel@tonic-gate */ 39*0Sstevel@tonic-gate static char deflabel_35[] = { 40*0Sstevel@tonic-gate "3.5\" floppy cyl %d alt 0 hd %d sec %d" 41*0Sstevel@tonic-gate }; 42*0Sstevel@tonic-gate static char deflabel_525[] = { 43*0Sstevel@tonic-gate "5.25\" floppy cyl %d alt 0 hd %d sec %d" 44*0Sstevel@tonic-gate }; 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate /* 47*0Sstevel@tonic-gate * default characteristics 48*0Sstevel@tonic-gate */ 49*0Sstevel@tonic-gate static struct fdattr fdtypes[] = { 50*0Sstevel@tonic-gate { /* [0] = struct fdattr fdattr_5H */ 51*0Sstevel@tonic-gate 360, /* rotational speed */ 52*0Sstevel@tonic-gate 1, /* interleave factor */ 53*0Sstevel@tonic-gate 0x1B, /* gap 3 length */ 54*0Sstevel@tonic-gate 0x54 /* format gap 3 length */ 55*0Sstevel@tonic-gate }, 56*0Sstevel@tonic-gate { /* [1] = struct fdattr fdattr_5Q */ 57*0Sstevel@tonic-gate 300, /* rotational speed */ 58*0Sstevel@tonic-gate 1, /* interleave factor */ 59*0Sstevel@tonic-gate 0x1B, /* gap 3 length */ 60*0Sstevel@tonic-gate 0x54 /* format gap 3 length */ 61*0Sstevel@tonic-gate }, 62*0Sstevel@tonic-gate { /* [2] = struct fdattr fdattr_5D9 */ 63*0Sstevel@tonic-gate 300, /* rotational speed */ 64*0Sstevel@tonic-gate 1, /* interleave factor */ 65*0Sstevel@tonic-gate 0x2A, /* gap 3 length */ 66*0Sstevel@tonic-gate 0x50 /* format gap 3 length */ 67*0Sstevel@tonic-gate }, 68*0Sstevel@tonic-gate { /* [3] = struct fdattr fdattr_5D8 */ 69*0Sstevel@tonic-gate 300, /* rotational speed */ 70*0Sstevel@tonic-gate 1, /* interleave factor */ 71*0Sstevel@tonic-gate 0x2A, /* gap 3 length */ 72*0Sstevel@tonic-gate 0x50 /* format gap 3 length */ 73*0Sstevel@tonic-gate }, 74*0Sstevel@tonic-gate { /* [4] = struct fdattr fdattr_5D4 */ 75*0Sstevel@tonic-gate 300, /* rotational speed */ 76*0Sstevel@tonic-gate 1, /* interleave factor */ 77*0Sstevel@tonic-gate 0x80, /* gap 3 length */ 78*0Sstevel@tonic-gate 0xF0 /* format gap 3 length */ 79*0Sstevel@tonic-gate }, 80*0Sstevel@tonic-gate { /* [5] = struct fdattr fdattr_5D16 */ 81*0Sstevel@tonic-gate 300, /* rotational speed */ 82*0Sstevel@tonic-gate 1, /* interleave factor */ 83*0Sstevel@tonic-gate 0x20, /* gap 3 length */ 84*0Sstevel@tonic-gate 0x32 /* format gap 3 length */ 85*0Sstevel@tonic-gate }, 86*0Sstevel@tonic-gate { /* [6] = struct fdattr fdattr_3E */ 87*0Sstevel@tonic-gate 300, /* rotational speed */ 88*0Sstevel@tonic-gate 1, /* interleave factor */ 89*0Sstevel@tonic-gate 0x1B, /* gap 3 length */ 90*0Sstevel@tonic-gate 0x53 /* format gap 3 length */ 91*0Sstevel@tonic-gate }, 92*0Sstevel@tonic-gate { /* [7] = struct fdattr fdattr_3H */ 93*0Sstevel@tonic-gate 300, /* rotational speed */ 94*0Sstevel@tonic-gate 1, /* interleave factor */ 95*0Sstevel@tonic-gate 0x1B, /* gap 3 length */ 96*0Sstevel@tonic-gate 0x6C /* format gap 3 length */ 97*0Sstevel@tonic-gate }, 98*0Sstevel@tonic-gate { /* [8] = struct fdattr fdattr_3I */ 99*0Sstevel@tonic-gate 300, /* rotational speed */ 100*0Sstevel@tonic-gate 1, /* interleave factor */ 101*0Sstevel@tonic-gate 4, /* gap 3 length */ 102*0Sstevel@tonic-gate 12 /* format gap 3 length */ 103*0Sstevel@tonic-gate }, 104*0Sstevel@tonic-gate { /* [9] = struct fdattr fdattr_3M */ 105*0Sstevel@tonic-gate 360, /* rotational speed */ 106*0Sstevel@tonic-gate 1, /* interleave factor */ 107*0Sstevel@tonic-gate 0x35, /* gap 3 length */ 108*0Sstevel@tonic-gate 0x74 /* format gap 3 length */ 109*0Sstevel@tonic-gate }, 110*0Sstevel@tonic-gate { /* [10] = struct fdattr fdattr_3D */ 111*0Sstevel@tonic-gate 300, /* rotational speed */ 112*0Sstevel@tonic-gate 1, /* interleave factor */ 113*0Sstevel@tonic-gate 0x1B, /* gap 3 length */ 114*0Sstevel@tonic-gate 0x50 /* format gap 3 length */ 115*0Sstevel@tonic-gate } 116*0Sstevel@tonic-gate }; 117*0Sstevel@tonic-gate 118*0Sstevel@tonic-gate static int nfdtypes = sizeof (fdtypes) / sizeof (fdtypes[0]); 119*0Sstevel@tonic-gate 120*0Sstevel@tonic-gate 121*0Sstevel@tonic-gate static struct fd_char dfc_80x36 = { 122*0Sstevel@tonic-gate 3, /* medium */ 123*0Sstevel@tonic-gate 1000, /* transfer rate */ 124*0Sstevel@tonic-gate 80, /* number of cylinders */ 125*0Sstevel@tonic-gate 2, /* number of heads */ 126*0Sstevel@tonic-gate 512, /* sector size */ 127*0Sstevel@tonic-gate 36, /* sectors per track */ 128*0Sstevel@tonic-gate 1, /* # steps per data track */ 129*0Sstevel@tonic-gate }; 130*0Sstevel@tonic-gate static struct fd_char dfc_80x21 = { 131*0Sstevel@tonic-gate 3, /* medium */ 132*0Sstevel@tonic-gate 500, /* transfer rate */ 133*0Sstevel@tonic-gate 80, /* number of cylinders */ 134*0Sstevel@tonic-gate 2, /* number of heads */ 135*0Sstevel@tonic-gate 512, /* sector size */ 136*0Sstevel@tonic-gate 21, /* sectors per track */ 137*0Sstevel@tonic-gate 1, /* # steps per data track */ 138*0Sstevel@tonic-gate }; 139*0Sstevel@tonic-gate static struct fd_char dfc_80x18 = { 140*0Sstevel@tonic-gate 3, /* medium */ 141*0Sstevel@tonic-gate 500, /* transfer rate */ 142*0Sstevel@tonic-gate 80, /* number of cylinders */ 143*0Sstevel@tonic-gate 2, /* number of heads */ 144*0Sstevel@tonic-gate 512, /* sector size */ 145*0Sstevel@tonic-gate 18, /* sectors per track */ 146*0Sstevel@tonic-gate 1, /* # steps per data track */ 147*0Sstevel@tonic-gate }; 148*0Sstevel@tonic-gate static struct fd_char dfc_80x15 = { 149*0Sstevel@tonic-gate 5, /* medium */ 150*0Sstevel@tonic-gate 500, /* transfer rate */ 151*0Sstevel@tonic-gate 80, /* number of cylinders */ 152*0Sstevel@tonic-gate 2, /* number of heads */ 153*0Sstevel@tonic-gate 512, /* sector size */ 154*0Sstevel@tonic-gate 15, /* sectors per track */ 155*0Sstevel@tonic-gate 1, /* # steps per data track */ 156*0Sstevel@tonic-gate }; 157*0Sstevel@tonic-gate static struct fd_char dfc_80x9 = { 158*0Sstevel@tonic-gate 3, /* medium */ 159*0Sstevel@tonic-gate 250, /* transfer rate */ 160*0Sstevel@tonic-gate 80, /* number of cylinders */ 161*0Sstevel@tonic-gate 2, /* number of heads */ 162*0Sstevel@tonic-gate 512, /* sector size */ 163*0Sstevel@tonic-gate 9, /* sectors per track */ 164*0Sstevel@tonic-gate 1, /* # steps per data track */ 165*0Sstevel@tonic-gate }; 166*0Sstevel@tonic-gate static struct fd_char dfc_77x8 = { 167*0Sstevel@tonic-gate 3, /* medium */ 168*0Sstevel@tonic-gate 500, /* transfer rate */ 169*0Sstevel@tonic-gate 77, /* number of cylinders */ 170*0Sstevel@tonic-gate 2, /* number of heads */ 171*0Sstevel@tonic-gate 1024, /* sector size */ 172*0Sstevel@tonic-gate 8, /* sectors per track */ 173*0Sstevel@tonic-gate 1, /* # steps per data track */ 174*0Sstevel@tonic-gate }; 175*0Sstevel@tonic-gate static struct fd_char dfc_40x16 = { 176*0Sstevel@tonic-gate 5, /* medium */ 177*0Sstevel@tonic-gate 250, /* transfer rate */ 178*0Sstevel@tonic-gate 40, /* number of cylinders */ 179*0Sstevel@tonic-gate 2, /* number of heads */ 180*0Sstevel@tonic-gate 256, /* sector size */ 181*0Sstevel@tonic-gate 16, /* sectors per track */ 182*0Sstevel@tonic-gate 1, /* # steps per data track */ 183*0Sstevel@tonic-gate }; 184*0Sstevel@tonic-gate static struct fd_char dfc_40x9 = { 185*0Sstevel@tonic-gate 5, /* medium */ 186*0Sstevel@tonic-gate 250, /* transfer rate */ 187*0Sstevel@tonic-gate 40, /* number of cylinders */ 188*0Sstevel@tonic-gate 2, /* number of heads */ 189*0Sstevel@tonic-gate 512, /* sector size */ 190*0Sstevel@tonic-gate 9, /* sectors per track */ 191*0Sstevel@tonic-gate 1, /* # steps per data track */ 192*0Sstevel@tonic-gate }; 193*0Sstevel@tonic-gate static struct fd_char dfc_40x8 = { 194*0Sstevel@tonic-gate 5, /* medium */ 195*0Sstevel@tonic-gate 250, /* transfer rate */ 196*0Sstevel@tonic-gate 40, /* number of cylinders */ 197*0Sstevel@tonic-gate 2, /* number of heads */ 198*0Sstevel@tonic-gate 512, /* sector size */ 199*0Sstevel@tonic-gate 8, /* sectors per track */ 200*0Sstevel@tonic-gate 1, /* # steps per data track */ 201*0Sstevel@tonic-gate }; 202*0Sstevel@tonic-gate static struct fd_char dfc_40x4 = { 203*0Sstevel@tonic-gate 5, /* medium */ 204*0Sstevel@tonic-gate 250, /* transfer rate */ 205*0Sstevel@tonic-gate 40, /* number of cylinders */ 206*0Sstevel@tonic-gate 2, /* number of heads */ 207*0Sstevel@tonic-gate 1024, /* sector size */ 208*0Sstevel@tonic-gate 4, /* sectors per track */ 209*0Sstevel@tonic-gate 1, /* # steps per data track */ 210*0Sstevel@tonic-gate }; 211*0Sstevel@tonic-gate 212*0Sstevel@tonic-gate static struct fd_char *defchar[] = { 213*0Sstevel@tonic-gate &dfc_80x15, /* FMT_5H */ 214*0Sstevel@tonic-gate &dfc_80x9, /* FMT_5Q */ 215*0Sstevel@tonic-gate &dfc_40x9, /* FMT_5D9 */ 216*0Sstevel@tonic-gate &dfc_40x8, /* FMT_5D8 */ 217*0Sstevel@tonic-gate &dfc_40x4, /* FMT_5D4 */ 218*0Sstevel@tonic-gate &dfc_40x16, /* FMT_5D16 */ 219*0Sstevel@tonic-gate &dfc_80x36, /* FMT_3E */ 220*0Sstevel@tonic-gate &dfc_80x18, /* FMT_3H */ 221*0Sstevel@tonic-gate &dfc_80x21, /* FMT_3I */ 222*0Sstevel@tonic-gate &dfc_77x8, /* FMT_3M */ 223*0Sstevel@tonic-gate &dfc_80x9 /* FMT_3D */ 224*0Sstevel@tonic-gate }; 225*0Sstevel@tonic-gate 226*0Sstevel@tonic-gate 227*0Sstevel@tonic-gate static struct fd_drive dfd_350ED = { 228*0Sstevel@tonic-gate 0, /* ejectable, does the drive support eject? */ 229*0Sstevel@tonic-gate 4, /* maxsearch, size of per-unit search table */ 230*0Sstevel@tonic-gate 0, /* cyl to start write precompensation */ 231*0Sstevel@tonic-gate 80, /* cyl to start reducing write current */ 232*0Sstevel@tonic-gate 1, /* step width pulse in 1 us units */ 233*0Sstevel@tonic-gate 30, /* step rate in 100 us units */ 234*0Sstevel@tonic-gate 150, /* head settle delay, in 100 us units */ 235*0Sstevel@tonic-gate 150, /* head load delay, in 100 us units */ 236*0Sstevel@tonic-gate 2560, /* head unload delay, in 100 us units */ 237*0Sstevel@tonic-gate 3, /* motor on delay, in 100 ms units */ 238*0Sstevel@tonic-gate 20, /* motor off delay, in 100 ms units */ 239*0Sstevel@tonic-gate 65, /* precomp level, bit shift, in nano-secs */ 240*0Sstevel@tonic-gate 0, /* pins, defines meaning of pin 1, 2, 4, and 34 */ 241*0Sstevel@tonic-gate 0, /* flags, TRUE READY, Starting Sector #, & Motor On */ 242*0Sstevel@tonic-gate }; 243*0Sstevel@tonic-gate static struct fd_drive dfd_350HD = { 244*0Sstevel@tonic-gate 0, /* ejectable, does the drive support eject? */ 245*0Sstevel@tonic-gate 4, /* maxsearch, size of per-unit search table */ 246*0Sstevel@tonic-gate 0, /* cyl to start write prcompensation */ 247*0Sstevel@tonic-gate 80, /* cyl to start reducing write current */ 248*0Sstevel@tonic-gate 1, /* step width pulse in 1 us units */ 249*0Sstevel@tonic-gate 30, /* step rate in 100 us units */ 250*0Sstevel@tonic-gate 150, /* head settle delay, in 100 us units */ 251*0Sstevel@tonic-gate 150, /* head load delay, in 100 us units */ 252*0Sstevel@tonic-gate 2560, /* head unload delay, in 100 us units */ 253*0Sstevel@tonic-gate 3, /* motor on delay, in 100 ms units */ 254*0Sstevel@tonic-gate 20, /* motor off delay, in 100 ms units */ 255*0Sstevel@tonic-gate 125, /* precomp level, bit shift, in nano-secs */ 256*0Sstevel@tonic-gate 0, /* pins, defines meaning of pin 1, 2, 4, and 34 */ 257*0Sstevel@tonic-gate 0, /* flags, TRUE READY, Starting Sector #, & Motor On */ 258*0Sstevel@tonic-gate }; 259*0Sstevel@tonic-gate static struct fd_drive dfd_525HD = { 260*0Sstevel@tonic-gate 0, /* ejectable, does the drive support eject? */ 261*0Sstevel@tonic-gate 6, /* maxsearch, size of per-unit search table */ 262*0Sstevel@tonic-gate 43, /* cyl to start write prcompensation */ 263*0Sstevel@tonic-gate 80, /* cyl to start reducing write current */ 264*0Sstevel@tonic-gate 1, /* step width pulse in 1 us units */ 265*0Sstevel@tonic-gate 30, /* step rate in 100 us units */ 266*0Sstevel@tonic-gate 150, /* head settle delay, in 100 us units */ 267*0Sstevel@tonic-gate 150, /* head load delay, in 100 us units */ 268*0Sstevel@tonic-gate 2560, /* head unload delay, in 100 us units */ 269*0Sstevel@tonic-gate 5, /* motor on delay, in 100 ms units */ 270*0Sstevel@tonic-gate 20, /* motor off delay, in 100 ms units */ 271*0Sstevel@tonic-gate 175, /* precomp level, bit shift, in nano-secs */ 272*0Sstevel@tonic-gate 0, /* pins, defines meaning of pin 1, 2, 4, and 34 */ 273*0Sstevel@tonic-gate 0, /* flags, TRUE READY, Starting Sector #, & Motor On */ 274*0Sstevel@tonic-gate }; 275*0Sstevel@tonic-gate static struct fd_drive dfd_525DD = { 276*0Sstevel@tonic-gate 0, /* ejectable, does the drive support eject? */ 277*0Sstevel@tonic-gate 4, /* maxsearch, size of per-unit search table */ 278*0Sstevel@tonic-gate 22, /* cyl to start write prcompensation */ 279*0Sstevel@tonic-gate 40, /* cyl to start reducing write current */ 280*0Sstevel@tonic-gate 1, /* step width pulse in 1 us units */ 281*0Sstevel@tonic-gate 60, /* step rate in 100 us units */ 282*0Sstevel@tonic-gate 150, /* head settle delay, in 100 us units */ 283*0Sstevel@tonic-gate 150, /* head load delay, in 100 us units */ 284*0Sstevel@tonic-gate 2560, /* head unload delay, in 100 us units */ 285*0Sstevel@tonic-gate 5, /* motor on delay, in 100 ms units */ 286*0Sstevel@tonic-gate 20, /* motor off delay, in 100 ms units */ 287*0Sstevel@tonic-gate 250, /* precomp level, bit shift, in nano-secs */ 288*0Sstevel@tonic-gate 0, /* pins, defines meaning of pin 1, 2, 4, and 34 */ 289*0Sstevel@tonic-gate 0, /* flags, TRUE READY, Starting Sector #, & Motor On */ 290*0Sstevel@tonic-gate }; 291*0Sstevel@tonic-gate 292*0Sstevel@tonic-gate /* 293*0Sstevel@tonic-gate * Default partition maps 294*0Sstevel@tonic-gate */ 295*0Sstevel@tonic-gate static struct partition dpt_80x36[NDKMAP] = { 296*0Sstevel@tonic-gate { 0, 0, 0, 79*2*36 }, /* part 0 - all but last cyl */ 297*0Sstevel@tonic-gate { 0, 0, 79*2*36, 1*2*36 }, /* part 1 - just the last cyl */ 298*0Sstevel@tonic-gate { 0, 0, 0, 80*2*36 }, /* part 2 - "the whole thing" */ 299*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 300*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 301*0Sstevel@tonic-gate }; 302*0Sstevel@tonic-gate static struct partition dpt_80x21[NDKMAP] = { 303*0Sstevel@tonic-gate { 0, 0, 0, 79*2*21 }, /* part 0 - all but last cyl */ 304*0Sstevel@tonic-gate { 0, 0, 79*2*21, 1*2*21 }, /* part 1 - just the last cyl */ 305*0Sstevel@tonic-gate { 0, 0, 0, 80*2*21 }, /* part 2 - "the whole thing" */ 306*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 307*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 308*0Sstevel@tonic-gate }; 309*0Sstevel@tonic-gate static struct partition dpt_80x18[NDKMAP] = { 310*0Sstevel@tonic-gate { 0, 0, 0, 79*2*18 }, /* part 0 - all but last cyl */ 311*0Sstevel@tonic-gate { 0, 0, 79*2*18, 1*2*18 }, /* part 1 - just the last cyl */ 312*0Sstevel@tonic-gate { 0, 0, 0, 80*2*18 }, /* part 2 - "the whole thing" */ 313*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 314*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 315*0Sstevel@tonic-gate }; 316*0Sstevel@tonic-gate static struct partition dpt_80x15[NDKMAP] = { 317*0Sstevel@tonic-gate { 0, 0, 0, 79*2*15 }, /* part 0 - all but last cyl */ 318*0Sstevel@tonic-gate { 0, 0, 79*2*15, 1*2*15 }, /* part 1 - just the last cyl */ 319*0Sstevel@tonic-gate { 0, 0, 0, 80*2*15 }, /* part 2 - "the whole thing" */ 320*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 321*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 322*0Sstevel@tonic-gate }; 323*0Sstevel@tonic-gate static struct partition dpt_80x9[NDKMAP] = { 324*0Sstevel@tonic-gate { 0, 0, 0, 79*2*9 }, /* part 0 - all but last cyl */ 325*0Sstevel@tonic-gate { 0, 0, 79*2*9, 1*2*9 }, /* part 1 - just the last cyl */ 326*0Sstevel@tonic-gate { 0, 0, 0, 80*2*9 }, /* part 2 - "the whole thing" */ 327*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 328*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 329*0Sstevel@tonic-gate }; 330*0Sstevel@tonic-gate static struct partition dpt_77x8[NDKMAP] = { 331*0Sstevel@tonic-gate /* double number of blocks since sector size is 1024 */ 332*0Sstevel@tonic-gate { 0, 0, 0, 76*2*8*2 }, /* part 0 - all but last cyl */ 333*0Sstevel@tonic-gate { 0, 0, 76*2*8*2, 1*2*8*2 }, /* part 1 - just the last cyl */ 334*0Sstevel@tonic-gate { 0, 0, 0, 77*2*8*2 }, /* part 2 - "the whole thing" */ 335*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 336*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 337*0Sstevel@tonic-gate }; 338*0Sstevel@tonic-gate static struct partition dpt_40x16[NDKMAP] = { 339*0Sstevel@tonic-gate /* halve number of blocks since sector size is 256 */ 340*0Sstevel@tonic-gate { 0, 0, 0, 39*2*16/2 }, /* part 0 - all but last cyl */ 341*0Sstevel@tonic-gate { 0, 0, 39*2*16/2, 1*2*16/2 }, /* part 1 - just the last cyl */ 342*0Sstevel@tonic-gate { 0, 0, 0, 40*2*16/2 }, /* part 2 - "the whole thing" */ 343*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 344*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 345*0Sstevel@tonic-gate }; 346*0Sstevel@tonic-gate static struct partition dpt_40x9[NDKMAP] = { 347*0Sstevel@tonic-gate { 0, 0, 0, 39*2*9 }, /* part 0 - all but last cyl */ 348*0Sstevel@tonic-gate { 0, 0, 39*2*9, 1*2*9 }, /* part 1 - just the last cyl */ 349*0Sstevel@tonic-gate { 0, 0, 0, 40*2*9 }, /* part 2 - "the whole thing" */ 350*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 351*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 352*0Sstevel@tonic-gate }; 353*0Sstevel@tonic-gate static struct partition dpt_40x8[NDKMAP] = { 354*0Sstevel@tonic-gate /* double number of blocks since sector size is 1024 */ 355*0Sstevel@tonic-gate { 0, 0, 0, 39*2*8*2 }, /* part 0 - all but last cyl */ 356*0Sstevel@tonic-gate { 0, 0, 39*2*8*2, 1*2*8*2 }, /* part 1 - just the last cyl */ 357*0Sstevel@tonic-gate { 0, 0, 0, 40*2*8*2 }, /* part 2 - "the whole thing" */ 358*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 359*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 360*0Sstevel@tonic-gate }; 361*0Sstevel@tonic-gate static struct partition dpt_40x4[NDKMAP] = { 362*0Sstevel@tonic-gate { 0, 0, 0, 39*2*4 }, /* part 0 - all but last cyl */ 363*0Sstevel@tonic-gate { 0, 0, 39*2*4, 1*2*4 }, /* part 1 - just the last cyl */ 364*0Sstevel@tonic-gate { 0, 0, 0, 40*2*4 }, /* part 2 - "the whole thing" */ 365*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, 366*0Sstevel@tonic-gate { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } 367*0Sstevel@tonic-gate }; 368*0Sstevel@tonic-gate 369*0Sstevel@tonic-gate static struct partition *fdparts[] = { 370*0Sstevel@tonic-gate dpt_80x15, /* FMT_5H */ 371*0Sstevel@tonic-gate dpt_80x9, /* FMT_5Q */ 372*0Sstevel@tonic-gate dpt_40x9, /* FMT_5D9 */ 373*0Sstevel@tonic-gate dpt_40x8, /* FMT_5D8 */ 374*0Sstevel@tonic-gate dpt_40x4, /* FMT_5D4 */ 375*0Sstevel@tonic-gate dpt_40x16, /* FMT_5D16 */ 376*0Sstevel@tonic-gate dpt_80x36, /* FMT_3E */ 377*0Sstevel@tonic-gate dpt_80x18, /* FMT_3H */ 378*0Sstevel@tonic-gate dpt_80x21, /* FMT_3I */ 379*0Sstevel@tonic-gate dpt_77x8, /* FMT_3M */ 380*0Sstevel@tonic-gate dpt_80x9 /* FMT_3D */ 381*0Sstevel@tonic-gate }; 382*0Sstevel@tonic-gate 383*0Sstevel@tonic-gate #ifdef __cplusplus 384*0Sstevel@tonic-gate } 385*0Sstevel@tonic-gate #endif 386*0Sstevel@tonic-gate 387*0Sstevel@tonic-gate #endif /* !_SYS_FDMEDIA_H */ 388