This commit is contained in:
Jasmine Iwanek
2022-03-13 09:47:11 -04:00
parent 698b16a603
commit 438e05d100
4 changed files with 131 additions and 113 deletions

View File

@@ -242,14 +242,16 @@ catalyst_flash_close(void *p)
} }
const device_t catalyst_flash_device = const device_t catalyst_flash_device = {
{ .name = "Catalyst 28F010-D Flash BIOS",
"Catalyst 28F010-D Flash BIOS", .internal_name = "catalyst_flash",
"catalyst_flash", .flags = DEVICE_PCI,
DEVICE_PCI, .local = 0,
0, .init = catalyst_flash_init,
catalyst_flash_init, .close = catalyst_flash_close,
catalyst_flash_close, .reset = catalyst_flash_reset,
catalyst_flash_reset, { .available = NULL },
{ NULL }, NULL, NULL, NULL .speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
}; };

View File

@@ -560,40 +560,45 @@ intel_flash_close(void *p)
free(dev); free(dev);
} }
/* For AMI BIOS'es - Intel 28F001BXT with A16 pin inverted. */ /* For AMI BIOS'es - Intel 28F001BXT with A16 pin inverted. */
const device_t intel_flash_bxt_ami_device = const device_t intel_flash_bxt_ami_device = {
{ .name = "Intel 28F001BXT/28F002BXT/28F004BXT Flash BIOS",
"Intel 28F001BXT/28F002BXT/28F004BXT Flash BIOS", .internal_name = "intel_flash_bxt_ami",
"intel_flash_bxt_ami", .flags = DEVICE_PCI,
DEVICE_PCI, .local = FLAG_INV_A16,
FLAG_INV_A16, .init = intel_flash_init,
intel_flash_init, .close = intel_flash_close,
intel_flash_close, .reset = intel_flash_reset,
intel_flash_reset, { .available = NULL },
{ NULL }, NULL, NULL, NULL .speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
}; };
const device_t intel_flash_bxt_device = {
const device_t intel_flash_bxt_device = .name = "Intel 28F001BXT/28F002BXT/28F004BXT Flash BIOS",
{ .internal_name = "intel_flash_bxt",
"Intel 28F001BXT/28F002BXT/28F004BXT Flash BIOS", .flags = DEVICE_PCI,
"intel_flash_bxt", .local = 0,
DEVICE_PCI, 0, .init = intel_flash_init,
intel_flash_init, .close = intel_flash_close,
intel_flash_close, .reset = intel_flash_reset,
intel_flash_reset, { .available = NULL },
{ NULL }, NULL, NULL, NULL .speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
}; };
const device_t intel_flash_bxb_device = {
const device_t intel_flash_bxb_device = .name = "Intel 28F001BXB/28F002BXB/28F004BXB Flash BIOS",
{ .internal_name = "intel_flash_bxb",
"Intel 28F001BXB/28F002BXB/28F004BXB Flash BIOS", .flags = DEVICE_PCI,
"intel_flash_bxb", .local = FLAG_BXB,
DEVICE_PCI, FLAG_BXB, .init = intel_flash_init,
intel_flash_init, .close = intel_flash_close,
intel_flash_close, .reset = intel_flash_reset,
intel_flash_reset, { .available = NULL },
{ NULL }, NULL, NULL, NULL .speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
}; };

View File

@@ -578,11 +578,15 @@ spd_write_drbs_ali1621(uint8_t *regs, uint8_t reg_min, uint8_t reg_max)
static const device_t spd_device = { static const device_t spd_device = {
"Serial Presence Detect ROMs", .name = "Serial Presence Detect ROMs",
"spd", .internal_name = "spd",
DEVICE_ISA, .flags = DEVICE_ISA,
0, .local = 0,
spd_init, spd_close, NULL, .init = spd_init,
{ NULL }, NULL, NULL, .close = spd_close,
NULL .reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
}; };

View File

@@ -474,79 +474,86 @@ sst_close(void *p)
free(dev); free(dev);
} }
const device_t sst_flash_29ee010_device = {
const device_t sst_flash_29ee010_device = .name = "SST 29EE010 Flash BIOS",
{ .internal_name = "sst_flash_29ee010",
"SST 29EE010 Flash BIOS", .flags = 0,
"sst_flash_29ee010", .local = SST | SST29EE010 | SIZE_1M,
0, .init = sst_init,
SST | SST29EE010 | SIZE_1M, .close = sst_close,
sst_init, .reset = NULL,
sst_close, { .available = NULL },
NULL, .speed_changed = NULL,
{ NULL }, NULL, NULL, NULL .force_redraw = NULL,
.config = NULL
}; };
const device_t sst_flash_29ee020_device = {
const device_t sst_flash_29ee020_device = .name = "SST 29EE020 Flash BIOS",
{ .internal_name = "sst_flash_29ee020",
"SST 29EE020 Flash BIOS", .flags = 0,
"sst_flash_29ee020", .local = SST | SST29EE020 | SIZE_2M,
0, .init = sst_init,
SST | SST29EE020 | SIZE_2M, .close = sst_close,
sst_init, .reset = NULL,
sst_close, { .available = NULL },
NULL, .speed_changed = NULL,
{ NULL }, NULL, NULL, NULL .force_redraw = NULL,
.config = NULL
}; };
const device_t winbond_flash_w29c020_device = {
const device_t winbond_flash_w29c020_device = .name = "Winbond W29C020 Flash BIOS",
{ .internal_name = "winbond_flash_w29c020",
"Winbond W29C020 Flash BIOS", .flags = 0,
"winbond_flash_w29c020", .local = WINBOND | W29C020 | SIZE_2M,
0, .init = sst_init,
WINBOND | W29C020 | SIZE_2M, .close = sst_close,
sst_init, .reset = NULL,
sst_close, { .available = NULL },
NULL, .speed_changed = NULL,
{ NULL }, NULL, NULL, NULL .force_redraw = NULL,
.config = NULL
}; };
const device_t sst_flash_39sf010_device = {
const device_t sst_flash_39sf010_device = .name = "SST 39SF010 Flash BIOS",
{ .internal_name = "sst_flash_39sf010",
"SST 39SF010 Flash BIOS", .flags = 0,
"sst_flash_39sf010", .local = SST | SST39SF010 | SIZE_1M,
0, .init = sst_init,
SST | SST39SF010 | SIZE_1M, .close = sst_close,
sst_init, .reset = NULL,
sst_close, { .available = NULL },
NULL, .speed_changed = NULL,
{ NULL }, NULL, NULL, NULL .force_redraw = NULL,
.config = NULL
}; };
const device_t sst_flash_39sf020_device = {
const device_t sst_flash_39sf020_device = .name = "SST 39SF020 Flash BIOS",
{ .internal_name = "sst_flash_39sf020",
"SST 39SF020 Flash BIOS", .flags = 0,
"sst_flash_39sf020", .local = SST | SST39SF020 | SIZE_2M,
0, .init = sst_init,
SST | SST39SF020 | SIZE_2M, .close = sst_close,
sst_init, .reset = NULL,
sst_close, { .available = NULL },
NULL, .speed_changed = NULL,
{ NULL }, NULL, NULL, NULL .force_redraw = NULL,
.config = NULL
}; };
const device_t sst_flash_39sf040_device = const device_t sst_flash_39sf040_device = {
{ .name = "SST 39SF040 Flash BIOS",
"SST 39SF040 Flash BIOS", .internal_name = "sst_flash_39sf040",
"sst_flash_39sf040", .flags = 0,
0, .local = SST | SST39SF040 | SIZE_4M,
SST | SST39SF040 | SIZE_4M, .init = sst_init,
sst_init, .close = sst_close,
sst_close, .reset = NULL,
NULL, { .available = NULL },
{ NULL }, NULL, NULL, NULL .speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
}; };