From owner-p4-projects@FreeBSD.ORG Wed Apr 26 20:14:22 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 4E1A616A406; Wed, 26 Apr 2006 20:14:22 +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 20D6216A404 for ; Wed, 26 Apr 2006 20:14:22 +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 E047143D5D for ; Wed, 26 Apr 2006 20:14:21 +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 k3QKELC2007458 for ; Wed, 26 Apr 2006 20:14:21 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3QKELEJ007455 for perforce@freebsd.org; Wed, 26 Apr 2006 20:14:21 GMT (envelope-from marcel@freebsd.org) Date: Wed, 26 Apr 2006 20:14:21 GMT Message-Id: <200604262014.k3QKELEJ007455@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 96157 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: Wed, 26 Apr 2006 20:14:22 -0000 http://perforce.freebsd.org/chv.cgi?CH=96157 Change 96157 by marcel@marcel_nfs on 2006/04/26 20:13:42 Make puc_get_bar() non-static so that it can be used by the config functions when they need to do I/O. Note that this also allows config functions to use BARs/RIDs that do not map to serial/parallel ports. Affected files ... .. //depot/projects/uart/dev/puc/puc.c#35 edit .. //depot/projects/uart/dev/puc/puc_bfe.h#3 edit Differences ... ==== //depot/projects/uart/dev/puc/puc.c#35 (text+ko) ==== @@ -71,7 +71,7 @@ MALLOC_DEFINE(M_PUC, "PUC", "PUC driver"); -static struct puc_bar * +struct puc_bar * puc_get_bar(struct puc_softc *sc, int rid) { struct puc_bar *bar; ==== //depot/projects/uart/dev/puc/puc_bfe.h#3 (text+ko) ==== @@ -31,6 +31,9 @@ #define PUC_PCI_BARS 6 +struct puc_cfg; +struct puc_port; + extern const struct puc_cfg puc_pci_devices[]; extern devclass_t puc_devclass; @@ -42,8 +45,6 @@ int b_type; }; -struct puc_port; - struct puc_softc { device_t sc_dev; @@ -73,6 +74,8 @@ u_long sc_serdevs; }; +struct puc_bar *puc_get_bar(struct puc_softc *sc, int rid); + int puc_bfe_attach(device_t); int puc_bfe_detach(device_t); int puc_bfe_probe(device_t, const struct puc_cfg *);