summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/include/bsp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-07-11 14:14:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-07-11 14:14:15 +0000
commit6dd1665c70b9833ea34bfa34e3803c77efb7029e (patch)
treea9c08d9db4503b4fe1b4887854a2fb20ea36bbdf /c/src/lib/libbsp/sparc/leon3/include/bsp.h
parentUse newlib-1.14.0-rtems-20060707.diff (diff)
downloadrtems-6dd1665c70b9833ea34bfa34e3803c77efb7029e.tar.bz2
2006-07-11 Jerry Needell <jerry.needell@unh.edu>
* ChangeLog, Makefile.am, clock/ckinit.c, include/amba.h, include/bsp.h: Merge SPARC updates from 4.6 branch. Original modifications by Gaisler Enterprises.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/include/bsp.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h
index 2f5481a4dc..e443859ec9 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/bsp.h
@@ -42,6 +42,11 @@ extern "C" {
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
+/* add a entry to the device driver table so that I can call rtems_io_register_driver */
+#define CONFIGURE_NUMBER_OF_DRIVERS_LEON3 \
+ (((sizeof(Device_drivers) / sizeof(rtems_driver_address_table))) + 1)
+#define CONFIGURE_MAXIMUM_DRIVERS CONFIGURE_NUMBER_OF_DRIVERS_LEON3
+
/*
* Network driver configuration
*/
@@ -55,9 +60,22 @@ extern int rtems_smc91111_driver_attach_leon3(
struct rtems_bsdnet_ifconfig *config,
int attach
);
-#define RTEMS_BSP_NETWORK_DRIVER_NAME "open_eth1"
+extern int rtems_leon_greth_driver_attach(
+ struct rtems_bsdnet_ifconfig *config,
+ int attach
+);
+
+#define RTEMS_BSP_NETWORK_DRIVER_NAME_OPENETH "open_eth1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH rtems_leon_open_eth_driver_attach
+#define RTEMS_BSP_NETWORK_DRIVER_NAME_SMC91111 "smc_eth1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 rtems_smc91111_driver_attach_leon3
+#define RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH "gr_eth1"
+#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH rtems_leon_greth_driver_attach
+
+#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
+#define RTEMS_BSP_NETWORK_DRIVER_NAME RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH
+#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
+#endif
/*
@@ -125,3 +143,5 @@ extern rtems_cpu_table Cpu_table; /* owned by BSP */
#endif
#endif
+
+