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