git: f9237e1937a4 - main - ehci(4): Add new USB IDs.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 17 Jan 2023 10:46:23 UTC
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=f9237e1937a4e399e08ca8e5bd88a60910e74be6

commit f9237e1937a4e399e08ca8e5bd88a60910e74be6
Author:     Dmitry Luhtionov <dmitryluhtionov@gmail.com>
AuthorDate: 2023-01-17 10:43:33 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2023-01-17 10:45:35 +0000

    ehci(4): Add new USB IDs.
    
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 sys/dev/usb/controller/ehci_pci.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/dev/usb/controller/ehci_pci.c b/sys/dev/usb/controller/ehci_pci.c
index bee65e603a15..4ff15a37538c 100644
--- a/sys/dev/usb/controller/ehci_pci.c
+++ b/sys/dev/usb/controller/ehci_pci.c
@@ -96,6 +96,7 @@ __FBSDID("$FreeBSD$");
 #define	PCI_EHCI_VENDORID_NVIDIA2	0x10DE
 #define	PCI_EHCI_VENDORID_VIA		0x1106
 #define	PCI_EHCI_VENDORID_VMWARE	0x15ad
+#define        PCI_EHCI_VENDORID_ZHAOXIN       0x1d17
 
 static device_probe_t ehci_pci_probe;
 static device_attach_t ehci_pci_attach;
@@ -224,6 +225,10 @@ ehci_pci_match(device_t self)
 
 	case 0x077015ad:
 		return ("VMware USB 2.0 controller");
+
+       case 0x1d173104:
+               return ("Zhaoxin ZX-100/ZX-200/ZX-E USB 2.0 controller");
+
 	default:
 		break;
 	}
@@ -409,6 +414,9 @@ ehci_pci_attach(device_t self)
 	case PCI_EHCI_VENDORID_VMWARE:
 		sprintf(sc->sc_vendor, "VMware");
 		break;
+       case PCI_EHCI_VENDORID_ZHAOXIN:
+               sprintf(sc->sc_vendor, "Zhaoxin");
+               break;
 	default:
 		if (bootverbose)
 			device_printf(self, "(New EHCI DeviceId=0x%08x)\n",