From owner-p4-projects@FreeBSD.ORG Thu Apr 27 01:47:49 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 6944F16A406; Thu, 27 Apr 2006 01:47:49 +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 4765716A400 for ; Thu, 27 Apr 2006 01:47:49 +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 F12B243D49 for ; Thu, 27 Apr 2006 01:47:48 +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 k3R1lmHI006204 for ; Thu, 27 Apr 2006 01:47:48 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3R1lmMe006201 for perforce@freebsd.org; Thu, 27 Apr 2006 01:47:48 GMT (envelope-from marcel@freebsd.org) Date: Thu, 27 Apr 2006 01:47:48 GMT Message-Id: <200604270147.k3R1lmMe006201@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 96181 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 01:47:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=96181 Change 96181 by marcel@marcel_nfs on 2006/04/27 01:47:00 Handle the port offset on the Cronyx Omega2-PCI. The offset, though constant and regular doesn't fit in an uint8_t. Affected files ... .. //depot/projects/uart/dev/puc/pucdata.c#33 edit Differences ... ==== //depot/projects/uart/dev/puc/pucdata.c#33 (text+ko) ==== @@ -696,6 +696,10 @@ puc_config_cronyx(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, intptr_t *res) { + if (cmd == PUC_CFG_GET_OFS) { + *res = port * 0x200; + return (0); + } return (ENXIO); }