From f5b0d3fc2262a7fb3abe096eaa6a297a1f6b0ad3 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Thu, 11 Jul 2002 20:30:29 +0000 Subject: [PATCH] Add support for Intel EtherExpress Pro network interface. --- configure/os/CONFIG_SITE.Common.RTEMS-pc386 | 3 ++- src/RTEMS/base/rtems_netconfig.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure/os/CONFIG_SITE.Common.RTEMS-pc386 b/configure/os/CONFIG_SITE.Common.RTEMS-pc386 index 4b680d3b5..f921ab3a6 100644 --- a/configure/os/CONFIG_SITE.Common.RTEMS-pc386 +++ b/configure/os/CONFIG_SITE.Common.RTEMS-pc386 @@ -1,4 +1,5 @@ # # Site-specific overrides for RTEMS-pc386 target # -TARGET_CFLAGS += -DEPICS_RTEMS_NIC_3C509 +#TARGET_CFLAGS += -DEPICS_RTEMS_NIC_3C509 +TARGET_CFLAGS += -DEPICS_RTEMS_NIC_EEPRO diff --git a/src/RTEMS/base/rtems_netconfig.c b/src/RTEMS/base/rtems_netconfig.c index b357600db..bf6147efe 100644 --- a/src/RTEMS/base/rtems_netconfig.c +++ b/src/RTEMS/base/rtems_netconfig.c @@ -41,6 +41,11 @@ static struct rtems_bsdnet_ifconfig loopback_config = { # define NIC_NAME "ep0" # define NIC_ATTACH rtems_3c509_driver_attach +#elif defined(EPICS_RTEMS_NIC_EEPRO) /* Intel EtherExpressPr (82559ER) */ + extern int rtems_fxp_attach (struct rtems_bsdnet_ifconfig *, int); +# define NIC_NAME "fxp1" +# define NIC_ATTACH rtems_fxp_attach + #else /* Use NIC provided by BSP */ # define NIC_NAME RTEMS_BSP_NETWORK_DRIVER_NAME # define NIC_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH