Add mapper 406, together with generic self-flashing code.

This commit is contained in:
NewRisingSun
2025-04-24 23:43:08 +02:00
committed by LibretroAdmin
parent f922972898
commit a8b7a63536
5 changed files with 136 additions and 0 deletions

19
src/boards/flashrom.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef _FLASHROM_H
#define _FLASHROM_H
#include "mapinc.h"
uint8 flashrom_manufacturerID;
uint8 flashrom_modelID;
int flashrom_state;
uint32 flashrom_sectorSize;
int flashrom_timeOut;
uint32 flashrom_magicAddr1;
uint32 flashrom_magicAddr2;
uint32 flashrom_magicMask;
void flashrom_init (uint8, uint8, uint32, uint32, uint32, uint32);
uint8 flashrom_read (uint32);
void flashrom_write (uint32, uint8);
void FP_FASTAPASS(1) flashrom_cpuCycle(int);
#endif