Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2022 03:17:12 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7e53019b06d5 - stable/13 - Add random VMware device IDs.
Message-ID:  <202210270317.29R3HCAc074847@gitrepo.freebsd.org>

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

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

commit 7e53019b06d5fd66b6db9fe2edd0bbbdb5eec2a8
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2022-10-20 14:19:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2022-10-27 02:48:56 +0000

    Add random VMware device IDs.
    
    Just to make dmesg look nicer there.
    
    MFC after:      1 week
    
    (cherry picked from commit 2a31a06bf1bb2d328d6672ed91c3e54734684cc0)
---
 sys/dev/ahci/ahci_pci.c           | 1 +
 sys/dev/nvme/nvme_pci.c           | 1 +
 sys/dev/sound/pci/hda/hdac.c      | 2 ++
 sys/dev/sound/pci/hda/hdac.h      | 9 +++++++++
 sys/dev/sound/pci/hda/hdacc.c     | 2 ++
 sys/dev/usb/controller/ehci_pci.c | 6 ++++++
 sys/dev/usb/controller/uhci_pci.c | 6 ++++++
 sys/dev/usb/controller/xhci_pci.c | 8 ++++++++
 8 files changed, 35 insertions(+)

diff --git a/sys/dev/ahci/ahci_pci.c b/sys/dev/ahci/ahci_pci.c
index 5fd4c53418c2..3671efcb8e22 100644
--- a/sys/dev/ahci/ahci_pci.c
+++ b/sys/dev/ahci/ahci_pci.c
@@ -383,6 +383,7 @@ static const struct {
 	{0xa01c177d, 0x00, "ThunderX",		AHCI_Q_ABAR0|AHCI_Q_1MSI},
 	{0x00311c36, 0x00, "Annapurna",		AHCI_Q_FORCE_PI|AHCI_Q_RESTORE_CAP|AHCI_Q_NOMSIX},
 	{0x1600144d, 0x00, "Samsung",		AHCI_Q_NOMSI},
+	{0x07e015ad, 0x00, "VMware",		0},
 	{0x00000000, 0x00, NULL,		0}
 };
 
diff --git a/sys/dev/nvme/nvme_pci.c b/sys/dev/nvme/nvme_pci.c
index 20ffe6574dce..0b691f7ac5be 100644
--- a/sys/dev/nvme/nvme_pci.c
+++ b/sys/dev/nvme/nvme_pci.c
@@ -94,6 +94,7 @@ static struct _pcsid
 	{ 0x05401c5f,		0, 0, "Memblaze Pblaze4", QUIRK_DELAY_B4_CHK_RDY },
 	{ 0xa821144d,		0, 0, "Samsung PM1725", QUIRK_DELAY_B4_CHK_RDY },
 	{ 0xa822144d,		0, 0, "Samsung PM1725a", QUIRK_DELAY_B4_CHK_RDY },
+	{ 0x07f015ad,		0, 0, "VMware NVMe Controller" },
 	{ 0x00000000,		0, 0, NULL  }
 };
 
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
index 4359e4c9bfc7..9aa0e4bffdc8 100644
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -200,6 +200,7 @@ static const struct {
 	{ HDA_AMD_HUDSON2,   "AMD Hudson-2",	0, 0 },
 	{ HDA_RDC_M3010,     "RDC M3010",	0, 0 },
 	{ HDA_VIA_VT82XX,    "VIA VT8251/8237A",0, 0 },
+	{ HDA_VMWARE,        "VMware",		0, 0 },
 	{ HDA_SIS_966,       "SiS 966/968",	0, 0 },
 	{ HDA_ULI_M5461,     "ULI M5461",	0, 0 },
 	/* Unknown */
@@ -209,6 +210,7 @@ static const struct {
 	{ HDA_AMD_ALL,    "AMD",		0, 0 },
 	{ HDA_CREATIVE_ALL,    "Creative",	0, 0 },
 	{ HDA_VIA_ALL,    "VIA",		0, 0 },
+	{ HDA_VMWARE_ALL, "VMware",		0, 0 },
 	{ HDA_SIS_ALL,    "SiS",		0, 0 },
 	{ HDA_ULI_ALL,    "ULI",		0, 0 },
 };
diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h
index c4aab1fc12cc..5261bf9c7543 100644
--- a/sys/dev/sound/pci/hda/hdac.h
+++ b/sys/dev/sound/pci/hda/hdac.h
@@ -201,6 +201,11 @@
 #define HDA_VIA_VT82XX		HDA_MODEL_CONSTRUCT(VIA, 0x3288)
 #define HDA_VIA_ALL		HDA_MODEL_CONSTRUCT(VIA, 0xffff)
 
+/* VMware */
+#define VMWARE_VENDORID		0x15ad
+#define HDA_VMWARE		HDA_MODEL_CONSTRUCT(VMWARE, 0x1977)
+#define HDA_VMWARE_ALL		HDA_MODEL_CONSTRUCT(VMWARE, 0xffff)
+
 /* SiS */
 #define SIS_VENDORID		0x1039
 #define HDA_SIS_966		HDA_MODEL_CONSTRUCT(SIS, 0x7502)
@@ -839,6 +844,10 @@
 #define HDA_CODEC_VT2020	HDA_CODEC_CONSTRUCT(VIA, 0x0441)
 #define HDA_CODEC_VTXXXX	HDA_CODEC_CONSTRUCT(VIA, 0xffff)
 
+/* VMware */
+#define HDA_CODEC_VMWARE	HDA_CODEC_CONSTRUCT(VMWARE, 0x1975)
+#define HDA_CODEC_VMWAREXXXX	HDA_CODEC_CONSTRUCT(VMWARE, 0xffff)
+
 /* ATI */
 #define HDA_CODEC_ATIRS600_1	HDA_CODEC_CONSTRUCT(ATI, 0x793c)
 #define HDA_CODEC_ATIRS600_2	HDA_CODEC_CONSTRUCT(ATI, 0x7919)
diff --git a/sys/dev/sound/pci/hda/hdacc.c b/sys/dev/sound/pci/hda/hdacc.c
index ef29cd6d6e27..046dfdc208e6 100644
--- a/sys/dev/sound/pci/hda/hdacc.c
+++ b/sys/dev/sound/pci/hda/hdacc.c
@@ -397,6 +397,7 @@ static const struct {
 	{ HDA_CODEC_INTELALLK, 0,	"Intel Alder Lake" },
 	{ HDA_CODEC_SII1390, 0,		"Silicon Image SiI1390" },
 	{ HDA_CODEC_SII1392, 0,		"Silicon Image SiI1392" },
+	{ HDA_CODEC_VMWARE, 0,		"VMware" },
 	/* Unknown CODECs */
 	{ HDA_CODEC_ADXXXX, 0,		"Analog Devices" },
 	{ HDA_CODEC_AGEREXXXX, 0,	"Lucent/Agere Systems" },
@@ -414,6 +415,7 @@ static const struct {
 	{ HDA_CODEC_NVIDIAXXXX, 0,	"NVIDIA" },
 	{ HDA_CODEC_SIIXXXX, 0,		"Silicon Image" },
 	{ HDA_CODEC_STACXXXX, 0,	"Sigmatel" },
+	{ HDA_CODEC_VMWAREXXXX, 0,	"VMware" },
 	{ HDA_CODEC_VTXXXX, 0,		"VIA" },
 };
 
diff --git a/sys/dev/usb/controller/ehci_pci.c b/sys/dev/usb/controller/ehci_pci.c
index dbc2def5b8d2..b536ea02b649 100644
--- a/sys/dev/usb/controller/ehci_pci.c
+++ b/sys/dev/usb/controller/ehci_pci.c
@@ -95,6 +95,7 @@ __FBSDID("$FreeBSD$");
 #define	PCI_EHCI_VENDORID_NVIDIA	0x12D2
 #define	PCI_EHCI_VENDORID_NVIDIA2	0x10DE
 #define	PCI_EHCI_VENDORID_VIA		0x1106
+#define	PCI_EHCI_VENDORID_VMWARE	0x15ad
 
 static device_probe_t ehci_pci_probe;
 static device_attach_t ehci_pci_attach;
@@ -221,6 +222,8 @@ ehci_pci_match(device_t self)
 	case 0x31041106:
 		return ("VIA VT6202 USB 2.0 controller");
 
+	case 0x077015ad:
+		return ("VMware USB 2.0 controller");
 	default:
 		break;
 	}
@@ -403,6 +406,9 @@ ehci_pci_attach(device_t self)
 	case PCI_EHCI_VENDORID_VIA:
 		sprintf(sc->sc_vendor, "VIA");
 		break;
+	case PCI_EHCI_VENDORID_VMWARE:
+		sprintf(sc->sc_vendor, "VMware");
+		break;
 	default:
 		if (bootverbose)
 			device_printf(self, "(New EHCI DeviceId=0x%08x)\n",
diff --git a/sys/dev/usb/controller/uhci_pci.c b/sys/dev/usb/controller/uhci_pci.c
index c24a34eda283..e9036aa9ce23 100644
--- a/sys/dev/usb/controller/uhci_pci.c
+++ b/sys/dev/usb/controller/uhci_pci.c
@@ -81,6 +81,7 @@ __FBSDID("$FreeBSD$");
 #define	PCI_UHCI_VENDORID_INTEL		0x8086
 #define	PCI_UHCI_VENDORID_HP		0x103c
 #define	PCI_UHCI_VENDORID_VIA		0x1106
+#define	PCI_UHCI_VENDORID_VMWARE	0x15ad
 
 /* PIIX4E has no separate stepping */
 
@@ -237,6 +238,8 @@ uhci_pci_match(device_t self)
 	case 0x30381106:
 		return ("VIA 83C572 USB controller");
 
+	case 0x077415ad:
+		return ("VMware USB controller");
 	default:
 		break;
 	}
@@ -327,6 +330,9 @@ uhci_pci_attach(device_t self)
 	case PCI_UHCI_VENDORID_VIA:
 		sprintf(sc->sc_vendor, "VIA");
 		break;
+	case PCI_UHCI_VENDORID_VMWARE:
+		sprintf(sc->sc_vendor, "VMware");
+		break;
 	default:
 		if (bootverbose) {
 			device_printf(self, "(New UHCI DeviceId=0x%08x)\n",
diff --git a/sys/dev/usb/controller/xhci_pci.c b/sys/dev/usb/controller/xhci_pci.c
index c35cd08b3341..3297765059ab 100644
--- a/sys/dev/usb/controller/xhci_pci.c
+++ b/sys/dev/usb/controller/xhci_pci.c
@@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
 
 #define	PCI_XHCI_VENDORID_AMD		0x1022
 #define	PCI_XHCI_VENDORID_INTEL		0x8086
+#define	PCI_XHCI_VENDORID_VMWARE	0x15ad
 
 static device_probe_t xhci_pci_probe;
 static device_detach_t xhci_pci_detach;
@@ -112,6 +113,10 @@ xhci_pci_match(device_t self)
 	case 0x79141022:
 		return ("AMD FCH USB 3.0 controller");
 
+	case 0x077815ad:
+	case 0x077915ad:
+		return ("VMware USB 3.0 controller");
+
 	case 0x145f1d94:
 		return ("Hygon USB 3.0 controller");
 
@@ -387,6 +392,9 @@ xhci_pci_attach(device_t self)
 	case PCI_XHCI_VENDORID_INTEL:
 		strlcpy(sc->sc_vendor, "Intel", sizeof(sc->sc_vendor));
 		break;
+	case PCI_XHCI_VENDORID_VMWARE:
+		strlcpy(sc->sc_vendor, "VMware", 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?202210270317.29R3HCAc074847>