summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2010-07-23 08:55:04 +0000
committerTill Straumann <strauman@slac.stanford.edu>2010-07-23 08:55:04 +0000
commit9d32a19998f9b70249bdf9daa8efde9262d71b9e (patch)
tree481472708d4a9571738b01c51fb75d8821e1daff
parente5d5352968e033e7a67e350bc82cadce53e610c4 (diff)
downloadlibbsdport-9d32a19998f9b70249bdf9daa8efde9262d71b9e.tar.bz2
2010-07-23 Till Straumann <Till.Straumann@TU-Berlin.de>
* libbsdport/devicet.c: Initialize libbspExt.
-rw-r--r--bsd_eth_drivers/ChangeLog4
-rw-r--r--bsd_eth_drivers/libbsdport/devicet.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/bsd_eth_drivers/ChangeLog b/bsd_eth_drivers/ChangeLog
index 384e5e8..c07d347 100644
--- a/bsd_eth_drivers/ChangeLog
+++ b/bsd_eth_drivers/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-23 Till Straumann <Till.Straumann@TU-Berlin.de>
+
+ * libbsdport/devicet.c: Initialize libbspExt.
+
2010-06-30 Till Straumann <Till.Straumann@TU-Berlin.de>
* libbsdport/bus.h: PPC's inlines from libcpu/io.h still have
diff --git a/bsd_eth_drivers/libbsdport/devicet.c b/bsd_eth_drivers/libbsdport/devicet.c
index 923918f..7d678fb 100644
--- a/bsd_eth_drivers/libbsdport/devicet.c
+++ b/bsd_eth_drivers/libbsdport/devicet.c
@@ -1,5 +1,9 @@
#define DEVICET_EXTERN_INLINE
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "devicet.h"
#include <rtems/rtems_bsdnet.h>
#include <sys/malloc.h>
@@ -12,6 +16,10 @@
#include <sys/bus.h>
#include "libbsdport_api.h"
+#ifdef HAVE_LIBBSPEXT
+#include <bsp/bspExt.h>
+#endif
+
#define DEBUG 0
int libbsdportAttachVerbose = DEBUG;
@@ -253,6 +261,10 @@ int n_bus;
if ( !attaching )
return ENOTSUP;
+#ifdef HAVE_LIBBSPEXT
+ bspExtInit();
+#endif
+
if ( (wantedunit = get_pci_triple(cfg->name)) < 0 ) {
get_name_unit(cfg->name, nm, &wantedunit);
} else {