Modules - Adding rewrite of the FDD driver
[tpg/acess2.git] / Modules / Storage / FDDv2 / common.h
1 /*
2  * Acess2 82077AA FDC
3  * - By John Hodge (thePowersGang)
4  *
5  * common.h
6  * - Common definitions
7  */
8 #ifndef _FDC_COMMON_H_
9 #define _FDC_COMMON_H_
10
11 // === CONSTANTS ===
12 #define MAX_DISKS       8       // 4 per controller, 2 controllers
13 #define TRACKS_PER_DISK (1440*2/18)
14 #define BYTES_PER_TRACK (18*512)
15
16 // === TYPEDEFS ===
17 typedef struct sFDD_Drive       tDrive;
18
19 // === STRUCTURES ===
20 struct sFDD_Drive
21 {
22          int    bInserted;
23          int    MotorState;
24          int    Timer;
25         
26         void    *TrackData[TRACKS_PER_DISK];    // Whole tracks are read
27 };
28
29 // === FUNCTIONS ===
30 extern void     FDD_int_IRQHandler(int IRQ, void *Ptr);
31
32 // === GLOBALS ===
33 extern tDrive   gaFDD_Disks[MAX_DISKS];
34
35 #endif
36

UCC git Repository :: git.ucc.asn.au