static void cmd646_cmd_write(void *opaque, target_phys_addr_t addr, uint64_t data, unsigned size) { CMD646BAR *cmd646bar = opaque; if (addr != 2 || size != 1) { return; } ide_cmd_write(cmd646bar->bus, addr + 2, data); }
static void pc98_ide_digital_write(void *opaque, uint32_t addr, uint32_t val) { PC98IDEState *s = opaque; uint8_t prev = s->cur_bus->cmd; ide_cmd_write(s->cur_bus, addr, val); if ((prev & IDE_CMD_RESET) != (val & IDE_CMD_RESET)) { s->cur_bus->ifs[0].status = READY_STAT | SEEK_STAT; s->cur_bus->ifs[1].status = READY_STAT | SEEK_STAT; } }
static void mmio_ide_cmd_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { MMIOState *s = opaque; ide_cmd_write(&s->bus, 0, val); }
static void mmio_ide_cmd_write (void *opaque, target_phys_addr_t addr, uint32_t val) { MMIOState *s = opaque; ide_cmd_write(&s->bus, 0, val); }