mac_writereg(E1000State *s, int index, uint32_t val)

{

    uint32_t macaddr[2];



    s->mac_reg[index] = val;



    if (index == RA || index == RA + 1) {

        macaddr[0] = cpu_to_le32(s->mac_reg[RA]);

        macaddr[1] = cpu_to_le32(s->mac_reg[RA + 1]);

        qemu_format_nic_info_str(qemu_get_queue(s->nic), (uint8_t *)macaddr);

    }

}

mac_writereg(E1000State *s, int index, uint32_t val)

{

    uint32_t macaddr[2];



    s->mac_reg[index] = val;



    if (index == RA || index == RA + 1) {

        macaddr[0] = cpu_to_le32(s->mac_reg[RA]);

        macaddr[1] = cpu_to_le32(s->mac_reg[RA + 1]);

        qemu_format_nic_info_str(qemu_get_queue(s->nic), (uint8_t *)macaddr);

    }

}

FUNC_0(E1000State *VAR_0, int VAR_1, uint32_t VAR_2)

{

    uint32_t macaddr[2];



    VAR_0->mac_reg[VAR_1] = VAR_2;



    if (VAR_1 == RA || VAR_1 == RA + 1) {

        macaddr[0] = cpu_to_le32(VAR_0->mac_reg[RA]);

        macaddr[1] = cpu_to_le32(VAR_0->mac_reg[RA + 1]);

        qemu_format_nic_info_str(qemu_get_queue(VAR_0->nic), (uint8_t *)macaddr);

    }

}

FUNC_0(E1000State *VAR_0, int VAR_1, uint32_t VAR_2)
{ uint32_t macaddr[2]; VAR_0->mac_reg[VAR_1] = VAR_2; if (VAR_1 == RA || VAR_1 == RA + 1) { macaddr[0] = cpu_to_le32(VAR_0->mac_reg[RA]); macaddr[1] = cpu_to_le32(VAR_0->mac_reg[RA + 1]); qemu_format_nic_info_str(qemu_get_queue(VAR_0->nic), (uint8_t *)macaddr); } }