PERFORCE change 96179 for review

Marcel Moolenaar marcel at FreeBSD.org
Thu Apr 27 01:34:33 UTC 2006


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

Change 96179 by marcel at marcel_nfs on 2006/04/27 01:34:27

	Handle the non-standard port offsets of the Diva.

Affected files ...

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

Differences ...

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

@@ -703,6 +703,13 @@
 puc_config_diva(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
     intptr_t *res)
 {
+	if (cmd == PUC_CFG_GET_OFS) {
+		switch (port) {
+		case 0:	*res = 0x00; return (0);
+		case 1: *res = 0x10; return (0);
+		case 2: *res = 0x38; return (0);
+		}
+	}
 	return (ENXIO);
 }
 


More information about the p4-projects mailing list