Revision c227f099 hw/omap_i2c.c
b/hw/omap_i2c.c | ||
---|---|---|
140 | 140 |
s->test = 0; |
141 | 141 |
} |
142 | 142 |
|
143 |
static uint32_t omap_i2c_read(void *opaque, a_target_phys_addr addr)
|
|
143 |
static uint32_t omap_i2c_read(void *opaque, target_phys_addr_t addr)
|
|
144 | 144 |
{ |
145 | 145 |
struct omap_i2c_s *s = (struct omap_i2c_s *) opaque; |
146 | 146 |
int offset = addr & OMAP_MPUI_REG_MASK; |
... | ... | |
238 | 238 |
return 0; |
239 | 239 |
} |
240 | 240 |
|
241 |
static void omap_i2c_write(void *opaque, a_target_phys_addr addr,
|
|
241 |
static void omap_i2c_write(void *opaque, target_phys_addr_t addr,
|
|
242 | 242 |
uint32_t value) |
243 | 243 |
{ |
244 | 244 |
struct omap_i2c_s *s = (struct omap_i2c_s *) opaque; |
... | ... | |
380 | 380 |
} |
381 | 381 |
} |
382 | 382 |
|
383 |
static void omap_i2c_writeb(void *opaque, a_target_phys_addr addr,
|
|
383 |
static void omap_i2c_writeb(void *opaque, target_phys_addr_t addr,
|
|
384 | 384 |
uint32_t value) |
385 | 385 |
{ |
386 | 386 |
struct omap_i2c_s *s = (struct omap_i2c_s *) opaque; |
... | ... | |
420 | 420 |
omap_badwidth_write16, |
421 | 421 |
}; |
422 | 422 |
|
423 |
struct omap_i2c_s *omap_i2c_init(a_target_phys_addr base,
|
|
423 |
struct omap_i2c_s *omap_i2c_init(target_phys_addr_t base,
|
|
424 | 424 |
qemu_irq irq, qemu_irq *dma, omap_clk clk) |
425 | 425 |
{ |
426 | 426 |
int iomemtype; |
Also available in: Unified diff