qemu/include/hw/nvram
Peter Delevoryas 9f782e9e82 hw/nvram/eeprom_at24c: Add init_rom field and at24c_eeprom_init_rom helper
Allows users to specify binary data to initialize an EEPROM, allowing users to
emulate data programmed at manufacturing time.

- Added init_rom and init_rom_size attributes to TYPE_AT24C_EE
- Added at24c_eeprom_init_rom helper function to initialize attributes
- If -drive property is provided, it overrides init_rom data

Signed-off-by: Peter Delevoryas <peter@pjd.dev>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Ninad Palsule <ninadpalsule@us.ibm.com>
Link: https://lore.kernel.org/r/20230128060543.95582-4-peter@pjd.dev
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2023-02-07 09:02:04 +01:00
..
chrp_nvram.h nvram: Exit QEMU if NVRAM cannot contain all -prom-env data 2020-08-14 13:34:31 +10:00
eeprom93xx.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
eeprom_at24c.h hw/nvram/eeprom_at24c: Add init_rom field and at24c_eeprom_init_rom helper 2023-02-07 09:02:04 +01:00
fw_cfg.h x86: don't let decompressed kernel image clobber setup_data 2023-01-28 06:21:29 -05:00
mac_nvram.h mac_nvram: Use NVRAM_SIZE constant 2022-10-31 18:48:23 +00:00
npcm7xx_otp.h hw/nvram: NPCM7xx OTP device model 2020-09-14 14:24:59 +01:00
nrf51_nvm.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
sun_nvram.h nvram: Rename openbios_firmware_abi.h into sun_nvram.h 2016-10-28 09:36:58 +11:00
xlnx-bbram.h hw/nvram: Introduce Xilinx battery-backed ram 2021-09-30 13:42:10 +01:00
xlnx-efuse.h hw/nvram: Introduce Xilinx eFuse QOM 2021-09-30 13:42:09 +01:00
xlnx-versal-efuse.h hw/nvram: Introduce Xilinx Versal eFuse device 2021-09-30 13:42:10 +01:00
xlnx-zynqmp-efuse.h hw/nvram: Introduce Xilinx ZynqMP eFuse device 2021-09-30 13:42:10 +01:00