aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/hcd-uhci.h
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2021-10-25 13:33:49 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-11-02 14:32:32 +0100
commitece29df33b8e0e35760c4f76b0cf7b1af928b0b4 (patch)
tree69705cbef466e6fc8b1caeed758bb3c3828b441c /hw/usb/hcd-uhci.h
parentd3647ef1fdaf4dcaecb794b525e9def1e5d81245 (diff)
downloadqemu-ece29df33b8e0e35760c4f76b0cf7b1af928b0b4.zip
qemu-ece29df33b8e0e35760c4f76b0cf7b1af928b0b4.tar.gz
qemu-ece29df33b8e0e35760c4f76b0cf7b1af928b0b4.tar.bz2
usb/uhci: Disallow user creating a vt82c686-uhci-pci device
Because this device only works as part of VIA superio chips set user creatable to false. Since the class init method is common for UHCI variants introduce a flag in UHCIInfo for this. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Message-Id: <e6abf1f19ca72bbc2d8a5a6aa941edbf87a9845f.1635161629.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/usb/hcd-uhci.h')
-rw-r--r--hw/usb/hcd-uhci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hcd-uhci.h b/hw/usb/hcd-uhci.h
index e61d8fc..316693f 100644
--- a/hw/usb/hcd-uhci.h
+++ b/hw/usb/hcd-uhci.h
@@ -85,6 +85,7 @@ typedef struct UHCIInfo {
uint8_t irq_pin;
void (*realize)(PCIDevice *dev, Error **errp);
bool unplug;
+ bool notuser; /* disallow user_creatable */
} UHCIInfo;
void uhci_data_class_init(ObjectClass *klass, void *data);