Revision 99a0949b hw/xilinx_timer.c
b/hw/xilinx_timer.c | ||
---|---|---|
66 | 66 |
struct xlx_timer *timers; |
67 | 67 |
}; |
68 | 68 |
|
69 |
static inline unsigned int timer_from_addr(target_phys_addr_t addr)
|
|
69 |
static inline unsigned int timer_from_addr(a_target_phys_addr addr)
|
|
70 | 70 |
{ |
71 | 71 |
/* Timers get a 4x32bit control reg area each. */ |
72 | 72 |
return addr >> 2; |
... | ... | |
86 | 86 |
qemu_set_irq(t->irq, !!irq); |
87 | 87 |
} |
88 | 88 |
|
89 |
static uint32_t timer_readl (void *opaque, target_phys_addr_t addr)
|
|
89 |
static uint32_t timer_readl (void *opaque, a_target_phys_addr addr)
|
|
90 | 90 |
{ |
91 | 91 |
struct timerblock *t = opaque; |
92 | 92 |
struct xlx_timer *xt; |
... | ... | |
135 | 135 |
} |
136 | 136 |
|
137 | 137 |
static void |
138 |
timer_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
|
|
138 |
timer_writel (void *opaque, a_target_phys_addr addr, uint32_t value)
|
|
139 | 139 |
{ |
140 | 140 |
struct timerblock *t = opaque; |
141 | 141 |
struct xlx_timer *xt; |
Also available in: Unified diff