Revision c227f099 hw/arm_gic.c
b/hw/arm_gic.c | ||
---|---|---|
238 | 238 |
} |
239 | 239 |
} |
240 | 240 |
|
241 |
static uint32_t gic_dist_readb(void *opaque, a_target_phys_addr offset)
|
|
241 |
static uint32_t gic_dist_readb(void *opaque, target_phys_addr_t offset)
|
|
242 | 242 |
{ |
243 | 243 |
gic_state *s = (gic_state *)opaque; |
244 | 244 |
uint32_t res; |
... | ... | |
348 | 348 |
return 0; |
349 | 349 |
} |
350 | 350 |
|
351 |
static uint32_t gic_dist_readw(void *opaque, a_target_phys_addr offset)
|
|
351 |
static uint32_t gic_dist_readw(void *opaque, target_phys_addr_t offset)
|
|
352 | 352 |
{ |
353 | 353 |
uint32_t val; |
354 | 354 |
val = gic_dist_readb(opaque, offset); |
... | ... | |
356 | 356 |
return val; |
357 | 357 |
} |
358 | 358 |
|
359 |
static uint32_t gic_dist_readl(void *opaque, a_target_phys_addr offset)
|
|
359 |
static uint32_t gic_dist_readl(void *opaque, target_phys_addr_t offset)
|
|
360 | 360 |
{ |
361 | 361 |
uint32_t val; |
362 | 362 |
#ifdef NVIC |
... | ... | |
371 | 371 |
return val; |
372 | 372 |
} |
373 | 373 |
|
374 |
static void gic_dist_writeb(void *opaque, a_target_phys_addr offset,
|
|
374 |
static void gic_dist_writeb(void *opaque, target_phys_addr_t offset,
|
|
375 | 375 |
uint32_t value) |
376 | 376 |
{ |
377 | 377 |
gic_state *s = (gic_state *)opaque; |
... | ... | |
509 | 509 |
hw_error("gic_dist_writeb: Bad offset %x\n", (int)offset); |
510 | 510 |
} |
511 | 511 |
|
512 |
static void gic_dist_writew(void *opaque, a_target_phys_addr offset,
|
|
512 |
static void gic_dist_writew(void *opaque, target_phys_addr_t offset,
|
|
513 | 513 |
uint32_t value) |
514 | 514 |
{ |
515 | 515 |
gic_dist_writeb(opaque, offset, value & 0xff); |
516 | 516 |
gic_dist_writeb(opaque, offset + 1, value >> 8); |
517 | 517 |
} |
518 | 518 |
|
519 |
static void gic_dist_writel(void *opaque, a_target_phys_addr offset,
|
|
519 |
static void gic_dist_writel(void *opaque, target_phys_addr_t offset,
|
|
520 | 520 |
uint32_t value) |
521 | 521 |
{ |
522 | 522 |
gic_state *s = (gic_state *)opaque; |
Also available in: Unified diff