Added the CMD640 (but the associated PB520R is not yet properly done, needs the 82091AA, so it's disabled until I implement it), fixed initialization of the IDE registers on the SMSC southbridge, bumped up the number of emulated serial ports to 4 (was 2), and added the ability to properly have multiple W83977's on a single machine.
This commit is contained in:
@@ -459,7 +459,7 @@ BEGIN
|
||||
PUSHBUTTON "Configure",IDC_CONFIGURE_NET,214,43,46,12
|
||||
END
|
||||
|
||||
DLG_CFG_PORTS DIALOG DISCARDABLE 97, 0, 267, 117
|
||||
DLG_CFG_PORTS DIALOG DISCARDABLE 97, 0, 267, 135
|
||||
STYLE DS_CONTROL | WS_CHILD
|
||||
FONT 9, "Segoe UI"
|
||||
BEGIN
|
||||
@@ -479,13 +479,17 @@ BEGIN
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,64,94,10
|
||||
CONTROL "Serial port 2",IDC_CHECK_SERIAL2,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,147,64,94,10
|
||||
CONTROL "Serial port 3",IDC_CHECK_SERIAL3,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,82,94,10
|
||||
CONTROL "Serial port 4",IDC_CHECK_SERIAL4,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,147,82,94,10
|
||||
|
||||
CONTROL "Parallel port 1",IDC_CHECK_PARALLEL1,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,82,94,10
|
||||
CONTROL "Parallel port 2",IDC_CHECK_PARALLEL2,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,147,82,94,10
|
||||
CONTROL "Parallel port 3",IDC_CHECK_PARALLEL3,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,100,94,10
|
||||
CONTROL "Parallel port 2",IDC_CHECK_PARALLEL2,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,147,100,94,10
|
||||
CONTROL "Parallel port 3",IDC_CHECK_PARALLEL3,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,118,94,10
|
||||
END
|
||||
|
||||
DLG_CFG_PERIPHERALS DIALOG DISCARDABLE 97, 0, 267, 220
|
||||
|
||||
@@ -647,7 +647,8 @@ HDDOBJ := hdd.o \
|
||||
hdc_xta.o \
|
||||
hdc_esdi_at.o hdc_esdi_mca.o \
|
||||
hdc_xtide.o hdc_ide.o \
|
||||
hdc_ide_opti611.o hdc_ide_sff8038i.o
|
||||
hdc_ide_opti611.o \
|
||||
hdc_ide_cmd640.o hdc_ide_sff8038i.o
|
||||
|
||||
CDROMOBJ := cdrom.o \
|
||||
cdrom_image_backend.o cdrom_image.o
|
||||
|
||||
@@ -94,7 +94,7 @@ static char temp_pcap_dev[522];
|
||||
|
||||
/* Ports category */
|
||||
static int temp_lpt_devices[3];
|
||||
static int temp_serial[2], temp_lpt[3];
|
||||
static int temp_serial[4], temp_lpt[3];
|
||||
|
||||
/* Other peripherals category */
|
||||
static int temp_fdc_card, temp_hdc, temp_scsi_card, temp_ide_ter, temp_ide_qua;
|
||||
@@ -262,7 +262,7 @@ win_settings_init(void)
|
||||
temp_lpt_devices[i] = lpt_ports[i].device;
|
||||
temp_lpt[i] = lpt_ports[i].enabled;
|
||||
}
|
||||
for (i = 0; i < 2; i++)
|
||||
for (i = 0; i < 4; i++)
|
||||
temp_serial[i] = serial_enabled[i];
|
||||
|
||||
/* Other peripherals category */
|
||||
@@ -372,7 +372,7 @@ win_settings_changed(void)
|
||||
i = i || (temp_lpt_devices[j] != lpt_ports[j].device);
|
||||
i = i || (temp_lpt[j] != lpt_ports[j].enabled);
|
||||
}
|
||||
for (j = 0; j < 2; j++)
|
||||
for (j = 0; j < 4; j++)
|
||||
i = i || (temp_serial[j] != serial_enabled[j]);
|
||||
|
||||
/* Peripherals category */
|
||||
@@ -484,7 +484,7 @@ win_settings_save(void)
|
||||
lpt_ports[i].device = temp_lpt_devices[i];
|
||||
lpt_ports[i].enabled = temp_lpt[i];
|
||||
}
|
||||
for (i = 0; i < 2; i++)
|
||||
for (i = 0; i < 4; i++)
|
||||
serial_enabled[i] = temp_serial[i];
|
||||
|
||||
/* Peripherals category */
|
||||
@@ -1563,7 +1563,7 @@ win_settings_ports_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
EnableWindow(h, temp_lpt[i] ? TRUE : FALSE);
|
||||
}
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
h=GetDlgItem(hdlg, IDC_CHECK_SERIAL1 + i);
|
||||
SendMessage(h, BM_SETCHECK, temp_serial[i], 0);
|
||||
}
|
||||
@@ -1602,7 +1602,7 @@ win_settings_ports_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
temp_lpt[i] = SendMessage(h, BM_GETCHECK, 0, 0);
|
||||
}
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
h = GetDlgItem(hdlg, IDC_CHECK_SERIAL1 + i);
|
||||
temp_serial[i] = SendMessage(h, BM_GETCHECK, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user