static void fw_cfg_comb_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { switch (size) { case 1: fw_cfg_write(opaque, (uint8_t)value); break; case 2: fw_cfg_select(opaque, (uint16_t)value); break; } }
static void fw_cfg_data_mem_write(void *opaque, u64 value) { fw_cfg_write(opaque, (u8)value); }
static void fw_cfg_data_mem_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { fw_cfg_write(opaque, (uint8_t)value); }
static void fw_cfg_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t value) { fw_cfg_write(opaque, (uint8_t)value); }
static void fw_cfg_io_writeb(void *opaque, uint32_t addr, uint32_t value) { fw_cfg_write(opaque, (uint8_t)value); }
static void fw_cfg_data_mem_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { fw_cfg_write(opaque, (uint8_t)value); }