e1000_mmio_read(void *opaque, target_phys_addr_t addr, unsigned size)

{

    E1000State *s = opaque;

    unsigned int index = (addr & 0x1ffff) >> 2;



    if (index < NREADOPS && macreg_readops[index])

    {

        return macreg_readops[index](s, index);

    }

    DBGOUT(UNKNOWN, "MMIO unknown read addr=0x%08x\n", index<<2);

    return 0;

}

e1000_mmio_read(void *opaque, target_phys_addr_t addr, unsigned size)

{

    E1000State *s = opaque;

    unsigned int index = (addr & 0x1ffff) >> 2;



    if (index < NREADOPS && macreg_readops[index])

    {

        return macreg_readops[index](s, index);

    }

    DBGOUT(UNKNOWN, "MMIO unknown read addr=0x%08x\n", index<<2);

    return 0;

}

FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, unsigned VAR_2)

{

    E1000State *s = VAR_0;

    unsigned int VAR_3 = (VAR_1 & 0x1ffff) >> 2;



    if (VAR_3 < NREADOPS && macreg_readops[VAR_3])

    {

        return macreg_readops[VAR_3](s, VAR_3);

    }

    DBGOUT(UNKNOWN, "MMIO unknown read VAR_1=0x%08x\n", VAR_3<<2);

    return 0;

}

FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, unsigned VAR_2)
{ E1000State *s = VAR_0; unsigned int VAR_3 = (VAR_1 & 0x1ffff) >> 2; if (VAR_3 < NREADOPS && macreg_readops[VAR_3])
{ return macreg_readops[VAR_3](s, VAR_3); } DBGOUT(UNKNOWN, "MMIO unknown read VAR_1=0x%08x\n", VAR_3<<2); return 0; }