summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 12:43:37 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 12:43:37 -0500
commit816b85c6c2e0c166bd8251c22fb8ee7cb956652e (patch)
treeac0eb7cc6c854a0aa46aa877872ff0a78a6972f4
parenttestsuite/Makefile: Add netshell01 (diff)
downloadrtems-libbsd-816b85c6c2e0c166bd8251c22fb8ee7cb956652e.tar.bz2
pci_bus.c: Fix prototype/body mismatch
-rw-r--r--freebsd/i386/pci/pci_bus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/i386/pci/pci_bus.c b/freebsd/i386/pci/pci_bus.c
index f9d750f1..ec62ec14 100644
--- a/freebsd/i386/pci/pci_bus.c
+++ b/freebsd/i386/pci/pci_bus.c
@@ -68,9 +68,15 @@ legacy_pcib_maxslots(device_t dev)
/* read configuration space register */
+#ifdef __rtems__
+uint32_t
+legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
+ u_int reg, int bytes)
+#else
u_int32_t
legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
u_int reg, int bytes)
+#endif
{
return(pci_cfgregread(bus, slot, func, reg, bytes));
}