Date: Thu, 27 Apr 2006 01:34:31 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96179 for review Message-ID: <200604270134.k3R1YVEC099414@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96179 Change 96179 by marcel@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604270134.k3R1YVEC099414>