Revision 95219897 hw/sun4m.c
b/hw/sun4m.c | ||
---|---|---|
187 | 187 |
slavio_pic_set_irq_cpu(slavio_intctl, irq, level, cpu); |
188 | 188 |
} |
189 | 189 |
|
190 |
static void *tcx; |
|
191 |
|
|
192 |
void vga_update_display() |
|
193 |
{ |
|
194 |
tcx_update_display(tcx); |
|
195 |
} |
|
196 |
|
|
197 |
void vga_invalidate_display() |
|
198 |
{ |
|
199 |
tcx_invalidate_display(tcx); |
|
200 |
} |
|
201 |
|
|
202 |
void vga_screen_dump(const char *filename) |
|
203 |
{ |
|
204 |
tcx_screen_dump(tcx, filename); |
|
205 |
} |
|
206 |
|
|
207 | 190 |
static void *iommu; |
208 | 191 |
|
209 | 192 |
uint32_t iommu_translate(uint32_t addr) |
... | ... | |
256 | 239 |
slavio_intctl_set_cpu(slavio_intctl, i, envs[i]); |
257 | 240 |
} |
258 | 241 |
|
259 |
tcx = tcx_init(ds, PHYS_JJ_TCX_FB, phys_ram_base + ram_size, ram_size, vram_size, graphic_width, graphic_height);
|
|
242 |
tcx_init(ds, PHYS_JJ_TCX_FB, phys_ram_base + ram_size, ram_size, vram_size, graphic_width, graphic_height); |
|
260 | 243 |
if (nd_table[0].vlan) { |
261 | 244 |
if (nd_table[0].model == NULL |
262 | 245 |
|| strcmp(nd_table[0].model, "lance") == 0) { |
Also available in: Unified diff