示例#1
0
文件: cmd646.c 项目: cornsea/qemu
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);
}
示例#2
0
文件: pc98.c 项目: h16o2u9u/rtoss
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;
    }
}
示例#3
0
文件: mmio.c 项目: 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);
}
示例#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);
}