Date: Fri, 24 Feb 2006 17:51:40 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92349 for review Message-ID: <200602241751.k1OHpeoO012797@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92349 Change 92349 by marcel@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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602241751.k1OHpeoO012797>