tcx.c (d649689a8ecb2e276cc20d3af6d416e3c299cb17) tcx.c (8e5c952b370b57beb642826882c80e1b66a9cf12)
1/*
2 * QEMU TCX Frame buffer
3 *
4 * Copyright (c) 2003-2005 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

863 memory_region_init_io(&s->thc24, OBJECT(s), &tcx_dummy_ops, s,
864 "tcx.thc24", TCX_THC_NREGS);
865 sysbus_init_mmio(sbd, &s->thc24);
866 }
867
868 sysbus_init_irq(sbd, &s->irq);
869
870 if (s->depth == 8) {
1/*
2 * QEMU TCX Frame buffer
3 *
4 * Copyright (c) 2003-2005 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

863 memory_region_init_io(&s->thc24, OBJECT(s), &tcx_dummy_ops, s,
864 "tcx.thc24", TCX_THC_NREGS);
865 sysbus_init_mmio(sbd, &s->thc24);
866 }
867
868 sysbus_init_irq(sbd, &s->irq);
869
870 if (s->depth == 8) {
871 s->con = graphic_console_init(DEVICE(dev), 0, &tcx_ops, s);
871 s->con = graphic_console_init(dev, 0, &tcx_ops, s);
872 } else {
872 } else {
873 s->con = graphic_console_init(DEVICE(dev), 0, &tcx24_ops, s);
873 s->con = graphic_console_init(dev, 0, &tcx24_ops, s);
874 }
875 s->thcmisc = 0;
876
877 qemu_console_resize(s->con, s->width, s->height);
878}
879
880static Property tcx_properties[] = {
881 DEFINE_PROP_UINT32("vram_size", TCXState, vram_size, -1),

--- 30 unchanged lines hidden ---
874 }
875 s->thcmisc = 0;
876
877 qemu_console_resize(s->con, s->width, s->height);
878}
879
880static Property tcx_properties[] = {
881 DEFINE_PROP_UINT32("vram_size", TCXState, vram_size, -1),

--- 30 unchanged lines hidden ---