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