Use a define for max HDC's
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
#include <86box/hdc_ide.h>
|
#include <86box/hdc_ide.h>
|
||||||
#include <86box/hdd.h>
|
#include <86box/hdd.h>
|
||||||
|
|
||||||
int hdc_current[2];
|
int hdc_current[HDC_MAX] = { 0, 0 };
|
||||||
|
|
||||||
#ifdef ENABLE_HDC_LOG
|
#ifdef ENABLE_HDC_LOG
|
||||||
int hdc_do_log = ENABLE_HDC_LOG;
|
int hdc_do_log = ENABLE_HDC_LOG;
|
||||||
|
@@ -114,7 +114,7 @@ typedef struct config_t {
|
|||||||
|
|
||||||
/* Other peripherals category */
|
/* Other peripherals category */
|
||||||
int fdc_current[FDC_MAX]; /* Floppy disk controller type */
|
int fdc_current[FDC_MAX]; /* Floppy disk controller type */
|
||||||
int hdc_current[2]; /* Hard disk controller type */
|
int hdc_current[HDC_MAX]; /* Hard disk controller type */
|
||||||
int hdc; /* Hard disk controller */
|
int hdc; /* Hard disk controller */
|
||||||
int scsi_card; /* SCSI controller */
|
int scsi_card; /* SCSI controller */
|
||||||
int ide_ter_enabled; /* Tertiary IDE controller enabled */
|
int ide_ter_enabled; /* Tertiary IDE controller enabled */
|
||||||
|
@@ -32,7 +32,9 @@
|
|||||||
#define HDC_NONE 0
|
#define HDC_NONE 0
|
||||||
#define HDC_INTERNAL 1
|
#define HDC_INTERNAL 1
|
||||||
|
|
||||||
extern int hdc_current[2];
|
#define HDC_MAX 2
|
||||||
|
|
||||||
|
extern int hdc_current[HDC_MAX];
|
||||||
|
|
||||||
extern const device_t st506_xt_xebec_device; /* st506_xt_xebec */
|
extern const device_t st506_xt_xebec_device; /* st506_xt_xebec */
|
||||||
extern const device_t st506_xt_wdxt_gen_device; /* st506_xt_wdxt_gen */
|
extern const device_t st506_xt_wdxt_gen_device; /* st506_xt_wdxt_gen */
|
||||||
|
Reference in New Issue
Block a user