Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2023 16:53:05 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fd16ee512374 - stable/13 - xhci(4): Add IDs for Zhaoxin USB 3.0 controllers
Message-ID:  <202303291653.32TGr5BN039703@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by zlei:

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

commit fd16ee51237444aa0cacacfdf7de1975485dcf35
Author:     Dmitry Luhtionov <dmitryluhtionov@gmail.com>
AuthorDate: 2023-01-17 10:43:40 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-03-29 16:37:14 +0000

    xhci(4): Add IDs for Zhaoxin USB 3.0 controllers
    
    Reviewed by:    hselasky
    Tested by:      Weitao Wang <WeitaoWang-oc@zhaoxin.com>
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
    Differential Revision:  https://reviews.freebsd.org/D38921
    
    (cherry picked from commit 0d7064d58f897c95c3bd319b497f70c8177e0de6)
    (cherry picked from commit f50f53931edb24c5f30434603f5d1d3043effc0c)
---
 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 31c361fd26e8..ad49ea7bb38f 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;
@@ -207,6 +208,13 @@ xhci_pci_match(device_t self)
 	case 0x1ada10de:
 		return ("NVIDIA TU106 USB 3.1 controller");
 
+	case 0x92021d17:
+		return ("Zhaoxin ZX-100 USB 3.0 controller");
+	case 0x92031d17:
+		return ("Zhaoxin ZX-200 USB 3.0 controller");
+	case 0x92041d17:
+		return ("Zhaoxin ZX-E USB 3.0 controller");
+
 	default:
 		break;
 	}
@@ -395,6 +403,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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303291653.32TGr5BN039703>