From 1be9af3746ac6b79b430d7eb80b3916356f9ed11 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Thu, 11 Aug 2022 22:20:36 -0400 Subject: [PATCH] 3 more SST flash devices --- src/include/86box/flash.h | 3 +++ src/mem/sst_flash.c | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/src/include/86box/flash.h b/src/include/86box/flash.h index 376dde6f4..17c8e31ed 100644 --- a/src/include/86box/flash.h +++ b/src/include/86box/flash.h @@ -31,10 +31,13 @@ extern const device_t sst_flash_39sf020_device; extern const device_t sst_flash_39sf040_device; extern const device_t sst_flash_49lf002_device; +extern const device_t sst_flash_49lf020_device; extern const device_t sst_flash_49lf003_device; extern const device_t sst_flash_49lf030_device; extern const device_t sst_flash_49lf004_device; +extern const device_t sst_flash_49lf040_device; extern const device_t sst_flash_49lf008_device; +extern const device_t sst_flash_49lf080_device; extern const device_t sst_flash_49lf016_device; extern const device_t sst_flash_49lf160_device; diff --git a/src/mem/sst_flash.c b/src/mem/sst_flash.c index af3ae4cfb..c553cd2f4 100644 --- a/src/mem/sst_flash.c +++ b/src/mem/sst_flash.c @@ -81,9 +81,12 @@ static char flash_path[1024]; #define SST39SF040 0xb700 #define SST49LF002 0x5700 +#define SST49LF020 0x5200 #define SST49LF003 0x1b00 #define SST49LF004 0x6000 +#define SST49LF040 0x5100 #define SST49LF008 0x5a00 +#define SST49LF080 0x5b00 #define SST49LF030 0x1c00 #define SST49LF160 0x4c00 #define SST49LF016 0x5c00 @@ -583,6 +586,7 @@ const device_t sst_flash_39sf040_device = { * implementation. We just contain the ID's so the BIOS can do ESCD & DMI writes with no * worries. */ + const device_t sst_flash_49lf002_device = { .name = "SST 49LF002 Firmware Hub", .internal_name = "sst_flash_49lf002", @@ -597,6 +601,20 @@ const device_t sst_flash_49lf002_device = { .config = NULL }; +const device_t sst_flash_49lf020_device = { + .name = "SST 49LF020 Firmware Hub", + .internal_name = "sst_flash_49lf0020", + .flags = 0, + .local = SST | SST49LF020 | SIZE_2M, + .init = sst_init, + .close = sst_close, + .reset = NULL, + { .available = NULL }, + .speed_changed = NULL, + .force_redraw = NULL, + .config = NULL +}; + const device_t sst_flash_49lf003_device = { .name = "SST 49LF003 Firmware Hub", .internal_name = "sst_flash_49lf003", @@ -639,6 +657,20 @@ const device_t sst_flash_49lf004_device = { .config = NULL }; +const device_t sst_flash_49lf040_device = { + .name = "SST 49LF040 Firmware Hub", + .internal_name = "sst_flash_49lf040", + .flags = 0, + .local = SST | SST49LF040 | SIZE_4M, + .init = sst_init, + .close = sst_close, + .reset = NULL, + { .available = NULL }, + .speed_changed = NULL, + .force_redraw = NULL, + .config = NULL +}; + const device_t sst_flash_49lf008_device = { .name = "SST 49LF008 Firmware Hub", .internal_name = "sst_flash_49lf008", @@ -653,6 +685,20 @@ const device_t sst_flash_49lf008_device = { .config = NULL }; +const device_t sst_flash_49lf080_device = { + .name = "SST 49LF080 Firmware Hub", + .internal_name = "sst_flash_49lf080", + .flags = 0, + .local = SST | SST49LF080 | SIZE_8M, + .init = sst_init, + .close = sst_close, + .reset = NULL, + { .available = NULL }, + .speed_changed = NULL, + .force_redraw = NULL, + .config = NULL +}; + const device_t sst_flash_49lf016_device = { .name = "SST 49LF016 Firmware Hub", .internal_name = "sst_flash_49lf016",