Use a define for max FDC's
This commit is contained in:
@@ -77,7 +77,7 @@ int lastbyte = 0;
|
|||||||
int floppymodified[4];
|
int floppymodified[4];
|
||||||
int floppyrate[4];
|
int floppyrate[4];
|
||||||
|
|
||||||
int fdc_current[2] = { 0, 0 };
|
int fdc_current[FDC_MAX] = { 0, 0 };
|
||||||
|
|
||||||
#ifdef ENABLE_FDC_LOG
|
#ifdef ENABLE_FDC_LOG
|
||||||
int fdc_do_log = ENABLE_FDC_LOG;
|
int fdc_do_log = ENABLE_FDC_LOG;
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ typedef struct config_t {
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* Other peripherals category */
|
/* 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_current[2]; /* Hard disk controller type */
|
||||||
int hdc; /* Hard disk controller */
|
int hdc; /* Hard disk controller */
|
||||||
int scsi_card; /* SCSI controller */
|
int scsi_card; /* SCSI controller */
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
#ifndef EMU_FDC_H
|
#ifndef EMU_FDC_H
|
||||||
#define EMU_FDC_H
|
#define EMU_FDC_H
|
||||||
|
|
||||||
extern int fdc_current[2];
|
|
||||||
|
|
||||||
#define FDC_PRIMARY_ADDR 0x03f0
|
#define FDC_PRIMARY_ADDR 0x03f0
|
||||||
#define FDC_PRIMARY_IRQ 6
|
#define FDC_PRIMARY_IRQ 6
|
||||||
#define FDC_PRIMARY_DMA 2
|
#define FDC_PRIMARY_DMA 2
|
||||||
|
|||||||
@@ -22,7 +22,9 @@
|
|||||||
#ifndef EMU_FDC_EXT_H
|
#ifndef EMU_FDC_EXT_H
|
||||||
#define 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. */
|
/* Controller types. */
|
||||||
#define FDC_NONE 0
|
#define FDC_NONE 0
|
||||||
|
|||||||
Reference in New Issue
Block a user