Author: hselasky
Date: Mon Feb 17 09:57:03 2020
New Revision: 358016
URL: https://svnweb.freebsd.org/changeset/base/358016

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/12/sys/dev/usb/controller/ehci_pci.c
  stable/12/sys/dev/usb/controller/ohci_pci.c
  stable/12/sys/dev/usb/controller/xhci_pci.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/usb/controller/ehci_pci.c
==============================================================================
--- stable/12/sys/dev/usb/controller/ehci_pci.c Mon Feb 17 09:54:50 2020        
(r358015)
+++ stable/12/sys/dev/usb/controller/ehci_pci.c Mon Feb 17 09:57:03 2020        
(r358016)
@@ -86,6 +86,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
@@ -371,6 +372,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/12/sys/dev/usb/controller/ohci_pci.c
==============================================================================
--- stable/12/sys/dev/usb/controller/ohci_pci.c Mon Feb 17 09:54:50 2020        
(r358015)
+++ stable/12/sys/dev/usb/controller/ohci_pci.c Mon Feb 17 09:57:03 2020        
(r358016)
@@ -83,6 +83,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
@@ -279,6 +280,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/12/sys/dev/usb/controller/xhci_pci.c
==============================================================================
--- stable/12/sys/dev/usb/controller/xhci_pci.c Mon Feb 17 09:54:50 2020        
(r358015)
+++ stable/12/sys/dev/usb/controller/xhci_pci.c Mon Feb 17 09:57:03 2020        
(r358016)
@@ -107,6 +107,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:
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to