g364fb.c (c3ab4c9cf24ec9efb9c6d82b6027c0587d3081fa) | g364fb.c (125ee0ed9cad04307498ac2b7b0d51ad8a807360) |
---|---|
1/* 2 * QEMU G364 framebuffer Emulator. 3 * 4 * Copyright (c) 2007-2011 Herve Poussineau 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of --- 514 unchanged lines hidden (view full) --- 523}; 524 525static void g364fb_sysbus_class_init(ObjectClass *klass, void *data) 526{ 527 DeviceClass *dc = DEVICE_CLASS(klass); 528 SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); 529 530 k->init = g364fb_sysbus_init; | 1/* 2 * QEMU G364 framebuffer Emulator. 3 * 4 * Copyright (c) 2007-2011 Herve Poussineau 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of --- 514 unchanged lines hidden (view full) --- 523}; 524 525static void g364fb_sysbus_class_init(ObjectClass *klass, void *data) 526{ 527 DeviceClass *dc = DEVICE_CLASS(klass); 528 SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); 529 530 k->init = g364fb_sysbus_init; |
531 set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); |
|
531 dc->desc = "G364 framebuffer"; 532 dc->reset = g364fb_sysbus_reset; 533 dc->vmsd = &vmstate_g364fb; 534 dc->props = g364fb_sysbus_properties; 535} 536 537static const TypeInfo g364fb_sysbus_info = { 538 .name = "sysbus-g364", 539 .parent = TYPE_SYS_BUS_DEVICE, 540 .instance_size = sizeof(G364SysBusState), 541 .class_init = g364fb_sysbus_class_init, 542}; 543 544static void g364fb_register_types(void) 545{ 546 type_register_static(&g364fb_sysbus_info); 547} 548 549type_init(g364fb_register_types) | 532 dc->desc = "G364 framebuffer"; 533 dc->reset = g364fb_sysbus_reset; 534 dc->vmsd = &vmstate_g364fb; 535 dc->props = g364fb_sysbus_properties; 536} 537 538static const TypeInfo g364fb_sysbus_info = { 539 .name = "sysbus-g364", 540 .parent = TYPE_SYS_BUS_DEVICE, 541 .instance_size = sizeof(G364SysBusState), 542 .class_init = g364fb_sysbus_class_init, 543}; 544 545static void g364fb_register_types(void) 546{ 547 type_register_static(&g364fb_sysbus_info); 548} 549 550type_init(g364fb_register_types) |