Project

General

Profile

Refactoring #391

Updated by Alexander Goncharov over 1 year ago

Move global singleton states into a struct and store within the `spi_master` / `opaque_master` / `par_master` data field for the life-time of the driver. 

 This is one of the steps on the way to move `*_master` data memory management behind the initialisation API.  

 List of programmers which need to be refactored: 
 * ~~atahpt~~ https://review.coreboot.org/c/flashrom/+/64963 
 * ~~atapromise~~ https://review.coreboot.org/c/flashrom/+/65706 atapromise 
 * atavia `*` 
 * ~~buspirate_spi~~ https://review.coreboot.org/c/flashrom/+/52958 
 * ch341a_spi `*` 
 * ~~dediprog~~ https://review.coreboot.org/c/flashrom/+/56414 
 * ~~developerbox_spi~~ https://review.coreboot.org/c/flashrom/+/54993 
 * ~~digilent_spi~~ https://review.coreboot.org/c/flashrom/+/54012 
 * ~~drkaiser~~ https://review.coreboot.org/c/flashrom/+/65194 
 * dummyflasher `*` 
 * ~~ft2232_spi~~ https://review.coreboot.org/c/flashrom/+/52256 
 * ~~gfxnvidia~~ https://review.coreboot.org/c/flashrom/+/65342 
 * internal `*` 
 * ~~it8212~~ https://review.coreboot.org/c/flashrom/+/65745 it8212 
 * ~~jlink_spi~~ https://review.coreboot.org/c/flashrom/+/52560 
 * ~~linux_mtd~~ https://review.coreboot.org/c/flashrom/+/53947  
 * ~~linux_spi~~ https://review.coreboot.org/c/flashrom/+/52285 
 * ~~lspcon_i2c_spi~~ https://review.coreboot.org/c/flashrom/+/56103 
 * ~~mediatek_i2c_spi~~ https://review.coreboot.org/c/flashrom/+/65746 mediatek_i2c_spi 
 * ~~mstarddc_spi~~ https://review.coreboot.org/c/flashrom/+/54033 
 * ni845x_spi 
 * ~~nic3com~~ https://review.coreboot.org/c/flashrom/+/55107 
 * ~~nicintel~~ https://review.coreboot.org/c/flashrom/+/65974 nicintel 
 * nicintel_eeprom 
 * ~~nicintel_spi~~ https://review.coreboot.org/c/flashrom/+/54995 
 * nicnatsemi 
 * ~~nicrealtek~~ https://review.coreboot.org/c/flashrom/+/55108 
 * ~~ogp_spi~~ https://review.coreboot.org/c/flashrom/+/54996 
 * ~~pickit2_spi~~ https://review.coreboot.org/c/flashrom/+/52774 
 * ~~pony_spi~~ https://review.coreboot.org/c/flashrom/+/54997 
 * ~~raiden_debug_spi~~ https://review.coreboot.org/c/flashrom/+/56103 
 * ~~rayer_spi~~ https://review.coreboot.org/c/flashrom/+/54998 
 * ~~realtek_mst_i2c_spi~~ https://review.coreboot.org/c/flashrom/+/56103 
 * satamv 
 * satasii 
 * serprog `*` 
 * ~~stlinkv3_spi~~ https://review.coreboot.org/c/flashrom/+/54042 
 * ~~usbblaster_spi~~ https://review.coreboot.org/c/flashrom/+/54044 

 `*` - non-trivial case, this programmer requires some tricks 
 

Back