Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2020 09:57:40 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r358017 - stable/11/sys/dev/usb/controller
Message-ID:  <202002170957.01H9vee6085277@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Feb 17 09:57:40 2020
New Revision: 358017
URL: https://svnweb.freebsd.org/changeset/base/358017

Log:
  MFC r357726:
  Add USB host controller PCI ID's for Hygon.
  
  Differential Revision:	https://reviews.freebsd.org/D23564
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/dev/usb/controller/ehci_pci.c
  stable/11/sys/dev/usb/controller/ohci_pci.c
  stable/11/sys/dev/usb/controller/xhci_pci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/usb/controller/ehci_pci.c
==============================================================================
--- stable/11/sys/dev/usb/controller/ehci_pci.c	Mon Feb 17 09:57:03 2020	(r358016)
+++ stable/11/sys/dev/usb/controller/ehci_pci.c	Mon Feb 17 09:57:40 2020	(r358017)
@@ -84,6 +84,7 @@ __FBSDID("$FreeBSD$");
 #define	PCI_EHCI_VENDORID_APPLE		0x106b
 #define	PCI_EHCI_VENDORID_ATI		0x1002
 #define	PCI_EHCI_VENDORID_CMDTECH	0x1095
+#define	PCI_EHCI_VENDORID_HYGON		0x1d94
 #define	PCI_EHCI_VENDORID_INTEL		0x8086
 #define	PCI_EHCI_VENDORID_NEC		0x1033
 #define	PCI_EHCI_VENDORID_OPTI		0x1045
@@ -369,6 +370,9 @@ ehci_pci_attach(device_t self)
 		break;
 	case PCI_EHCI_VENDORID_CMDTECH:
 		sprintf(sc->sc_vendor, "CMDTECH");
+		break;
+	case PCI_EHCI_VENDORID_HYGON:
+		sprintf(sc->sc_vendor, "Hygon");
 		break;
 	case PCI_EHCI_VENDORID_INTEL:
 		sprintf(sc->sc_vendor, "Intel");

Modified: stable/11/sys/dev/usb/controller/ohci_pci.c
==============================================================================
--- stable/11/sys/dev/usb/controller/ohci_pci.c	Mon Feb 17 09:57:03 2020	(r358016)
+++ stable/11/sys/dev/usb/controller/ohci_pci.c	Mon Feb 17 09:57:40 2020	(r358017)
@@ -81,6 +81,7 @@ __FBSDID("$FreeBSD$");
 #define	PCI_OHCI_VENDORID_APPLE		0x106b
 #define	PCI_OHCI_VENDORID_ATI		0x1002
 #define	PCI_OHCI_VENDORID_CMDTECH	0x1095
+#define	PCI_OHCI_VENDORID_HYGON		0x1d94
 #define	PCI_OHCI_VENDORID_NEC		0x1033
 #define	PCI_OHCI_VENDORID_NVIDIA	0x12D2
 #define	PCI_OHCI_VENDORID_NVIDIA2	0x10DE
@@ -277,6 +278,9 @@ ohci_pci_attach(device_t self)
 		break;
 	case PCI_OHCI_VENDORID_CMDTECH:
 		sprintf(sc->sc_vendor, "CMDTECH");
+		break;
+	case PCI_OHCI_VENDORID_HYGON:
+		sprintf(sc->sc_vendor, "Hygon");
 		break;
 	case PCI_OHCI_VENDORID_NEC:
 		sprintf(sc->sc_vendor, "NEC");

Modified: stable/11/sys/dev/usb/controller/xhci_pci.c
==============================================================================
--- stable/11/sys/dev/usb/controller/xhci_pci.c	Mon Feb 17 09:57:03 2020	(r358016)
+++ stable/11/sys/dev/usb/controller/xhci_pci.c	Mon Feb 17 09:57:40 2020	(r358017)
@@ -105,6 +105,9 @@ xhci_pci_match(device_t self)
 	case 0x78141022:
 		return ("AMD FCH USB 3.0 controller");
 
+	case 0x145f1d94:
+		return ("Hygon USB 3.0 controller");
+
 	case 0x01941033:
 		return ("NEC uPD720200 USB 3.0 controller");
 	case 0x00151912:



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