Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2006 20:14:21 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96157 for review
Message-ID:  <200604262014.k3QKELEJ007455@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604262014.k3QKELEJ007455>