summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-02-20 21:24:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-02-20 21:24:50 +0000
commitd19443c71a3def5fa0f02dc93da911f919faf5aa (patch)
tree9d4ff4c246d4b5ef4b688e318e3718764ad0c7e8
parentFixed typo in PR category. (diff)
downloadrtems-d19443c71a3def5fa0f02dc93da911f919faf5aa.tar.bz2
2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 353/bsps * include/bsp.h: Let the application override the network driver and attach routine.
-rw-r--r--c/src/lib/libbsp/i386/pc386/ChangeLog6
-rw-r--r--c/src/lib/libbsp/i386/pc386/include/bsp.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog
index 356fc6c3b1..113f5d65e0 100644
--- a/c/src/lib/libbsp/i386/pc386/ChangeLog
+++ b/c/src/lib/libbsp/i386/pc386/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-20 Till Straumann <strauman@slac.stanford.edu>
+
+ PR 353/bsps
+ * include/bsp.h: Let the application override the network driver
+ and attach routine.
+
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
diff --git a/c/src/lib/libbsp/i386/pc386/include/bsp.h b/c/src/lib/libbsp/i386/pc386/include/bsp.h
index f71e880bc0..1bf4fb3619 100644
--- a/c/src/lib/libbsp/i386/pc386/include/bsp.h
+++ b/c/src/lib/libbsp/i386/pc386/include/bsp.h
@@ -87,8 +87,13 @@ extern int rtems_dec21140_driver_attach(struct rtems_bsdnet_ifconfig *, int);
#define BSP_DEC21140_NETWORK_DRIVER_NAME "dc1"
#define BSP_DEC21140_NETWORK_DRIVER_ATTACH rtems_dec21140_driver_attach
+#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
#define RTEMS_BSP_NETWORK_DRIVER_NAME BSP_DEC21140_NETWORK_DRIVER_NAME
+#endif
+
+#ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_DEC21140_NETWORK_DRIVER_ATTACH
+#endif
/*-------------------------------------------------------------------------+
| Constants