Updated ROM BIOS handling to use the external loader.
Several cleanups and fixes here and there. Updated (Windows) UI to properly handle resets and changes in Settings. Updated to no longer scan for roms at startup.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* made by Adaptec, Inc. These controllers were designed for
|
||||
* the ISA bus.
|
||||
*
|
||||
* Version: @(#)scsi_aha154x.c 1.0.1 2018/02/14
|
||||
* Version: @(#)scsi_aha154x.c 1.0.2 2018/02/26
|
||||
*
|
||||
* Based on original code from TheCollector1995 and Miran Grca.
|
||||
*
|
||||
@@ -626,7 +626,7 @@ aha_setbios(x54x_t *dev)
|
||||
|
||||
/* Open the BIOS image file and make sure it exists. */
|
||||
aha_log("%s: loading BIOS from '%ls'\n", dev->name, dev->bios_path);
|
||||
if ((f = rom_fopen(dev->bios_path, L"rb")) == NULL) {
|
||||
if ((f = rom_fopen(dev->bios_path)) == NULL) {
|
||||
aha_log("%s: BIOS ROM not found!\n", dev->name);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* 1 - BT-545S ISA;
|
||||
* 2 - BT-958D PCI
|
||||
*
|
||||
* Version: @(#)scsi_buslogic.c 1.0.3 2018/02/22
|
||||
* Version: @(#)scsi_buslogic.c 1.0.4 2018/02/26
|
||||
*
|
||||
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -1620,7 +1620,7 @@ buslogic_init(device_t *info)
|
||||
rom_init(&bl->bios, bios_rom_name, bios_rom_addr, bios_rom_size, bios_rom_mask, 0, MEM_MAPPING_EXTERNAL);
|
||||
|
||||
if (has_autoscsi_rom) {
|
||||
f = rom_fopen(autoscsi_rom_name, L"rb");
|
||||
f = rom_fopen(autoscsi_rom_name);
|
||||
if (f) {
|
||||
fread(bl->AutoSCSIROM, 1, autoscsi_rom_size, f);
|
||||
fclose(f);
|
||||
@@ -1629,7 +1629,7 @@ buslogic_init(device_t *info)
|
||||
}
|
||||
|
||||
if (has_scam_rom) {
|
||||
f = rom_fopen(scam_rom_name, L"rb");
|
||||
f = rom_fopen(scam_rom_name);
|
||||
if (f) {
|
||||
fread(bl->SCAMData, 1, scam_rom_size, f);
|
||||
fclose(f);
|
||||
|
||||
Reference in New Issue
Block a user