From owner-p4-projects@FreeBSD.ORG Thu Apr 27 02:03:08 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9739616A406; Thu, 27 Apr 2006 02:03:08 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71A7516A400 for ; Thu, 27 Apr 2006 02:03:08 +0000 (UTC) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4150D43D46 for ; Thu, 27 Apr 2006 02:03:08 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3R238kc017865 for ; Thu, 27 Apr 2006 02:03:08 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3R237na017857 for perforce@freebsd.org; Thu, 27 Apr 2006 02:03:07 GMT (envelope-from marcel@freebsd.org) Date: Thu, 27 Apr 2006 02:03:07 GMT Message-Id: <200604270203.k3R237na017857@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Cc: Subject: PERFORCE change 96183 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 02:03:08 -0000 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); }