Esempio n. 1
0
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);
}
Esempio n. 2
0
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;
    }
}
Esempio n. 3
0
File: mmio.c Progetto: AlexHai/qemu
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);
}
Esempio n. 4
0
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);
}