static void lan9118_16bit_mode_write(void *opaque, target_phys_addr_t offset,

                                     uint64_t val, unsigned size)

{

    switch (size) {

    case 2:

        lan9118_writew(opaque, offset, (uint32_t)val);

        return;

    case 4:

        lan9118_writel(opaque, offset, val, size);

        return;

    }



    hw_error("lan9118_write: Bad size 0x%x\n", size);

}

static void lan9118_16bit_mode_write(void *opaque, target_phys_addr_t offset,

                                     uint64_t val, unsigned size)

{

    switch (size) {

    case 2:

        lan9118_writew(opaque, offset, (uint32_t)val);

        return;

    case 4:

        lan9118_writel(opaque, offset, val, size);

        return;

    }



    hw_error("lan9118_write: Bad size 0x%x\n", size);

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,

                                     uint64_t VAR_2, unsigned VAR_3)

{

    switch (VAR_3) {

    case 2:

        lan9118_writew(VAR_0, VAR_1, (uint32_t)VAR_2);

        return;

    case 4:

        lan9118_writel(VAR_0, VAR_1, VAR_2, VAR_3);

        return;

    }



    hw_error("lan9118_write: Bad VAR_3 0x%x\n", VAR_3);

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{ switch (VAR_3) { case 2:
lan9118_writew(VAR_0, VAR_1, (uint32_t)VAR_2); return; case 4:
lan9118_writel(VAR_0, VAR_1, VAR_2, VAR_3); return; } hw_error("lan9118_write: Bad VAR_3 0x%x\n", VAR_3); }