diff options
author | kumar sourav <sourav.jb1988@gmail.com> | 2019-01-24 20:16:06 +0530 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-01-30 10:16:00 +0100 |
commit | aae049073c5b5797ca3d11cc562f0bcd0a20cfb5 (patch) | |
tree | 401183bc126eeff99f2d4c928ee536e88a894ecc /hw/misc | |
parent | b4fbe1f65a4769c09e6bf2d79fc84360f840f40e (diff) | |
download | qemu-aae049073c5b5797ca3d11cc562f0bcd0a20cfb5.zip qemu-aae049073c5b5797ca3d11cc562f0bcd0a20cfb5.tar.gz qemu-aae049073c5b5797ca3d11cc562f0bcd0a20cfb5.tar.bz2 |
hw: edu: set category of the edu device
Sets the category of edu device as DEVICE_CATEGORY_MISC.
Devices should be assigned to one of DEVICE_CATEGORY_XXXX.
Signed-off-by: kumar sourav <sourav.jb1988@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190124144606.4352-1-sourav.jb1988@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/misc')
-rw-r--r-- | hw/misc/edu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/misc/edu.c b/hw/misc/edu.c index ceaf688..91af452 100644 --- a/hw/misc/edu.c +++ b/hw/misc/edu.c @@ -399,6 +399,7 @@ static void edu_instance_init(Object *obj) static void edu_class_init(ObjectClass *class, void *data) { + DeviceClass *dc = DEVICE_CLASS(class); PCIDeviceClass *k = PCI_DEVICE_CLASS(class); k->realize = pci_edu_realize; @@ -407,6 +408,7 @@ static void edu_class_init(ObjectClass *class, void *data) k->device_id = 0x11e8; k->revision = 0x10; k->class_id = PCI_CLASS_OTHERS; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } static void pci_edu_register_types(void) |