Revision 99a0949b hw/jazz_led.c

b/hw/jazz_led.c
31 31

  
32 32
typedef enum {
33 33
    REDRAW_NONE = 0, REDRAW_SEGMENTS = 1, REDRAW_BACKGROUND = 2,
34
} screen_state_t;
34
} e_screen_state;
35 35

  
36 36
typedef struct LedState {
37 37
    uint8_t segments;
38 38
    DisplayState *ds;
39
    screen_state_t state;
39
    e_screen_state state;
40 40
} LedState;
41 41

  
42
static uint32_t led_readb(void *opaque, target_phys_addr_t addr)
42
static uint32_t led_readb(void *opaque, a_target_phys_addr addr)
43 43
{
44 44
    LedState *s = opaque;
45 45
    uint32_t val;
......
58 58
    return val;
59 59
}
60 60

  
61
static uint32_t led_readw(void *opaque, target_phys_addr_t addr)
61
static uint32_t led_readw(void *opaque, a_target_phys_addr addr)
62 62
{
63 63
    uint32_t v;
64 64
#ifdef TARGET_WORDS_BIGENDIAN
......
71 71
    return v;
72 72
}
73 73

  
74
static uint32_t led_readl(void *opaque, target_phys_addr_t addr)
74
static uint32_t led_readl(void *opaque, a_target_phys_addr addr)
75 75
{
76 76
    uint32_t v;
77 77
#ifdef TARGET_WORDS_BIGENDIAN
......
88 88
    return v;
89 89
}
90 90

  
91
static void led_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
91
static void led_writeb(void *opaque, a_target_phys_addr addr, uint32_t val)
92 92
{
93 93
    LedState *s = opaque;
94 94

  
......
105 105
    }
106 106
}
107 107

  
108
static void led_writew(void *opaque, target_phys_addr_t addr, uint32_t val)
108
static void led_writew(void *opaque, a_target_phys_addr addr, uint32_t val)
109 109
{
110 110
#ifdef TARGET_WORDS_BIGENDIAN
111 111
    led_writeb(opaque, addr, (val >> 8) & 0xff);
......
116 116
#endif
117 117
}
118 118

  
119
static void led_writel(void *opaque, target_phys_addr_t addr, uint32_t val)
119
static void led_writel(void *opaque, a_target_phys_addr addr, uint32_t val)
120 120
{
121 121
#ifdef TARGET_WORDS_BIGENDIAN
122 122
    led_writeb(opaque, addr, (val >> 24) & 0xff);
......
282 282
    printf("jazz_led_screen_dump() not implemented\n");
283 283
}
284 284

  
285
static void jazz_led_text_update(void *opaque, console_ch_t *chardata)
285
static void jazz_led_text_update(void *opaque, a_console_ch *chardata)
286 286
{
287 287
    LedState *s = opaque;
288 288
    char buf[2];
......
298 298
    dpy_update(s->ds, 0, 0, 2, 1);
299 299
}
300 300

  
301
void jazz_led_init(target_phys_addr_t base)
301
void jazz_led_init(a_target_phys_addr base)
302 302
{
303 303
    LedState *s;
304 304
    int io;

Also available in: Unified diff