vga-isa.c (c3ab4c9cf24ec9efb9c6d82b6027c0587d3081fa) vga-isa.c (125ee0ed9cad04307498ac2b7b0d51ad8a807360)
1/*
2 * QEMU ISA VGA Emulator.
3 *
4 * see docs/specs/standard-vga.txt for virtual hardware specs.
5 *
6 * Copyright (c) 2003 Fabrice Bellard
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

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

82static void vga_isa_class_initfn(ObjectClass *klass, void *data)
83{
84 DeviceClass *dc = DEVICE_CLASS(klass);
85
86 dc->realize = vga_isa_realizefn;
87 dc->reset = vga_isa_reset;
88 dc->vmsd = &vmstate_vga_common;
89 dc->props = vga_isa_properties;
1/*
2 * QEMU ISA VGA Emulator.
3 *
4 * see docs/specs/standard-vga.txt for virtual hardware specs.
5 *
6 * Copyright (c) 2003 Fabrice Bellard
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

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

82static void vga_isa_class_initfn(ObjectClass *klass, void *data)
83{
84 DeviceClass *dc = DEVICE_CLASS(klass);
85
86 dc->realize = vga_isa_realizefn;
87 dc->reset = vga_isa_reset;
88 dc->vmsd = &vmstate_vga_common;
89 dc->props = vga_isa_properties;
90 set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
90}
91
92static const TypeInfo vga_isa_info = {
93 .name = TYPE_ISA_VGA,
94 .parent = TYPE_ISA_DEVICE,
95 .instance_size = sizeof(ISAVGAState),
96 .class_init = vga_isa_class_initfn,
97};
98
99static void vga_isa_register_types(void)
100{
101 type_register_static(&vga_isa_info);
102}
103
104type_init(vga_isa_register_types)
91}
92
93static const TypeInfo vga_isa_info = {
94 .name = TYPE_ISA_VGA,
95 .parent = TYPE_ISA_DEVICE,
96 .instance_size = sizeof(ISAVGAState),
97 .class_init = vga_isa_class_initfn,
98};
99
100static void vga_isa_register_types(void)
101{
102 type_register_static(&vga_isa_info);
103}
104
105type_init(vga_isa_register_types)