Revision a8170e5e hw/smc91c111.c

b/hw/smc91c111.c
276 276
#define SET_LOW(name, val) s->name = (s->name & 0xff00) | val
277 277
#define SET_HIGH(name, val) s->name = (s->name & 0xff) | (val << 8)
278 278

  
279
static void smc91c111_writeb(void *opaque, target_phys_addr_t offset,
279
static void smc91c111_writeb(void *opaque, hwaddr offset,
280 280
                             uint32_t value)
281 281
{
282 282
    smc91c111_state *s = (smc91c111_state *)opaque;
......
451 451
    hw_error("smc91c111_write: Bad reg %d:%x\n", s->bank, (int)offset);
452 452
}
453 453

  
454
static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset)
454
static uint32_t smc91c111_readb(void *opaque, hwaddr offset)
455 455
{
456 456
    smc91c111_state *s = (smc91c111_state *)opaque;
457 457

  
......
595 595
    return 0;
596 596
}
597 597

  
598
static void smc91c111_writew(void *opaque, target_phys_addr_t offset,
598
static void smc91c111_writew(void *opaque, hwaddr offset,
599 599
                             uint32_t value)
600 600
{
601 601
    smc91c111_writeb(opaque, offset, value & 0xff);
602 602
    smc91c111_writeb(opaque, offset + 1, value >> 8);
603 603
}
604 604

  
605
static void smc91c111_writel(void *opaque, target_phys_addr_t offset,
605
static void smc91c111_writel(void *opaque, hwaddr offset,
606 606
                             uint32_t value)
607 607
{
608 608
    /* 32-bit writes to offset 0xc only actually write to the bank select
......
612 612
    smc91c111_writew(opaque, offset + 2, value >> 16);
613 613
}
614 614

  
615
static uint32_t smc91c111_readw(void *opaque, target_phys_addr_t offset)
615
static uint32_t smc91c111_readw(void *opaque, hwaddr offset)
616 616
{
617 617
    uint32_t val;
618 618
    val = smc91c111_readb(opaque, offset);
......
620 620
    return val;
621 621
}
622 622

  
623
static uint32_t smc91c111_readl(void *opaque, target_phys_addr_t offset)
623
static uint32_t smc91c111_readl(void *opaque, hwaddr offset)
624 624
{
625 625
    uint32_t val;
626 626
    val = smc91c111_readw(opaque, offset);

Also available in: Unified diff