Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 02:03:07 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96183 for review
Message-ID:  <200604270203.k3R237na017857@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96183

Change 96183 by marcel@marcel_nfs on 2006/04/27 02:02:54

	Handle the non-standard RID/OFS combinations of the Titan PCI-800L.

Affected files ...

.. //depot/projects/uart/dev/puc/pucdata.c#35 edit

Differences ...

==== //depot/projects/uart/dev/puc/pucdata.c#35 (text+ko) ====

@@ -919,5 +919,15 @@
 puc_config_titan(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
     intptr_t *res)
 {
+	switch (cmd) {
+	case PUC_CFG_GET_OFS:
+		*res = (port < 3) ? 0 : (port - 2) << 3;
+		return (0);
+	case PUC_CFG_GET_RID:
+		*res = 0x14 + ((port >= 2) ? 0x0c : port << 2);
+		return (0);
+	default:
+		break;
+	}
 	return (ENXIO);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604270203.k3R237na017857>