The PIIX code now also initializes the USB device on the PIIX3, fixes #713.

This commit is contained in:
OBattler
2020-04-23 14:42:32 +02:00
parent e3296f4529
commit 812999f480

View File

@@ -1182,6 +1182,9 @@ static void
dev->bm[0] = device_add_inst(&sff8038i_device, 1); dev->bm[0] = device_add_inst(&sff8038i_device, 1);
dev->bm[1] = device_add_inst(&sff8038i_device, 2); dev->bm[1] = device_add_inst(&sff8038i_device, 2);
if (dev->type >= 3)
dev->usb = device_add(&usb_device);
if (dev->type > 3) { if (dev->type > 3) {
dev->nvr = device_add(&piix4_nvr_device); dev->nvr = device_add(&piix4_nvr_device);
dev->smbus = device_add(&piix4_smbus_device); dev->smbus = device_add(&piix4_smbus_device);
@@ -1191,7 +1194,6 @@ static void
acpi_set_nvr(dev->acpi, dev->nvr); acpi_set_nvr(dev->acpi, dev->nvr);
dev->ddma = device_add(&ddma_device); dev->ddma = device_add(&ddma_device);
dev->usb = device_add(&usb_device);
} else } else
timer_add(&dev->fast_off_timer, piix_fast_off_count, dev, 0); timer_add(&dev->fast_off_timer, piix_fast_off_count, dev, 0);