PERFORCE change 96157 for review
Marcel Moolenaar
marcel at FreeBSD.org
Wed Apr 26 20:14:22 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=96157
Change 96157 by marcel at 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 *);
More information about the p4-projects
mailing list