File: mscp_dev.c

package info (click to toggle)
ts10 0.8.021004-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,572 kB
  • ctags: 11,742
  • sloc: ansic: 68,289; makefile: 466
file content (281 lines) | stat: -rwxr-xr-x 12,832 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// mscp_dev.c - MSCP Device Types Table
//
// Written by
//  Timothy Stark <sword7@speakeasy.org>
//
// This file is part of the TS10 Emulator.
// See ReadMe for copyright notice.
//
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#include "emu/defs.h"
#include "dev/mscp.h"

MSCP_DTYPE mscp_dtList[] =
{
	{
		"RD51",                     // Device Type
		"11MB Hard Disk Drive",     // Description
		MDT_DISK|MDF_FIXED,         // Device Flags
		0x25644033,                 // Media ID
		2,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		18,                         // Blocks per Track
		1,                          // Tracks per Group (Surface)
		4,                          // Groups per Cylinder
		306,                        // Cylinders per Unit
		22032,                      // Total LBNs per Unit
		21600,                      // User LBNs per Unit
		144,                        // Number of Replacement Blocks (RBN)
		87,                         // Number of Diagnostics Blocks (DBN)
		57,                         // Number of Transfer Blocks    (XBN)
		36,                         // RCT Size (Blocks)
		4,                          // RCT Copies
	},

	{
		"RD52",                     // Device Type
		"70MB Hard Disk Drive",     // Description
		MDT_DISK|MDF_FIXED,         // Device Flags
		0x25644034,                 // Media ID
		1,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		17,                         // Blocks per Track
		8,                          // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		512,                        // Cylinders per Unit
		69632,                      // Total LBNs per Unit
		60480,                      // User LBNs per Unit
		168,                        // Number of Replacement Blocks (RBN)
		82,                         // Number of Diagnostics Blocks (DBN)
		54,                         // Number of Transfer Blocks    (XBN)
		4,                          // RCT Size (Blocks)
		8,                          // RCT Copies
	},

	{
		"RD52",                     // Device Type
		"70MB Hard Disk Drive",     // Description
		MDT_DISK|MDF_FIXED,         // Device Flags
		0x25644034,                 // Media ID
		1,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		17,                         // Blocks per Track
		7,                          // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		645,                        // Cylinders per Unit
		76755,                      // Total LBNs per Unit
		60480,                      // User LBNs per Unit
		168,                        // Number of Replacement Blocks (RBN)
		65,                         // Number of Diagnostics Blocks (DBN)
		54,                         // Number of Transfer Blocks    (XBN)
		4,                          // RCT Size (Blocks)
		8,                          // RCT Copies
	},

	{
		"RD53",                     // Device Type
		"70MB Hard Disk Drive",     // Description
		MDT_DISK|MDF_FIXED,         // Device Flags
		0x25644035,                 // Media ID
		1,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		17,                         // Blocks per Track
		8,                          // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1024,                       // Cylinders per Unit
		139264,                     // Total LBNs per Unit
		138672,                     // User LBNs per Unit
		280,                        // Number of Replacement Blocks (RBN)
		82,                         // Number of Diagnostics Blocks (DBN)
		54,                         // Number of Transfer Blocks    (XBN)
		5,                          // RCT Size (Blocks)
		8,                          // RCT Copies
	},

	{
		"RRD40",                    // Device Type
		"DEC RRD40 CD-ROM Drive",   // Description
		MDT_CD|MDF_RMVBL|MDF_RDONLY, // Device Flags
		0x25652228,                 // Media ID
		1,                          // Sector Interleave
		2048,                       // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		32,                         // Blocks per Track
		8,                          // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1024,                       // Cylinders per Unit
		332800,                     // Total LBNs per Unit
		332800,                     // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RRD50",                    // Device Type
		"DEC RRD50 CD-ROM Drive",   // Description
		MDT_CD|MDF_RMVBL|MDF_RDONLY, // Device Flags
		0x25652228,                 // Media ID
		1,                          // Sector Interleave
		2048,                       // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		32,                         // Blocks per Track
		8,                          // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1024,                       // Cylinders per Unit
		332800,                     // Total LBNs per Unit
		332800,                     // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RX01",                     // Device Type
		"250KB RX11 Floppy Drive",  // Description
		MDT_FLOPPY|MDF_RMVBL,       // Device Flags
		0x25658001,                 // Media ID
		1,                          // Sector Interleave
		128,                        // Bytes per Sector (Sector Size)
		4,                          // Sectors per LBN (Logical Block)
		26,                         // Blocks per Track
		77,                         // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1,                          // Cylinders per Unit
		2002,                       // Total LBNs per Unit
		2002,                       // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RX02",                     // Device Type
		"500KB RX21 Floppy Drive",  // Description
		MDT_FLOPPY|MDF_RMVBL,       // Device Flags
		0x25658002,                 // Media ID
		1,                          // Sector Interleave
		256,                        // Bytes per Sector (Sector Size)
		2,                          // Sectors per LBN (Logical Block)
		26,                         // Blocks per Track
		77,                         // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1,                          // Cylinders per Unit
		2002,                       // Total LBNs per Unit
		2002,                       // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RX23",                     // Device Type
		"1.4MB 3.5 Floppy Drive",   // Description
		MDT_FLOPPY|MDF_RMVBL,       // Device Flags
		0x25658017,                 // Media ID
		1,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		18,                         // Blocks per Track
		160,                        // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1,                          // Cylinders per Unit
		2880,                       // Total LBNs per Unit
		2880,                       // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RX26",                     // Device Type
		"2.8MB 3.5 Floppy Drive",   // Description
		MDT_FLOPPY|MDF_RMVBL,       // Device Flags
		0x2565801A,                 // Media ID
		1,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		36,                         // Blocks per Track
		160,                        // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1,                          // Cylinders per Unit
		5760,                       // Total LBNs per Unit
		5760,                       // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RX33",                     // Device Type
		"1.2MB 5.25 Floppy Drive",  // Description
		MDT_FLOPPY|MDF_RMVBL,       // Device Flags
		0x25658021,                 // Media ID
		1,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		15,                         // Blocks per Track
		160,                        // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1,                          // Cylinders per Unit
		2400,                       // Total LBNs per Unit
		2400,                       // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{
		"RX50",                     // Device Type
		"400KB 5.25 Floppy Drive",  // Description
		MDT_FLOPPY|MDF_RMVBL,       // Device Flags
		0x25658032,                 // Media ID
		2,                          // Sector Interleave
		512,                        // Bytes per Sector (Sector Size)
		1,                          // Sectors per LBN (Logical Block)
		10,                         // Blocks per Track
		80,                         // Tracks per Group (Surface)
		1,                          // Groups per Cylinder
		1,                          // Cylinders per Unit
		800,                        // Total LBNs per Unit
		800,                        // User LBNs per Unit
		0,                          // Number of Replacement Blocks (RBN)
		0,                          // Number of Diagnostics Blocks (DBN)
		0,                          // Number of Transfer Blocks    (XBN)
		0,                          // RCT Size (Blocks)
		0,                          // RCT Copies
	},

	{ NULL }, // Terminator
};