static void pmac_ide_writew (void *opaque,

                             target_phys_addr_t addr, uint32_t val)

{

    MACIOIDEState *d = opaque;



    addr = (addr & 0xFFF) >> 4;

    val = bswap16(val);

    if (addr == 0) {

        ide_data_writew(&d->bus, 0, val);

    }

}

static void pmac_ide_writew (void *opaque,

                             target_phys_addr_t addr, uint32_t val)

{

    MACIOIDEState *d = opaque;



    addr = (addr & 0xFFF) >> 4;

    val = bswap16(val);

    if (addr == 0) {

        ide_data_writew(&d->bus, 0, val);

    }

}

static void FUNC_0 (void *VAR_0,

                             target_phys_addr_t VAR_1, uint32_t VAR_2)

{

    MACIOIDEState *d = VAR_0;



    VAR_1 = (VAR_1 & 0xFFF) >> 4;

    VAR_2 = bswap16(VAR_2);

    if (VAR_1 == 0) {

        ide_data_writew(&d->bus, 0, VAR_2);

    }

}

static void FUNC_0 (void *VAR_0,
target_phys_addr_t VAR_1, uint32_t VAR_2)
{ MACIOIDEState *d = VAR_0; VAR_1 = (VAR_1 & 0xFFF) >> 4; VAR_2 = bswap16(VAR_2); if (VAR_1 == 0) { ide_data_writew(&d->bus, 0, VAR_2); } }