cg3.c (d649689a8ecb2e276cc20d3af6d416e3c299cb17) cg3.c (8e5c952b370b57beb642826882c80e1b66a9cf12)
1/*
2 * QEMU CG3 Frame buffer
3 *
4 * Copyright (c) 2012 Bob Breuer
5 * Copyright (c) 2013 Mark Cave-Ayland
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 307 unchanged lines hidden (view full) ---

316
317 memory_region_init_ram(&s->vram_mem, NULL, "cg3.vram", s->vram_size,
318 &error_fatal);
319 memory_region_set_log(&s->vram_mem, true, DIRTY_MEMORY_VGA);
320 sysbus_init_mmio(sbd, &s->vram_mem);
321
322 sysbus_init_irq(sbd, &s->irq);
323
1/*
2 * QEMU CG3 Frame buffer
3 *
4 * Copyright (c) 2012 Bob Breuer
5 * Copyright (c) 2013 Mark Cave-Ayland
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 307 unchanged lines hidden (view full) ---

316
317 memory_region_init_ram(&s->vram_mem, NULL, "cg3.vram", s->vram_size,
318 &error_fatal);
319 memory_region_set_log(&s->vram_mem, true, DIRTY_MEMORY_VGA);
320 sysbus_init_mmio(sbd, &s->vram_mem);
321
322 sysbus_init_irq(sbd, &s->irq);
323
324 s->con = graphic_console_init(DEVICE(dev), 0, &cg3_ops, s);
324 s->con = graphic_console_init(dev, 0, &cg3_ops, s);
325 qemu_console_resize(s->con, s->width, s->height);
326}
327
328static int vmstate_cg3_post_load(void *opaque, int version_id)
329{
330 CG3State *s = opaque;
331
332 cg3_invalidate_display(s);

--- 68 unchanged lines hidden ---
325 qemu_console_resize(s->con, s->width, s->height);
326}
327
328static int vmstate_cg3_post_load(void *opaque, int version_id)
329{
330 CG3State *s = opaque;
331
332 cg3_invalidate_display(s);

--- 68 unchanged lines hidden ---