|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v3 08/28] kvm/i8259.c: rename KVMPICClass to KVMI8259Class
This is in preparation for its use within a QOM type presenting a single
KVM 8259 PIC.
Signed-off-by: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
---
hw/i386/kvm/i8259.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hw/i386/kvm/i8259.c b/hw/i386/kvm/i8259.c
index 68607d721d..85176dcf80 100644
--- a/hw/i386/kvm/i8259.c
+++ b/hw/i386/kvm/i8259.c
@@ -20,15 +20,15 @@
#include "qom/object.h"
#define TYPE_KVM_I8259 "kvm-i8259"
-typedef struct KVMPICClass KVMPICClass;
-DECLARE_CLASS_CHECKERS(KVMPICClass, KVM_PIC,
+typedef struct KVMI8259Class KVMI8259Class;
+DECLARE_CLASS_CHECKERS(KVMI8259Class, KVM_I8259,
TYPE_KVM_I8259)
/**
- * KVMPICClass:
+ * KVMI8259Class:
* @parent_realize: The parent's realizefn.
*/
-struct KVMPICClass {
+struct KVMI8259Class {
I8259CommonClass parent_class;
DeviceRealize parent_realize;
@@ -123,7 +123,7 @@ static void kvm_pic_set_irq(void *opaque, int irq, int
level)
static void kvm_pic_realize(DeviceState *dev, Error **errp)
{
I8259CommonState *s = I8259_COMMON(dev);
- KVMPICClass *kpc = KVM_PIC_GET_CLASS(dev);
+ KVMI8259Class *kpc = KVM_I8259_GET_CLASS(dev);
memory_region_init_io(&s->base_io, OBJECT(dev), NULL, NULL, "kvm-pic", 2);
memory_region_init_io(&s->elcr_io, OBJECT(dev), NULL, NULL, "kvm-elcr", 1);
@@ -141,7 +141,7 @@ qemu_irq *kvm_i8259_init(ISABus *bus)
static void kvm_i8259_class_init(ObjectClass *klass, const void *data)
{
- KVMPICClass *kpc = KVM_PIC_CLASS(klass);
+ KVMI8259Class *kpc = KVM_I8259_CLASS(klass);
I8259CommonClass *k = I8259_COMMON_CLASS(klass);
DeviceClass *dc = DEVICE_CLASS(klass);
@@ -156,7 +156,7 @@ static const TypeInfo kvm_i8259_info = {
.parent = TYPE_I8259_COMMON,
.instance_size = sizeof(I8259CommonState),
.class_init = kvm_i8259_class_init,
- .class_size = sizeof(KVMPICClass),
+ .class_size = sizeof(KVMI8259Class),
};
static void kvm_pic_register_types(void)
--
2.43.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |