Revision c227f099 hw/smc91c111.c
b/hw/smc91c111.c | ||
---|---|---|
245 | 245 |
#define SET_LOW(name, val) s->name = (s->name & 0xff00) | val |
246 | 246 |
#define SET_HIGH(name, val) s->name = (s->name & 0xff) | (val << 8) |
247 | 247 |
|
248 |
static void smc91c111_writeb(void *opaque, a_target_phys_addr offset,
|
|
248 |
static void smc91c111_writeb(void *opaque, target_phys_addr_t offset,
|
|
249 | 249 |
uint32_t value) |
250 | 250 |
{ |
251 | 251 |
smc91c111_state *s = (smc91c111_state *)opaque; |
... | ... | |
417 | 417 |
hw_error("smc91c111_write: Bad reg %d:%x\n", s->bank, (int)offset); |
418 | 418 |
} |
419 | 419 |
|
420 |
static uint32_t smc91c111_readb(void *opaque, a_target_phys_addr offset)
|
|
420 |
static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset)
|
|
421 | 421 |
{ |
422 | 422 |
smc91c111_state *s = (smc91c111_state *)opaque; |
423 | 423 |
|
... | ... | |
558 | 558 |
return 0; |
559 | 559 |
} |
560 | 560 |
|
561 |
static void smc91c111_writew(void *opaque, a_target_phys_addr offset,
|
|
561 |
static void smc91c111_writew(void *opaque, target_phys_addr_t offset,
|
|
562 | 562 |
uint32_t value) |
563 | 563 |
{ |
564 | 564 |
smc91c111_writeb(opaque, offset, value & 0xff); |
565 | 565 |
smc91c111_writeb(opaque, offset + 1, value >> 8); |
566 | 566 |
} |
567 | 567 |
|
568 |
static void smc91c111_writel(void *opaque, a_target_phys_addr offset,
|
|
568 |
static void smc91c111_writel(void *opaque, target_phys_addr_t offset,
|
|
569 | 569 |
uint32_t value) |
570 | 570 |
{ |
571 | 571 |
/* 32-bit writes to offset 0xc only actually write to the bank select |
... | ... | |
575 | 575 |
smc91c111_writew(opaque, offset + 2, value >> 16); |
576 | 576 |
} |
577 | 577 |
|
578 |
static uint32_t smc91c111_readw(void *opaque, a_target_phys_addr offset)
|
|
578 |
static uint32_t smc91c111_readw(void *opaque, target_phys_addr_t offset)
|
|
579 | 579 |
{ |
580 | 580 |
uint32_t val; |
581 | 581 |
val = smc91c111_readb(opaque, offset); |
... | ... | |
583 | 583 |
return val; |
584 | 584 |
} |
585 | 585 |
|
586 |
static uint32_t smc91c111_readl(void *opaque, a_target_phys_addr offset)
|
|
586 |
static uint32_t smc91c111_readl(void *opaque, target_phys_addr_t offset)
|
|
587 | 587 |
{ |
588 | 588 |
uint32_t val; |
589 | 589 |
val = smc91c111_readw(opaque, offset); |
Also available in: Unified diff