git: 0d7064d58f89 - main - xhci(4): Add new USB IDs.

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

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

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

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

diff --git a/sys/dev/usb/controller/xhci_pci.c b/sys/dev/usb/controller/xhci_pci.c
index 890eec4f0169..3fff1ec1db01 100644
--- a/sys/dev/usb/controller/xhci_pci.c
+++ b/sys/dev/usb/controller/xhci_pci.c
@@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
 #define	PCI_XHCI_VENDORID_AMD		0x1022
 #define	PCI_XHCI_VENDORID_INTEL		0x8086
 #define	PCI_XHCI_VENDORID_VMWARE	0x15ad
+#define        PCI_XHCI_VENDORID_ZHAOXIN       0x1d17
 
 static device_probe_t xhci_pci_probe;
 static device_detach_t xhci_pci_detach;
@@ -205,6 +206,13 @@ xhci_pci_match(device_t self)
 	case 0x1ada10de:
 		return ("NVIDIA TU106 USB 3.1 controller");
 
+       case 0x1d179202:
+               return ("Zhaoxin ZX-100 USB 3.0 controller");
+       case 0x1d179203:
+               return ("Zhaoxin ZX-200 USB 3.0 controller");
+       case 0x1d179204:
+               return ("Zhaoxin ZX-E USB 3.0 controller");
+
 	default:
 		break;
 	}
@@ -393,6 +401,9 @@ xhci_pci_attach(device_t self)
 	case PCI_XHCI_VENDORID_VMWARE:
 		strlcpy(sc->sc_vendor, "VMware", sizeof(sc->sc_vendor));
 		break;
+       case PCI_XHCI_VENDORID_ZHAOXIN:
+               strlcpy(sc->sc_vendor, "Zhaoxin", sizeof(sc->sc_vendor));
+               break;
 	default:
 		if (bootverbose)
 			device_printf(self, "(New XHCI DeviceId=0x%08x)\n",