forked from Hercules-Aethra/aethra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cckd.h
502 lines (422 loc) · 27.4 KB
/
cckd.h
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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
/* CCKD.H (C) Copyright "Fish" (David B. Trout), 2018-2022 */
/* CCKD dasd struct and type definitions */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
#ifndef _CCKD_H_
#define _CCKD_H_
/*-------------------------------------------------------------------*/
/* IMPORTANT PROGRAMMING NOTE: for whatever reason, base dasd */
/* image files use a L2_trkoff value of zero in their L1tab entry */
/* for non-existent tracks, whereas shadow files use a value of -1. */
/* To ensure we remain 100% compatible with all non-CCKD64 versions */
/* of Hercules, we MUST enforce this same inconsistent use design. */
/*-------------------------------------------------------------------*/
#define CCKD_NOSIZE ((U32)0)
#define CCKD_MAXSIZE ((U32)MAX_OFFSET_T)
#define CCKD_BASE_NO_OFFSET CCKD_NOSIZE
#define CCKD_SHADOW_NO_OFFSET CCKD_MAXSIZE
/*-------------------------------------------------------------------*/
/* struct typedefs */
/*-------------------------------------------------------------------*/
typedef struct CKD_DEVHDR CKD_DEVHDR; // Device header
typedef struct CKD_TRKHDR CKD_TRKHDR; // Track header
typedef struct FBA_BKGHDR FBA_BKGHDR; // Block Group header
typedef struct CKD_RECHDR CKD_RECHDR; // Record header
typedef struct CCKD_DEVHDR CCKD_DEVHDR; // Compress device header
typedef struct CCKD_L2ENT CCKD_L2ENT; // Level 2 table entry
typedef struct CCKD_FREEBLK CCKD_FREEBLK; // Free block
typedef struct CCKD_IFREEBLK CCKD_IFREEBLK; // Free block (internal)
typedef struct CCKD_RA CCKD_RA; // Readahead queue entry
typedef struct CCKDBLK CCKDBLK; // Global CCKD dasd block
typedef struct CCKD_EXT CCKD_EXT; // CCKD Extension block
typedef struct SPCTAB SPCTAB; // Space table
/*-------------------------------------------------------------------*/
/* Structure definitions for CKD headers */
/*-------------------------------------------------------------------*/
/* NOTE: The dh_heads, dh_trksize and dh_highcyl */
/* values are always kept in LITTLE endian format. */
/*-------------------------------------------------------------------*/
struct CKD_DEVHDR /* Device header */
{
BYTE dh_devid[8]; /* ASCII Device Header id;
see dasdblks.h for list */
FWORD dh_heads; /* CKD: heads per cylinder
CFBA: number of sectors */
FWORD dh_trksize; /* CKD: track size
CFBA: sector size */
BYTE dh_devtyp; /* Low byte of hex device type
(x80=3380, x90=3390, etc) */
BYTE dh_fileseq; /* CKD: image file sequence no.
(0=only file, 1=first file
of multiple files)
CFBA: 0 (not used) */
HWORD dh_highcyl; /* CKD: Highest cylinder number
on this file, or zero if this
is the last or only file.
CFBA: zero (not used) */
BYTE dh_serial[12]; /* Serial number (ASCII) */
BYTE resv[480]; /* Reserved */
};
struct CKD_TRKHDR { /* Track header */
BYTE bin; /* Bin number */
HWORD cyl; /* Cylinder number */
HWORD head; /* Head number */
};
struct FBA_BKGHDR { /* Block Group Header */
BYTE cmp; /* Compression byte */
FWORD blknum; /* Sector number */
};
struct CKD_RECHDR { /* Record header */
HWORD cyl; /* Cylinder number */
HWORD head; /* Head number */
BYTE rec; /* Record number */
BYTE klen; /* Key length */
HWORD dlen; /* Data length */
};
#define CKD_DEVHDR_SIZE ((ssize_t)sizeof(CKD_DEVHDR))
#define CKD_TRKHDR_SIZE ((ssize_t)sizeof(CKD_TRKHDR))
#define FBA_BKGHDR_SIZE ((ssize_t)sizeof(FBA_BKGHDR))
#define CKD_RECHDR_SIZE ((ssize_t)sizeof(CKD_RECHDR))
/* Null track formats */
#define CKD_NULLTRK_FMT0 0 /* ha r0 eof eot */
#define CKD_NULLTRK_FMT1 1 /* ha r0 eot */
#define CKD_NULLTRK_FMT2 2 /* linux (3390 only) */
#define CKD_NULLTRK_FMTMAX CKD_NULLTRK_FMT2
#define CKD_NULLTRK_SIZE0 (CKD_TRKHDR_SIZE + CKD_R0_SIZE + CKD_R0_DLEN + CKD_EOF_SIZE + CKD_ENDTRK_SIZE)
#define CKD_NULLTRK_SIZE1 (CKD_TRKHDR_SIZE + CKD_R0_SIZE + CKD_R0_DLEN + CKD_ENDTRK_SIZE)
#define CKD_NULLTRK_SIZE2 (CKD_TRKHDR_SIZE + CKD_R0_SIZE + CKD_R0_DLEN + (12 * (CKD_RECHDR_SIZE + CKD_NULL_FMT2_DLEN)) + CKD_ENDTRK_SIZE)
/*-------------------------------------------------------------------*/
/* Structure definitions for Compressed CCKD/CFBA devices */
/*-------------------------------------------------------------------*/
/* NOTE: The num_L1tab, num_L2tab, cyls, cdh_size, cdh_used, */
/* free_off, free_total, free_largest, free_num, free_imbed, */
/* and cmp_parm fields are kept in LITTLE endian format. */
/*-------------------------------------------------------------------*/
struct CCKD_DEVHDR /* Compress device header */
{
/* 0 */BYTE cdh_vrm[3]; /* Version Release Modifier */
/* 3 */BYTE cdh_opts; /* Options byte */
/* 4 */S32 num_L1tab; /* Number of L1tab entries */
/* 8 */S32 num_L2tab; /* Number of L2tab entries */
/* 12 */U32 cdh_size; /* File size */
/* 16 */U32 cdh_used; /* File used */
/* 20 */U32 free_off; /* Offset to free space */
/* 24 */U32 free_total; /* Total free space */
/* 28 */U32 free_largest; /* Largest free space */
/* 32 */S32 free_num; /* Number free spaces */
/* 36 */U32 free_imbed; /* Imbedded free space */
/* 40 */FWORD cdh_cyls; /* CCKD: Cylinders on device
CFBA: Sectors on device */
/* 44 */BYTE cdh_nullfmt; /* Null track format */
/* 45 */BYTE cmp_algo; /* Compression algorithm */
/* 46 */S16 cmp_parm; /* Compression parameter */
/* 48 */BYTE resv2[464]; /* Reserved */
};
#define CCKD_VERSION 0
#define CCKD_RELEASE 3
#define CCKD_MODLVL 1
#define CCKD_OPT_BIGEND 0x02 /* file in BIG endian format */
#define CCKD_OPT_SPERRS 0x20 /* Space errors detected */
#define CCKD_OPT_OPENRW 0x40 /* Opened R/W since last chkdsk */
#define CCKD_OPT_OPENED 0x80
#define CCKD_COMPRESS_NONE 0x00
#define CCKD_COMPRESS_ZLIB 0x01
#define CCKD_COMPRESS_BZIP2 0x02
#define CCKD_COMPRESS_MASK 0x03
#define CCKD_STRESS_MINLEN 4096
#if defined( HAVE_ZLIB )
#define CCKD_STRESS_COMP CCKD_COMPRESS_ZLIB
#else
#define CCKD_STRESS_COMP CCKD_COMPRESS_NONE
#endif
#define CCKD_STRESS_PARM1 4
#define CCKD_STRESS_PARM2 2
struct CCKD_L2ENT { /* Level 2 table entry */
/* NOTE: all fields are numeric and always in LITTLE endian format. */
U32 L2_trkoff; /* Offset to track image */
U16 L2_len; /* Track length */
U16 L2_size; /* Track size (size >= len) */
};
struct CCKD_FREEBLK { /* Free block (file) */
/* NOTE: all fields are numeric and always in LITTLE endian format. */
U32 fb_offnxt; /* Offset to NEXT free blk */
U32 fb_len; /* Length of THIS free blk */
};
#define fb_offset fb_offnxt // (see cckd_read_fsp/cckd_write_fsp!)
struct CCKD_IFREEBLK { /* Free block (internal) */
/* NOTE: because this control block is an INTERNAL control block */
/* which does not actually exist in the emulated dasd image file */
/* (i.e. it is only used internally), all of its fields are always */
/* in *HOST* endian format (little endian on little endian hosts */
/* and big endian on big endian hosts). */
U32 ifb_offnxt; /* Offset to NEXT free blk */
U32 ifb_len; /* Length of THIS free blk */
int ifb_idxprv; /* Index to prev free blk */
int ifb_idxnxt; /* Index to next free blk */
int ifb_pending; /* 1=Free pending (don't use)*/
};
struct CCKD_RA { /* Readahead queue entry */
DEVBLK *ra_dev; /* Readahead device */
int ra_trk; /* Readahead track */
int ra_idxprv; /* Index to prev entry */
int ra_idxnxt; /* Index to next entry */
};
typedef U32 CCKD_L1ENT; /* Level 1 table entry */
typedef CCKD_L1ENT CCKD_L1TAB[]; /* Level 1 table */
typedef CCKD_L2ENT CCKD_L2TAB[256]; /* Level 2 table */
typedef char CCKD_ITRACE[256]; /* Trace table entry */
#define CCKD_DEVHDR_SIZE ((ssize_t)sizeof(CCKD_DEVHDR))
#define CCKD_L1ENT_SIZE ((ssize_t)sizeof(CCKD_L1ENT))
#define CCKD_L2ENT_SIZE ((ssize_t)sizeof(CCKD_L2ENT))
#define CCKD_L2TAB_SIZE ((ssize_t)sizeof(CCKD_L2TAB))
#define CCKD_FREEBLK_SIZE ((ssize_t)sizeof(CCKD_FREEBLK))
#define CCKD_IFREEBLK_SIZE ((ssize_t)sizeof(CCKD_IFREEBLK))
#define CCKD_DEVHDR_POS (CKD_DEVHDR_SIZE)
#define CCKD_L1TAB_POS ((CCKD_DEVHDR_POS)+(CCKD_DEVHDR_SIZE))
/* Flag bits */
#define CCKD_SIZE_EXACT 0x01 /* Space obtained is exact */
#define CCKD_SIZE_ANY 0x02 /* Space can be any size */
#define CCKD_L2SPACE 0x04 /* Space for a l2 table */
/* Adjustable values */
#define CCKD_IFB_ENTS_INCR 1024 /* ifb entries per (re)alloc */
#define CCKD_FREE_MIN_SIZE 96 /* Minimum free space size */
#define CCKD_FREE_MIN_INCR 32 /* Added for each ifb incr */
#define CCKD_COMPRESS_MIN 512 /* Track images smaller than
this won't be compressed */
#define CCKD_MAX_SF 8 /* Maximum number of shadow
files: 0 to 9 [0 disables
shadow file support] */
#define CCKD_MIN_READAHEADS 0 /* Min readahead trks */
#define CCKD_DEF_READAHEADS 2 /* Def readahead trks */
#define CCKD_MAX_READAHEADS 16 /* Max readahead trks */
#define CCKD_DEF_RA_SIZE 4 /* Readahead queue size */
#define CCKD_MAX_RA_SIZE 16 /* Readahead queue size */
#define CCKD_MIN_RA 0 /* Min readahead threads */
#define CCKD_DEF_RA 2 /* Def readahead threads */
#define CCKD_MAX_RA 9 /* Max readahead threads */
#define CCKD_MIN_WRITER 1 /* Min writer threads */
#define CCKD_DEF_WRITER 2 /* Def writer threads */
#define CCKD_MAX_WRITER 9 /* Max writer threads */
#define CCKD_MIN_GCOL 0 /* Min garbage collectors */
#define CCKD_DEF_GCOL 1 /* Def garbage collectors */
#define CCKD_MAX_GCOL 1 /* Max garbage collectors */
#define CCKD_MIN_GCINT 0 /* Min collection interval */
#define CCKD_DEF_GCINT 0 /* Def collection interval */
#define CCKD_MAX_GCINT 60 /* Max collection interval */
#define CCKD_MIN_GCPARM -8 /* Min gcol adjustment parm */
#define CCKD_DEF_GCPARM 0 /* Def gcol adjustment parm */
#define CCKD_MAX_GCPARM +8 /* max gcol adjustment parm */
#define CCKD_DEF_NUM_TRACE 64 /* Def nbr of trace entries */
#define CCKD_MAX_NUM_TRACE 262144 /* Max nbr of trace entries */
#define CCKD_DEF_FREEPEND -1 /* Def free pending cycles */
#define CCKD_MAX_FREEPEND 4 /* Max free pending cycles */
/*-------------------------------------------------------------------*/
/* Global CCKD dasd block */
/*-------------------------------------------------------------------*/
struct CCKDBLK { /* Global cckd dasd block */
BYTE id[8]; /* "CCKDBLK " */
#define CCKDBLK_ID "CCKDBLK " /* "CCKDBLK " */
DEVBLK *dev1st; /* 1st device in cckd queue */
unsigned int batch:1, /* 1=called in batch mode */
debug:1, /* 1=CCW trace debug msgs */
dtax:1, /* 1=Dump Table At Exit */
sfmerge:1, /* 1=sf-* merge */
sfforce:1; /* 1=sf-* force */
int sflevel; /* sfk xxxx level */
int batchml; /* message level for batch ops */
BYTE comps; /* Supported compressions */
BYTE comp; /* Override compression */
int compparm; /* Override compression parm */
LOCK gclock; /* Garbage collector lock */
COND gccond; /* Garbage collector cond */
int gcs; /* Number garbage collector threads started */
int gca; /* Number garbage collector threads active */
int gcmax; /* Max garbage collectors */
int gcint; /* Wait time in seconds */
int gcparm; /* Adjustment parm */
LOCK wrlock; /* I/O lock */
COND wrcond; /* I/O condition */
int wrpending; /* Number writes pending */
int wrwaiting; /* Number writers waiting */
int wrs; /* Number writer threads started */
int wra; /* Number writer threads active */
int wrmax; /* Max writer threads */
int wrprio; /* Writer thread priority */
LOCK ralock; /* Readahead lock */
COND racond; /* Readahead condition */
int ras; /* Number readahead threads started */
int raa; /* Number readadead threads active */
int ramax; /* Max readahead threads */
int rawaiting; /* Number threads waiting */
int ranbr; /* Readahead queue size */
int readaheads; /* Nbr tracks to read ahead */
CCKD_RA ra[CCKD_MAX_RA_SIZE]; /* Readahead queue */
int ra1st; /* First readahead entry */
int ralast; /* Last readahead entry */
int rafree; /* Free readahead entry */
LOCK devlock; /* Device chain lock */
COND devcond; /* Device chain condition */
int devusers; /* Number shared users */
int devwaiters; /* Number of waiters */
int freepend; /* Number freepend cycles */
int gcmsgs; /* Garbage collector msgs */
int nosfd; /* 1=No stats rpt at close */
int nostress; /* 1=No stress writes */
int linuxnull; /* 1=Always check nulltrk */
int fsync; /* 1=Perform fsync() */
COND termcond; /* Termination condition */
U64 stats_switches; /* Switches */
U64 stats_cachehits; /* Cache hits */
U64 stats_cachemisses; /* Cache misses */
U64 stats_readaheads; /* Readaheads */
U64 stats_readaheadmisses;/* Readahead misses */
U64 stats_iowaits; /* Waits for i/o */
U64 stats_cachewaits; /* Waits for cache */
U64 stats_stresswrites; /* Writes under stress*/
U64 stats_l2cachehits; /* L2 cache hits */
U64 stats_l2cachemisses; /* L2 cache misses */
U64 stats_l2reads; /* L2 reads */
U64 stats_reads; /* Number reads */
U64 stats_readbytes; /* Bytes read */
U64 stats_writes; /* Number writes */
U64 stats_writebytes; /* Bytes written */
U64 stats_gcolmoves; /* Spaces moved */
U64 stats_gcolbytes; /* Bytes moved */
LOCK trclock; /* Internal trace table lock */
CCKD_ITRACE *itrace; /* Internal trace table */
CCKD_ITRACE *itracep; /* Current pointer */
CCKD_ITRACE *itracex; /* End of trace table */
int itracen; /* Table size in #of entries */
int itracec; /* How many entries are used */
int bytemsgs; /* Limit for `byte 0' msgs */
};
#define OBTAIN_TRACE_LOCK() obtain_lock( &cckdblk.trclock )
#define RELEASE_TRACE_LOCK() release_lock( &cckdblk.trclock )
#define CCKD_TRACE( fmt, ... ) \
cckd_trace( __FUNCTION__, __LINE__, dev, fmt, ## __VA_ARGS__ )
/*-------------------------------------------------------------------*/
/* CCKD Extension Block */
/*-------------------------------------------------------------------*/
struct CCKD_EXT { /* Ext for compressed ckd */
DEVBLK *devnext; /* cckd device queue */
unsigned int ckddasd:1, /* 1=CKD dasd */
fbadasd:1, /* 1=FBA dasd */
cckdioact:1, /* 1=Channel program active */
bufused:1, /* 1=newbuf was used */
updated:1, /* 1=Update occurred */
merging:1, /* 1=File merge in progress */
stopping:1, /* 1=Device is closing */
notnull:1, /* 1=Device has track images */
L2ok:1, /* 1=All l2s below bounds */
sfmerge:1, /* 1=sf-xxxx merge */
sfforce:1; /* 1=sf-xxxx force */
int sflevel; /* sfk xxxx level */
LOCK filelock; /* File lock */
LOCK cckdiolock; /* I/O lock */
COND cckdiocond; /* I/O condition */
U64 cckd_maxsize; /* Maximum file size */
int cckdwaiters; /* Number I/O waiters */
int wrpending; /* Number writes pending */
int ras; /* Number readaheads active */
int sfn; /* Number active shadow files*/
int sfx; /* Active level 2 file index */
int L1idx; /* Active level 2 table index*/
CCKD_L2ENT *L2tab; /* Active level 2 table */
int L2_active; /* Active level 2 cache entry*/
U64 L2_bounds; /* L2 tables boundary */
int active; /* Active cache entry */
BYTE *newbuf; /* Uncompressed buffer */
CCKD_IFREEBLK *ifb; /* Internal free space chain */
int free_count; /* Number of entries in chain*/
int free_idx1st; /* Index of 1st entry */
int free_idxlast; /* Index of last entry */
int free_idxavail; /* Index of available entry */
unsigned int free_minsize; /* Minimum free space size */
int lastsync; /* Time of last sync */
int ralkup[CCKD_MAX_RA_SIZE];/* Lookup table */
int ratrk; /* Track to readahead */
unsigned int totreads; /* Total nbr trk reads */
unsigned int totwrites; /* Total nbr trk writes */
unsigned int totl2reads; /* Total nbr l2 reads */
unsigned int cachehits; /* Cache hits */
unsigned int readaheads; /* Number trks read ahead */
unsigned int switches; /* Number trk switches */
unsigned int misses; /* Number readahead misses */
int fd[CCKD_MAX_SF+1]; /* File descriptors */
BYTE swapend[CCKD_MAX_SF+1]; /* Swap endian flag */
BYTE open[CCKD_MAX_SF+1]; /* Open flag */
int reads[CCKD_MAX_SF+1]; /* Nbr track reads */
int L2_reads[CCKD_MAX_SF+1];/* Nbr l2 reads */
int writes[CCKD_MAX_SF+1]; /* Nbr track writes */
CCKD_L1ENT *L1tab[CCKD_MAX_SF+1]; /* Level 1 tables */
CCKD_DEVHDR cdevhdr[CCKD_MAX_SF+1]; /* cckd device hdr */
};
#define CCKD_MIN_FREESIZE( free_count ) (CCKD_FREE_MIN_SIZE + \
free_count < CCKD_IFB_ENTS_INCR ? 0 : \
(free_count / CCKD_IFB_ENTS_INCR) * CCKD_FREE_MIN_INCR)
#define CCKD_OPEN_NONE 0
#define CCKD_OPEN_RO 1
#define CCKD_OPEN_RD 2
#define CCKD_OPEN_RW 3
/*-------------------------------------------------------------------*/
/* Space table */
/*-------------------------------------------------------------------*/
struct SPCTAB
{
BYTE spc_typ; /* Type of space */
int spc_val; /* Value for space */
int spc_val2; /* Another value for space */
U32 spc_off; /* Space offset */
U32 spc_len; /* Space length */
U32 spc_siz; /* Space size */
};
#define SPCTAB_NONE 0 /* Ignore this space entry */
#define SPCTAB_DEVHDR 1 /* Space is device header */
#define SPCTAB_CDEVHDR 2 /* Space is compressed hdr */
#define SPCTAB_L1 3 /* Space is level 1 table */
#define SPCTAB_L2 4 /* Space is level 2 table */
#define SPCTAB_TRK 5 /* Space is track image */
#define SPCTAB_BLKGRP 6 /* Space is blkgrp image */
#define SPCTAB_FREE 7 /* Space is free block */
#define SPCTAB_EOF 8 /* Space is end-of-file */
#define SPCTAB_L2LOWER 9 /* Space is L2 lower bound */
#define SPCTAB_L2UPPER 10 /* Space is L2 upper bound */
#define SPCTAB_DATA 11 /* Space is track/block data */
#define SPCTAB_UNKNOWN 12 /* Unknown space */
/*-------------------------------------------------------------------*/
/* Definitions for sense data format codes and message codes */
/*-------------------------------------------------------------------*/
#define FORMAT_0 0 /* Program or System Checks */
#define FORMAT_1 1 /* Device Equipment Checks */
#define FORMAT_2 2 /* 3990 Equipment Checks */
#define FORMAT_3 3 /* 3990 Control Checks */
#define FORMAT_4 4 /* Data Checks */
#define FORMAT_5 5 /* Data Check + Displacement */
#define FORMAT_6 6 /* Usage Stats/Overrun Errors*/
#define FORMAT_7 7 /* Device Control Checks */
#define FORMAT_8 8 /* Device Equipment Checks */
#define FORMAT_9 9 /* Device Rd/Wrt/Seek Checks */
#define FORMAT_F 15 /* Cache Storage Checks */
#define MESSAGE_0 0 /* Message 0 */
#define MESSAGE_1 1 /* Message 1 */
#define MESSAGE_2 2 /* Message 2 */
#define MESSAGE_3 3 /* Message 3 */
#define MESSAGE_4 4 /* Message 4 */
#define MESSAGE_5 5 /* Message 5 */
#define MESSAGE_6 6 /* Message 6 */
#define MESSAGE_7 7 /* Message 7 */
#define MESSAGE_8 8 /* Message 8 */
#define MESSAGE_9 9 /* Message 9 */
#define MESSAGE_A 10 /* Message A */
#define MESSAGE_B 11 /* Message B */
#define MESSAGE_C 12 /* Message C */
#define MESSAGE_D 13 /* Message D */
#define MESSAGE_E 14 /* Message E */
#define MESSAGE_F 15 /* Message F */
/*-------------------------------------------------------------------*/
/* CCKD64 structs and definitions */
/*-------------------------------------------------------------------*/
#include "cckd64.h" /* 64-bit CCKD64 structs/constants */
#endif // _CCKD_H_