static uint64_t openpic_src_read(void *opaque, uint64_t addr, unsigned len)

{

    OpenPICState *opp = opaque;

    uint32_t retval;

    int idx;



    DPRINTF("%s: addr %08x\n", __func__, addr);

    retval = 0xFFFFFFFF;

    if (addr & 0xF) {

        return retval;

    }

    addr = addr & 0xFFF0;

    idx = addr >> 5;

    if (addr & 0x10) {

        /* EXDE / IFEDE / IEEDE */

        retval = read_IRQreg_ide(opp, idx);

    } else {

        /* EXVP / IFEVP / IEEVP */

        retval = read_IRQreg_ipvp(opp, idx);

    }

    DPRINTF("%s: => %08x\n", __func__, retval);



    return retval;

}

static uint64_t openpic_src_read(void *opaque, uint64_t addr, unsigned len)

{

    OpenPICState *opp = opaque;

    uint32_t retval;

    int idx;



    DPRINTF("%s: addr %08x\n", __func__, addr);

    retval = 0xFFFFFFFF;

    if (addr & 0xF) {

        return retval;

    }

    addr = addr & 0xFFF0;

    idx = addr >> 5;

    if (addr & 0x10) {

        

        retval = read_IRQreg_ide(opp, idx);

    } else {

        

        retval = read_IRQreg_ipvp(opp, idx);

    }

    DPRINTF("%s: => %08x\n", __func__, retval);



    return retval;

}

    DPRINTF("%s: => %08x\n", __func__, retval);     DPRINTF("%s: addr %08x\n", __func__, addr);     DPRINTF("%s: => %08x\n", __func__, retval);     DPRINTF("%s: addr %08x\n", __func__, addr);     DPRINTF("%s: => %08x\n", __func__, retval);     DPRINTF("%s: => %08x\n", __func__, retval);
static uint64_t FUNC_0(void *opaque, uint64_t addr, unsigned len)

{

    OpenPICState *opp = opaque;

    uint32_t retval;

    int VAR_0;



    DPRINTF("%s: addr %08x\n", __func__, addr);

    retval = 0xFFFFFFFF;

    if (addr & 0xF) {

        return retval;

    }

    addr = addr & 0xFFF0;

    VAR_0 = addr >> 5;

    if (addr & 0x10) {

        

        retval = read_IRQreg_ide(opp, VAR_0);

    } else {

        

        retval = read_IRQreg_ipvp(opp, VAR_0);

    }

    DPRINTF("%s: => %08x\n", __func__, retval);



    return retval;

}

static uint64_t FUNC_0(void *opaque, uint64_t addr, unsigned len)
{ OpenPICState *opp = opaque; uint32_t retval; int VAR_0; DPRINTF("%s: addr %08x\n", __func__, addr); retval = 0xFFFFFFFF; if (addr & 0xF) { return retval; } addr = addr & 0xFFF0; VAR_0 = addr >> 5; if (addr & 0x10) { retval = read_IRQreg_ide(opp, VAR_0); } else { retval = read_IRQreg_ipvp(opp, VAR_0); } DPRINTF("%s: => %08x\n", __func__, retval); return retval; }