refactored device_t and all declarations

This commit is contained in:
Jess Lovelace
2022-01-13 21:06:11 -05:00
parent 8bb18ef598
commit f18615ae87
219 changed files with 707 additions and 10 deletions

View File

@@ -245,6 +245,7 @@ catalyst_flash_close(void *p)
const device_t catalyst_flash_device =
{
"Catalyst 28F010-D Flash BIOS",
"catalyst_flash",
DEVICE_PCI,
0,
catalyst_flash_init,

View File

@@ -565,6 +565,7 @@ intel_flash_close(void *p)
const device_t intel_flash_bxt_ami_device =
{
"Intel 28F001BXT/28F002BXT/28F004BXT Flash BIOS",
"intel_flash_bxt_ami",
DEVICE_PCI,
FLAG_INV_A16,
intel_flash_init,
@@ -577,6 +578,7 @@ const device_t intel_flash_bxt_ami_device =
const device_t intel_flash_bxt_device =
{
"Intel 28F001BXT/28F002BXT/28F004BXT Flash BIOS",
"intel_flash_bxt",
DEVICE_PCI, 0,
intel_flash_init,
intel_flash_close,
@@ -588,6 +590,7 @@ const device_t intel_flash_bxt_device =
const device_t intel_flash_bxb_device =
{
"Intel 28F001BXB/28F002BXB/28F004BXB Flash BIOS",
"intel_flash_bxb",
DEVICE_PCI, FLAG_BXB,
intel_flash_init,
intel_flash_close,

View File

@@ -529,6 +529,7 @@ spd_write_drbs_ali1621(uint8_t *regs, uint8_t reg_min, uint8_t reg_max)
static const device_t spd_device = {
"Serial Presence Detect ROMs",
"spd",
DEVICE_ISA,
0,
spd_init, spd_close, NULL,

View File

@@ -478,6 +478,7 @@ sst_close(void *p)
const device_t sst_flash_29ee010_device =
{
"SST 29EE010 Flash BIOS",
"sst_flash_29ee010",
0,
SST | SST29EE010 | SIZE_1M,
sst_init,
@@ -490,6 +491,7 @@ const device_t sst_flash_29ee010_device =
const device_t sst_flash_29ee020_device =
{
"SST 29EE020 Flash BIOS",
"sst_flash_29ee020",
0,
SST | SST29EE020 | SIZE_2M,
sst_init,
@@ -502,6 +504,7 @@ const device_t sst_flash_29ee020_device =
const device_t winbond_flash_w29c020_device =
{
"Winbond W29C020 Flash BIOS",
"winbond_flash_w29c020",
0,
WINBOND | W29C020 | SIZE_2M,
sst_init,
@@ -514,6 +517,7 @@ const device_t winbond_flash_w29c020_device =
const device_t sst_flash_39sf010_device =
{
"SST 39SF010 Flash BIOS",
"sst_flash_39sf010",
0,
SST | SST39SF010 | SIZE_1M,
sst_init,
@@ -526,6 +530,7 @@ const device_t sst_flash_39sf010_device =
const device_t sst_flash_39sf020_device =
{
"SST 39SF020 Flash BIOS",
"sst_flash_39sf020",
0,
SST | SST39SF020 | SIZE_2M,
sst_init,
@@ -537,6 +542,7 @@ const device_t sst_flash_39sf020_device =
const device_t sst_flash_39sf040_device =
{
"SST 39SF040 Flash BIOS",
"sst_flash_39sf040",
0,
SST | SST39SF040 | SIZE_4M,
sst_init,