mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
d3647ef1fd
commit
ece29df33b
3 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,8 @@ static UHCIInfo uhci_info[] = {
|
|||
.irq_pin = 3,
|
||||
.realize = usb_uhci_vt82c686b_realize,
|
||||
.unplug = true,
|
||||
/* Reason: only works as USB function of VT82xx superio chips */
|
||||
.notuser = true,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue