Received: by 2002:ac2:5042:0:0:0:0:0 with SMTP id a2csp3565689lfm; Sat, 4 Jul 2020 12:49:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/PSpVCyhGEkhGkxTg5Kyop3NLFeByuSTSBxilLINwVUHAdCbRJOX9t1A0BTLWd2JddAgM X-Received: by 2002:a25:c60d:: with SMTP id k13mr20463929ybf.94.1593892159395; Sat, 04 Jul 2020 12:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593892159; cv=none; d=google.com; s=arc-20160816; b=oI+oqb8dqFSPHdAoaeHkJylzMyI09JuGm4l605oeW0Alm6xZIusXsh2Pe4D6Ft74Tl nZ1SqxTvd6CQbbT7ByWiG4ivfVxbfkBaU/ExRp86Wvt5QqazOZZGAtgeGF+XjZq0B/5B Nqfa7XV7G0jaXa9ra9Ue9fdznlXx4QY3lsUBcbr/dPp1gq0PifOfFmEQUgoh0jc+qGIK fJ/IJlYAuJzrbI6SrqgFJG9Gz4xFWxoclOgMRYqiK6FALk3D22uySA4A5tIULY0M1cVS PtW0fbWFLtviTQKNJ876UI2jrKECJAoQTHeJDAIkDC1eArQYghWbhiTuh5GiZa/pJgSj YMCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=uMacwgNeIs+PJI8CGi9IjvobADMieWhRAND6S/GfHto=; b=zw6ZYMxN1VJU0mUyY6QbY5EuJTUMLsvJS6kO2O4PrVgOWtk0n+Sz5bgayfZT7CjRDE 1KXJcx0eOc+VCTn++nclY6AtdsWTzzrqbxe5Bso2kwIjcsEs9VPYSgs0fbCAS77ICuDA uhLaPIzoy/iEe+Lmp3HrBb4t1zrWq4wVy4yAt5rLoNh7+LeG6bgjxjTdymSn5+KnZJKM q3jFsE5HOFXNWmSWjIbwRkXSkF95Kyd9lYoaYDpScKqCEcPdNNFE4uE6S+94gz8x0W7j QM8jRvMfIEYkgMlfGVs9609lNc4BVu5uSPY1ou9oEzKYxVi9pNdZFuFmkrqoWXtmup01 Nsjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="O/9JL3MS"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amsat.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w125si711463ybw.383.2020.07.04.12.49.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Jul 2020 12:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="O/9JL3MS"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amsat.org Received: from localhost ([::1]:58060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jroA2-0008KT-Of for alex.bennee@linaro.org; Sat, 04 Jul 2020 15:49:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jro9u-0008It-W4; Sat, 04 Jul 2020 15:49:11 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:32778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jro9s-0000lW-Ry; Sat, 04 Jul 2020 15:49:10 -0400 Received: by mail-wr1-x441.google.com with SMTP id f18so28178023wrs.0; Sat, 04 Jul 2020 12:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uMacwgNeIs+PJI8CGi9IjvobADMieWhRAND6S/GfHto=; b=O/9JL3MSirFJkP1c7f4CwBYsLdeVR4ukHFj5e3F/VbhTJ+2aTH5GBMSR6mVKmTUT9m Yen25RHReEU+1V2ioaaDyoZQLyRtvPhepxlMh56F187Ivutv7swJUMAg8f+zReYKyTqm ZG02BnrlqJ5V/qV8tz8BluIELDj8SYu92OPRi9BqQhJGWLEqoouiFxXWVje9/Hc8vPJr sw1e5nzOqrSeqNVjvdgiKZcywSin0hsWPmPAU1l16bS6bFI3uzmmctPU29lsN5ctr0ps aSmDFvae2pcKb1gUHwE2FiZ2qKkVyUaM4ogoDaASmfQlC522h+PhcBuCHcuQmTICfxnA D9Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uMacwgNeIs+PJI8CGi9IjvobADMieWhRAND6S/GfHto=; b=ep0Jtri/jCoEd1itybh2v4OYSh2q3M2fNXDuHK0blZod6Fj+iYhsZpCnC9lIYUgUKr qFxR1sFav3qQ6kdTV6XkNBXmBaMqda9DiYjA+oVawxpydZvlqlMInPMVOemo3fS6Dfoq OMX4wc6dVmxz7am0mSQDxDk614vGrdOa7c4zZQIJR+xbsmymiv4Z0nnD9PxqhgsrVrW3 rtpInxI4/ZuNGqFjE7HKBCcVsRHlG1tf5loQw7ByOTfGKELbTfrIH+NbRzqjIlnKM69X TlkNbaafKPU3UySzwvpmrSSTKfnkJrLr3c994fkckcHDUqATvV+haQq3lPF85cH4clw1 1J3Q== X-Gm-Message-State: AOAM530m3NP4GvWErUt0Mc1FdL9b5AIlK8WyaResLJVmJyY/sdo1sbWb toFzAPLhzJHLNeHGSXcEsdw= X-Received: by 2002:adf:9404:: with SMTP id 4mr40799737wrq.367.1593892146468; Sat, 04 Jul 2020 12:49:06 -0700 (PDT) Received: from [192.168.1.39] (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id r28sm9296432wrr.20.2020.07.04.12.49.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Jul 2020 12:49:05 -0700 (PDT) Subject: Re: [PATCH 24/26] hw/usb/usb-hcd: Use UHCI type definitions To: BALATON Zoltan References: <20200704144943.18292-1-f4bug@amsat.org> <20200704144943.18292-25-f4bug@amsat.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Sat, 4 Jul 2020 21:49:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x441.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Jiaxun Yang , Gerd Hoffmann , Huacai Chen , Eric Blake , Stefano Stabellini , Yoshinori Sato , Paul Durrant , Magnus Damm , Markus Armbruster , =?UTF-8?Q?Herv=c3=a9_Poussineau?= , Marcel Apfelbaum , Anthony Perard , Samuel Thibault , Leif Lindholm , Andrzej Zaborowski , Aleksandar Rikalo , Eduardo Habkost , Alistair Francis , "Dr. David Alan Gilbert" , Beniamino Galvani , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Niek Linnenbank , qemu-arm@nongnu.org, xen-devel@lists.xenproject.org, Richard Henderson , Radoslaw Biernacki , Igor Mitsyanko , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Paul Zimmerman , qemu-ppc@nongnu.org, David Gibson , Paolo Bonzini Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: Kwy2toXabund On 7/4/20 9:44 PM, BALATON Zoltan wrote: > On Sat, 4 Jul 2020, Philippe Mathieu-Daudé wrote: >> On 7/4/20 7:17 PM, BALATON Zoltan wrote: >>> On Sat, 4 Jul 2020, Philippe Mathieu-Daudé wrote: >>>> Various machine/board/soc models create UHCI device instances >>>> with the generic QDEV API, and don't need to access USB internals. >>>> >>>> Simplify header inclusions by moving the QOM type names into a >>>> simple header, with no need to include other "hw/usb" headers. >>>> >>>> Suggested-by: BALATON Zoltan >>>> Signed-off-by: Philippe Mathieu-Daudé >>>> --- >>>> include/hw/usb/usb-hcd.h |  6 ++++++ >>>> hw/i386/pc_piix.c        |  3 ++- >>>> hw/i386/pc_q35.c         | 13 +++++++------ >>>> hw/isa/piix4.c           |  3 ++- >>>> hw/mips/fuloong2e.c      |  5 +++-- >>>> hw/usb/hcd-uhci.c        | 19 ++++++++++--------- >>>> 6 files changed, 30 insertions(+), 19 deletions(-) >>>> >>>> diff --git a/include/hw/usb/usb-hcd.h b/include/hw/usb/usb-hcd.h >>>> index 74af3a4533..c9d0a88984 100644 >>>> --- a/include/hw/usb/usb-hcd.h >>>> +++ b/include/hw/usb/usb-hcd.h >>>> @@ -24,4 +24,10 @@ >>>> #define TYPE_FUSBH200_EHCI          "fusbh200-ehci-usb" >>>> #define TYPE_CHIPIDEA               "usb-chipidea" >>>> >>>> +/* UHCI */ >>>> +#define TYPE_PIIX3_USB_UHCI         "piix3-usb-uhci" >>>> +#define TYPE_PIIX4_USB_UHCI         "piix4-usb-uhci" >>>> +#define TYPE_VT82C686B_USB_UHCI     "vt82c686b-usb-uhci" >>>> +#define TYPE_ICH9_USB_UHCI(n)       "ich9-usb-uhci" #n >>> >>> What is that #n at the end? Looks like a typo. Does it break >>> compilation? >> >> #n is a C preprocessor feature that expand the 'n' argument to a "n" >> string, so: >> >> TYPE_ICH9_USB_UHCI(1) = "ich9-usb-uhci" #1 >>                      = "ich9-usb-uhci" "1" >>                      = "ich9-usb-uhci1" >> >> I'm pretty sure we use that elsewhere. If not, I can add a definition >> for each 1 ... 6 typenames. > > No it's OK, no need to list all defines. I just did not notice the macro > argument that's why I was wondering where it comes from. This seems to > be used elsewhere at least here: > > hw/audio/es1370.c:#define a(n) if (val & CTRL_##n) strcat (buf, " "#n) > hw/audio/es1370.c:#define a(n) if (val & SCTRL_##n) strcat (buf, " "#n) > hw/audio/es1370.c:#define b(n) if (!(val & SCTRL_##n)) strcat (buf, " "#n) > > Maybe writing it without the space between "# is clearer as then it > looks more like it's part of the value. Ah clever indeed. Thanks! > > Regards, > BALATON Zoltan > >>>> + >>>> #endif >>>> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c >>>> index 4d1de7cfab..0024c346c6 100644 >>>> --- a/hw/i386/pc_piix.c >>>> +++ b/hw/i386/pc_piix.c >>>> @@ -37,6 +37,7 @@ >>>> #include "hw/pci/pci.h" >>>> #include "hw/pci/pci_ids.h" >>>> #include "hw/usb/usb.h" >>>> +#include "hw/usb/usb-hcd.h" >>>> #include "net/net.h" >>>> #include "hw/ide/pci.h" >>>> #include "hw/irq.h" >>>> @@ -275,7 +276,7 @@ static void pc_init1(MachineState *machine, >>>> #endif >>>> >>>>     if (pcmc->pci_enabled && machine_usb(machine)) { >>>> -        pci_create_simple(pci_bus, piix3_devfn + 2, "piix3-usb-uhci"); >>>> +        pci_create_simple(pci_bus, piix3_devfn + 2, >>>> TYPE_PIIX3_USB_UHCI); >>>>     } >>>> >>>>     if (pcmc->pci_enabled && >>>> x86_machine_is_acpi_enabled(X86_MACHINE(pcms))) { >>>> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c >>>> index b985f5bea1..a80527e6ed 100644 >>>> --- a/hw/i386/pc_q35.c >>>> +++ b/hw/i386/pc_q35.c >>>> @@ -51,6 +51,7 @@ >>>> #include "hw/ide/pci.h" >>>> #include "hw/ide/ahci.h" >>>> #include "hw/usb/usb.h" >>>> +#include "hw/usb/usb-hcd.h" >>>> #include "qapi/error.h" >>>> #include "qemu/error-report.h" >>>> #include "sysemu/numa.h" >>>> @@ -68,15 +69,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) >>>> diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c >>>> index f634bcb2d1..e11e5fae21 100644 >>>> --- a/hw/isa/piix4.c >>>> +++ b/hw/isa/piix4.c >>>> @@ -29,6 +29,7 @@ >>>> #include "hw/southbridge/piix.h" >>>> #include "hw/pci/pci.h" >>>> #include "hw/isa/isa.h" >>>> +#include "hw/usb/usb-hcd.h" >>>> #include "hw/sysbus.h" >>>> #include "hw/intc/i8259.h" >>>> #include "hw/dma/i8257.h" >>>> @@ -255,7 +256,7 @@ DeviceState *piix4_create(PCIBus *pci_bus, ISABus >>>> **isa_bus, I2CBus **smbus) >>>>     pci = pci_create_simple(pci_bus, devfn + 1, "piix4-ide"); >>>>     pci_ide_create_devs(pci); >>>> >>>> -    pci_create_simple(pci_bus, devfn + 2, "piix4-usb-uhci"); >>>> +    pci_create_simple(pci_bus, devfn + 2, TYPE_PIIX4_USB_UHCI); >>>>     if (smbus) { >>>>         *smbus = piix4_pm_init(pci_bus, devfn + 3, 0x1100, >>>>                                isa_get_irq(NULL, 9), NULL, 0, NULL); >>>> diff --git a/hw/mips/fuloong2e.c b/hw/mips/fuloong2e.c >>>> index 8ca31e5162..b6d33dd2cd 100644 >>>> --- a/hw/mips/fuloong2e.c >>>> +++ b/hw/mips/fuloong2e.c >>>> @@ -33,6 +33,7 @@ >>>> #include "hw/mips/mips.h" >>>> #include "hw/mips/cpudevs.h" >>>> #include "hw/pci/pci.h" >>>> +#include "hw/usb/usb-hcd.h" >>>> #include "qemu/log.h" >>>> #include "hw/loader.h" >>>> #include "hw/ide/pci.h" >>>> @@ -258,8 +259,8 @@ static void vt82c686b_southbridge_init(PCIBus >>>> *pci_bus, int slot, qemu_irq intc, >>>>     dev = pci_create_simple(pci_bus, PCI_DEVFN(slot, 1), "via-ide"); >>>>     pci_ide_create_devs(dev); >>>> >>>> -    pci_create_simple(pci_bus, PCI_DEVFN(slot, 2), >>>> "vt82c686b-usb-uhci"); >>>> -    pci_create_simple(pci_bus, PCI_DEVFN(slot, 3), >>>> "vt82c686b-usb-uhci"); >>>> +    pci_create_simple(pci_bus, PCI_DEVFN(slot, 2), >>>> TYPE_VT82C686B_USB_UHCI); >>>> +    pci_create_simple(pci_bus, PCI_DEVFN(slot, 3), >>>> TYPE_VT82C686B_USB_UHCI); >>>> >>>>     *i2c_bus = vt82c686b_pm_init(pci_bus, PCI_DEVFN(slot, 4), 0xeee1, >>>> NULL); >>>> >>>> diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c >>>> index 1d4dd33b6c..da078dc3fa 100644 >>>> --- a/hw/usb/hcd-uhci.c >>>> +++ b/hw/usb/hcd-uhci.c >>>> @@ -39,6 +39,7 @@ >>>> #include "qemu/main-loop.h" >>>> #include "qemu/module.h" >>>> #include "usb-internal.h" >>>> +#include "hw/usb/usb-hcd.h" >>>> >>>> #define FRAME_TIMER_FREQ 1000 >>>> >>>> @@ -1358,21 +1359,21 @@ static void uhci_data_class_init(ObjectClass >>>> *klass, void *data) >>>> >>>> static UHCIInfo uhci_info[] = { >>>>     { >>>> -        .name       = "piix3-usb-uhci", >>>> +        .name      = TYPE_PIIX3_USB_UHCI, >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82371SB_2, >>>>         .revision  = 0x01, >>>>         .irq_pin   = 3, >>>>         .unplug    = true, >>>>     },{ >>>> -        .name      = "piix4-usb-uhci", >>>> +        .name      = TYPE_PIIX4_USB_UHCI, >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82371AB_2, >>>>         .revision  = 0x01, >>>>         .irq_pin   = 3, >>>>         .unplug    = true, >>>>     },{ >>>> -        .name      = "vt82c686b-usb-uhci", >>>> +        .name      = TYPE_VT82C686B_USB_UHCI, >>>>         .vendor_id = PCI_VENDOR_ID_VIA, >>>>         .device_id = PCI_DEVICE_ID_VIA_UHCI, >>>>         .revision  = 0x01, >>>> @@ -1380,42 +1381,42 @@ static UHCIInfo uhci_info[] = { >>>>         .realize   = usb_uhci_vt82c686b_realize, >>>>         .unplug    = true, >>>>     },{ >>>> -        .name      = "ich9-usb-uhci1", /* 00:1d.0 */ >>>> +        .name      = TYPE_ICH9_USB_UHCI(1), /* 00:1d.0 */ >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82801I_UHCI1, >>>>         .revision  = 0x03, >>>>         .irq_pin   = 0, >>>>         .unplug    = false, >>>>     },{ >>>> -        .name      = "ich9-usb-uhci2", /* 00:1d.1 */ >>>> +        .name      = TYPE_ICH9_USB_UHCI(2), /* 00:1d.1 */ >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82801I_UHCI2, >>>>         .revision  = 0x03, >>>>         .irq_pin   = 1, >>>>         .unplug    = false, >>>>     },{ >>>> -        .name      = "ich9-usb-uhci3", /* 00:1d.2 */ >>>> +        .name      = TYPE_ICH9_USB_UHCI(3), /* 00:1d.2 */ >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82801I_UHCI3, >>>>         .revision  = 0x03, >>>>         .irq_pin   = 2, >>>>         .unplug    = false, >>>>     },{ >>>> -        .name      = "ich9-usb-uhci4", /* 00:1a.0 */ >>>> +        .name      = TYPE_ICH9_USB_UHCI(4), /* 00:1a.0 */ >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82801I_UHCI4, >>>>         .revision  = 0x03, >>>>         .irq_pin   = 0, >>>>         .unplug    = false, >>>>     },{ >>>> -        .name      = "ich9-usb-uhci5", /* 00:1a.1 */ >>>> +        .name      = TYPE_ICH9_USB_UHCI(5), /* 00:1a.1 */ >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82801I_UHCI5, >>>>         .revision  = 0x03, >>>>         .irq_pin   = 1, >>>>         .unplug    = false, >>>>     },{ >>>> -        .name      = "ich9-usb-uhci6", /* 00:1a.2 */ >>>> +        .name      = TYPE_ICH9_USB_UHCI(6), /* 00:1a.2 */ >>>>         .vendor_id = PCI_VENDOR_ID_INTEL, >>>>         .device_id = PCI_DEVICE_ID_INTEL_82801I_UHCI6, >>>>         .revision  = 0x03, >>>> >> >>