debugcon.c (c3ab4c9cf24ec9efb9c6d82b6027c0587d3081fa) debugcon.c (125ee0ed9cad04307498ac2b7b0d51ad8a807360)
1/*
2 * QEMU Bochs-style debug console ("port E9") emulation
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 * Copyright (c) 2008 Citrix Systems, Inc.
6 * Copyright (c) Intel Corporation; author: H. Peter Anvin
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

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

117};
118
119static void debugcon_isa_class_initfn(ObjectClass *klass, void *data)
120{
121 DeviceClass *dc = DEVICE_CLASS(klass);
122
123 dc->realize = debugcon_isa_realizefn;
124 dc->props = debugcon_isa_properties;
1/*
2 * QEMU Bochs-style debug console ("port E9") emulation
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 * Copyright (c) 2008 Citrix Systems, Inc.
6 * Copyright (c) Intel Corporation; author: H. Peter Anvin
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

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

117};
118
119static void debugcon_isa_class_initfn(ObjectClass *klass, void *data)
120{
121 DeviceClass *dc = DEVICE_CLASS(klass);
122
123 dc->realize = debugcon_isa_realizefn;
124 dc->props = debugcon_isa_properties;
125 set_bit(DEVICE_CATEGORY_MISC, dc->categories);
125}
126
127static const TypeInfo debugcon_isa_info = {
128 .name = TYPE_ISA_DEBUGCON_DEVICE,
129 .parent = TYPE_ISA_DEVICE,
130 .instance_size = sizeof(ISADebugconState),
131 .class_init = debugcon_isa_class_initfn,
132};
133
134static void debugcon_register_types(void)
135{
136 type_register_static(&debugcon_isa_info);
137}
138
139type_init(debugcon_register_types)
126}
127
128static const TypeInfo debugcon_isa_info = {
129 .name = TYPE_ISA_DEBUGCON_DEVICE,
130 .parent = TYPE_ISA_DEVICE,
131 .instance_size = sizeof(ISADebugconState),
132 .class_init = debugcon_isa_class_initfn,
133};
134
135static void debugcon_register_types(void)
136{
137 type_register_static(&debugcon_isa_info);
138}
139
140type_init(debugcon_register_types)