Added a quaternary IDE controller on ports 1E8-1EF/3EE;

The tertiary and quaternary IDE controllers are now fully configurable;
The IRQ of the RTL8029AS network card is now configurable;
CopyQM floppy images are now supported.
This commit is contained in:
OBattler
2016-12-28 23:34:00 +01:00
parent ad1fd0a5f6
commit 17e2cd6776
13 changed files with 1072 additions and 1210 deletions

View File

@@ -522,7 +522,9 @@ typedef struct
uint32_t base;
} hard_disk_t;
hard_disk_t hdc[6];
#define IDE_NUM 8
hard_disk_t hdc[IDE_NUM];
uint64_t hdt[128][3];
@@ -535,7 +537,7 @@ int keybsenddelay;
/*CD-ROM*/
extern int cdrom_drive;
extern int old_cdrom_drive;
extern int idecallback[3];
extern int idecallback[4];
extern int cdrom_enabled;
extern int scsi_cdrom_enabled;
@@ -548,8 +550,6 @@ extern int scsi_cdrom_enabled;
extern uint32_t SCSIGetCDVolume(int channel);
extern uint32_t SCSIGetCDChannel(int channel);
extern int ide_ter_enabled;
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define ELEMENTS(Array) (sizeof(Array) / sizeof((Array)[0]))