e1000_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val,

                 unsigned size)

{

    E1000State *s = opaque;

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



    if (index < NWRITEOPS && macreg_writeops[index]) {

        macreg_writeops[index](s, index, val);

    } else if (index < NREADOPS && macreg_readops[index]) {

        DBGOUT(MMIO, "e1000_mmio_writel RO %x: 0x%04"PRIx64"\n", index<<2, val);

    } else {

        DBGOUT(UNKNOWN, "MMIO unknown write addr=0x%08x,val=0x%08"PRIx64"\n",

               index<<2, val);

    }

}

e1000_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val,

                 unsigned size)

{

    E1000State *s = opaque;

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



    if (index < NWRITEOPS && macreg_writeops[index]) {

        macreg_writeops[index](s, index, val);

    } else if (index < NREADOPS && macreg_readops[index]) {

        DBGOUT(MMIO, "e1000_mmio_writel RO %x: 0x%04"PRIx64"\n", index<<2, val);

    } else {

        DBGOUT(UNKNOWN, "MMIO unknown write addr=0x%08x,val=0x%08"PRIx64"\n",

               index<<2, val);

    }

}

FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2,

                 unsigned VAR_3)

{

    E1000State *s = VAR_0;

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



    if (VAR_4 < NWRITEOPS && macreg_writeops[VAR_4]) {

        macreg_writeops[VAR_4](s, VAR_4, VAR_2);

    } else if (VAR_4 < NREADOPS && macreg_readops[VAR_4]) {

        DBGOUT(MMIO, "e1000_mmio_writel RO %x: 0x%04"PRIx64"\n", VAR_4<<2, VAR_2);

    } else {

        DBGOUT(UNKNOWN, "MMIO unknown write VAR_1=0x%08x,VAR_2=0x%08"PRIx64"\n",

               VAR_4<<2, VAR_2);

    }

}

FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2,
unsigned VAR_3)
{ E1000State *s = VAR_0; unsigned int VAR_4 = (VAR_1 & 0x1ffff) >> 2; if (VAR_4 < NWRITEOPS && macreg_writeops[VAR_4]) { macreg_writeops[VAR_4](s, VAR_4, VAR_2); } else if (VAR_4 < NREADOPS && macreg_readops[VAR_4]) { DBGOUT(MMIO, "e1000_mmio_writel RO %x: 0x%04"PRIx64"\n", VAR_4<<2, VAR_2); } else { DBGOUT(UNKNOWN, "MMIO unknown write VAR_1=0x%08x,VAR_2=0x%08"PRIx64"\n",
VAR_4<<2, VAR_2); } }