mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
hw/usb/hcd-uhci: Introduce TYPE_ defines for device models
Suggested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20221204190553.3274-7-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
c451e07798
commit
f0712099a2
5 changed files with 22 additions and 16 deletions
|
@ -48,6 +48,7 @@
|
|||
#include "hw/ide/pci.h"
|
||||
#include "hw/ide/ahci.h"
|
||||
#include "hw/usb.h"
|
||||
#include "hw/usb/hcd-uhci.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "sysemu/numa.h"
|
||||
|
@ -65,15 +66,15 @@ struct ehci_companions {
|
|||
};
|
||||
|
||||
static const struct ehci_companions ich9_1d[] = {
|
||||
{ .name = "ich9-usb-uhci1", .func = 0, .port = 0 },
|
||||
{ .name = "ich9-usb-uhci2", .func = 1, .port = 2 },
|
||||
{ .name = "ich9-usb-uhci3", .func = 2, .port = 4 },
|
||||
{ .name = TYPE_ICH9_USB_UHCI(1), .func = 0, .port = 0 },
|
||||
{ .name = TYPE_ICH9_USB_UHCI(2), .func = 1, .port = 2 },
|
||||
{ .name = TYPE_ICH9_USB_UHCI(3), .func = 2, .port = 4 },
|
||||
};
|
||||
|
||||
static const struct ehci_companions ich9_1a[] = {
|
||||
{ .name = "ich9-usb-uhci4", .func = 0, .port = 0 },
|
||||
{ .name = "ich9-usb-uhci5", .func = 1, .port = 2 },
|
||||
{ .name = "ich9-usb-uhci6", .func = 2, .port = 4 },
|
||||
{ .name = TYPE_ICH9_USB_UHCI(4), .func = 0, .port = 0 },
|
||||
{ .name = TYPE_ICH9_USB_UHCI(5), .func = 1, .port = 2 },
|
||||
{ .name = TYPE_ICH9_USB_UHCI(6), .func = 2, .port = 4 },
|
||||
};
|
||||
|
||||
static int ehci_create_ich9_with_companions(PCIBus *bus, int slot)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue