e1000_mmio_read(void *opaque, hwaddr 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, hwaddr 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, hwaddr 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, hwaddr 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; }