[Midnightbsd-cvs] src [8769] trunk/sys/dev/wbwd/wbwd.c: add id for Nuvoten WPCM450RA0BX found on supermicro X9SCA-F motherboards

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 25 22:51:13 EDT 2016


Revision: 8769
          http://svnweb.midnightbsd.org/src/?rev=8769
Author:   laffer1
Date:     2016-09-25 22:51:13 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
add id for Nuvoten WPCM450RA0BX found on supermicro X9SCA-F motherboards

Modified Paths:
--------------
    trunk/sys/dev/wbwd/wbwd.c

Modified: trunk/sys/dev/wbwd/wbwd.c
===================================================================
--- trunk/sys/dev/wbwd/wbwd.c	2016-09-26 02:46:33 UTC (rev 8768)
+++ trunk/sys/dev/wbwd/wbwd.c	2016-09-26 02:51:13 UTC (rev 8769)
@@ -179,6 +179,12 @@
 		.device_rev	= 0x73,
 		.descr		= "Winbond 83627DHG-P",   
 	},
+	{
+		.vendor_id	= 0x5ca3,
+		.device_id	= 0xc3,
+		.device_rev	= 0x33,
+		.descr		= "Nuvoton WPCM450RA0BX",   
+	},
 };
 
 static void
@@ -597,6 +603,9 @@
 			goto cleanup;
 		}
 
+		if (dev_id == 0xff && dev_rev == 0xff)
+			goto cleanup;
+
 		for (j = 0; j < sizeof(wb_devs) / sizeof(*wb_devs); j++) {
 			if (wb_devs[j].device_id == dev_id &&
 			    wb_devs[j].device_rev == dev_rev) {
@@ -606,6 +615,16 @@
 				break;
 			}
 		}
+
+		if (!found) {
+			if (probe && dev != NULL) {
+				device_set_desc(dev, "Unknown Winbond/Nuvoton model");
+				device_printf(dev, "DevID 0x%02x DevRev 0x%02x, "
+				    "please report this.\n", dev_id, dev_rev);
+			}
+			found++;
+		}
+
 		if (probe && found && bootverbose && dev != NULL)
 			device_printf(dev, "%s EFER 0x%02x ID 0x%02x Rev 0x%02x"
 			     " CR26 0x%02x (probing)\n", device_get_desc(dev),



More information about the Midnightbsd-cvs mailing list