PERFORCE change 92349 for review

Marcel Moolenaar marcel at FreeBSD.org
Fri Feb 24 09:51:44 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=92349

Change 92349 by marcel at marcel_nfs on 2006/02/24 17:51:01

	Merge from uart(4): Recognize the SAB82532 in USIII machines.

Affected files ...

.. //depot/projects/uart/dev/scc/scc_bfe_ebus.c#3 edit

Differences ...

==== //depot/projects/uart/dev/scc/scc_bfe_ebus.c#3 (text+ko) ====

@@ -46,11 +46,14 @@
 scc_ebus_probe(device_t dev)
 {
 	struct scc_softc *sc;
-	const char *nm;
+	const char *cmpt, *nm;
 
 	sc = device_get_softc(dev);
 	nm = ofw_bus_get_name(dev);
-	if (!strcmp(nm, "se")) {
+	cmpt = ofw_bus_get_compat(dev);
+	if (cmpt == NULL)
+		cmpt = "";
+	if (!strcmp(nm, "se") || !strcmp(cmpt, "sab82532")) {
 		device_set_desc(dev, "Siemens SAB 82532 dual channel SCC");
 		sc->sc_class = &scc_sab82532_class;
 		return (scc_bfe_probe(dev));


More information about the p4-projects mailing list