Use a define for max FDC's

This commit is contained in:
Jasmine Iwanek
2024-07-20 20:02:34 -04:00
parent 680f65cf19
commit 7817336567
4 changed files with 5 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ int lastbyte = 0;
int floppymodified[4];
int floppyrate[4];
int fdc_current[2] = { 0, 0 };
int fdc_current[FDC_MAX] = { 0, 0 };
#ifdef ENABLE_FDC_LOG
int fdc_do_log = ENABLE_FDC_LOG;

View File

@@ -113,7 +113,7 @@ typedef struct config_t {
# endif
/* Other peripherals category */
int fdc_current[2]; /* Floppy disk controller type */
int fdc_current[FDC_MAX]; /* Floppy disk controller type */
int hdc_current[2]; /* Hard disk controller type */
int hdc; /* Hard disk controller */
int scsi_card; /* SCSI controller */

View File

@@ -22,8 +22,6 @@
#ifndef EMU_FDC_H
#define EMU_FDC_H
extern int fdc_current[2];
#define FDC_PRIMARY_ADDR 0x03f0
#define FDC_PRIMARY_IRQ 6
#define FDC_PRIMARY_DMA 2

View File

@@ -22,7 +22,9 @@
#ifndef EMU_FDC_EXT_H
#define EMU_FDC_EXT_H
extern int fdc_current[2];
#define FDC_MAX 2
extern int fdc_current[FDC_MAX];
/* Controller types. */
#define FDC_NONE 0