Revision 3023f332 hw/sm501.c
b/hw/sm501.c | ||
---|---|---|
450 | 450 |
typedef struct SM501State { |
451 | 451 |
/* graphic console status */ |
452 | 452 |
DisplayState *ds; |
453 |
QEMUConsole *console; |
|
454 | 453 |
|
455 | 454 |
/* status & internal resources */ |
456 | 455 |
target_phys_addr_t base; |
... | ... | |
994 | 993 |
|
995 | 994 |
/* adjust console size */ |
996 | 995 |
if (s->last_width != width || s->last_height != height) { |
997 |
qemu_console_resize(s->console, width, height);
|
|
996 |
qemu_console_resize(s->ds, width, height);
|
|
998 | 997 |
s->last_width = width; |
999 | 998 |
s->last_height = height; |
1000 | 999 |
full_update = 1; |
... | ... | |
1051 | 1050 |
sm501_draw_crt(s); |
1052 | 1051 |
} |
1053 | 1052 |
|
1054 |
void sm501_init(DisplayState *ds, uint32_t base, unsigned long local_mem_base,
|
|
1053 |
void sm501_init(uint32_t base, unsigned long local_mem_base, |
|
1055 | 1054 |
uint32_t local_mem_bytes, CharDriverState *chr) |
1056 | 1055 |
{ |
1057 | 1056 |
SM501State * s; |
... | ... | |
1069 | 1068 |
s->misc_control = 0x00001000; /* assumes SH, active=low */ |
1070 | 1069 |
s->dc_panel_control = 0x00010000; |
1071 | 1070 |
s->dc_crt_control = 0x00010000; |
1072 |
s->ds = ds; |
|
1073 | 1071 |
|
1074 | 1072 |
/* allocate local memory */ |
1075 | 1073 |
s->local_mem = (uint8 *)phys_ram_base + local_mem_base; |
... | ... | |
1093 | 1091 |
115200, chr, 1); |
1094 | 1092 |
|
1095 | 1093 |
/* create qemu graphic console */ |
1096 |
s->console = graphic_console_init(s->ds, sm501_update_display, NULL,
|
|
1097 |
NULL, NULL, s);
|
|
1094 |
s->ds = graphic_console_init(sm501_update_display, NULL,
|
|
1095 |
NULL, NULL, s); |
|
1098 | 1096 |
} |
Also available in: Unified diff