This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
low level eth drivers and lwip
- From: Jani Monoses <jani at iv dot ro>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 11 Aug 2004 15:01:08 +0300
- Subject: low level eth drivers and lwip
This makes the remaining eth drivers which did not compile with lwip stop
using CYGPKG_IO_ETH_DRIVERS_NET as a condition to build the DSR.
I'll commit with Changelogs after one of the maintainers approves.
Also
http://sources.redhat.com/ml/ecos-patches/2004-08/msg00009.html
thanks
Jani
--- orig/packages/devs/eth/amd/lancepci/current/src/if_lancepci.c
+++ mod/packages/devs/eth/amd/lancepci/current/src/if_lancepci.c
@@ -180,7 +180,7 @@
// This conditioning out is necessary because of explicit calls to this
// DSR - which would not ever be called in the case of a polled mode
// usage ie. in RedBoot.
-#ifdef CYGPKG_IO_ETH_DRIVERS_NET
+#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
struct lancepci_priv_data* cpd = (struct lancepci_priv_data *)data;
struct cyg_netdevtab_entry *ndp = (struct cyg_netdevtab_entry *)(cpd->ndp);
struct eth_drv_sc *sc = (struct eth_drv_sc *)(ndp->device_instance);
--- orig/packages/devs/eth/amd/pcnet/current/src/if_pcnet.c
+++ mod/packages/devs/eth/amd/pcnet/current/src/if_pcnet.c
@@ -155,7 +155,7 @@
// This conditioning out is necessary because of explicit calls to this
// DSR - which would not ever be called in the case of a polled mode
// usage ie. in RedBoot.
-#ifdef CYGPKG_IO_ETH_DRIVERS_NET
+#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
struct pcnet_priv_data* cpd = (struct pcnet_priv_data *)data;
struct cyg_netdevtab_entry *ndp = (struct cyg_netdevtab_entry *)(cpd->ndp);
struct eth_drv_sc *sc = (struct eth_drv_sc *)(ndp->device_instance);
--- orig/packages/devs/eth/intel/i82559/current/src/if_i82559.c
+++ mod/packages/devs/eth/intel/i82559/current/src/if_i82559.c
@@ -2713,7 +2713,7 @@
// This conditioning out is necessary because of explicit calls to this
// DSR - which would not ever be called in the case of a polled mode
// usage ie. in RedBoot.
-#ifdef CYGPKG_IO_ETH_DRIVERS_NET
+#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
struct i82559* p_i82559 = (struct i82559 *)data;
struct cyg_netdevtab_entry *ndp =
(struct cyg_netdevtab_entry *)(p_i82559->ndp);
--- orig/packages/devs/eth/ns/dp83902a/current/src/if_dp83902a.c
+++ mod/packages/devs/eth/ns/dp83902a/current/src/if_dp83902a.c
@@ -101,7 +101,7 @@
// This conditioning out is necessary because of explicit calls to this
// DSR - which would not ever be called in the case of a polled mode
// usage ie. in RedBoot.
-#ifdef CYGPKG_IO_ETH_DRIVERS_NET
+#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
dp83902a_priv_data_t* dp = (dp83902a_priv_data_t *)data;
struct cyg_netdevtab_entry *ndp = (struct cyg_netdevtab_entry *)(dp->tab);
struct eth_drv_sc *sc = (struct eth_drv_sc *)(ndp->device_instance);
--- orig/packages/devs/eth/sh/etherc/current/src/if_etherc.c
+++ mod/packages/devs/eth/sh/etherc/current/src/if_etherc.c
@@ -125,7 +125,7 @@
// This conditioning out is necessary because of explicit calls to this
// DSR - which would not ever be called in the case of a polled mode
// usage ie. in RedBoot.
-#ifdef CYGPKG_IO_ETH_DRIVERS_NET
+#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
struct etherc_priv_data* cpd = (struct etherc_priv_data *)data;
struct cyg_netdevtab_entry *ndp = (struct cyg_netdevtab_entry *)(cpd->ndp);
struct eth_drv_sc *sc = (struct eth_drv_sc *)(ndp->device_instance);
--- orig/packages/devs/eth/via/rhine/current/src/if_rhine.c
+++ mod/packages/devs/eth/via/rhine/current/src/if_rhine.c
@@ -129,7 +129,7 @@
// This conditioning out is necessary because of explicit calls to this
// DSR - which would not ever be called in the case of a polled mode
// usage ie. in RedBoot.
-#ifdef CYGPKG_IO_ETH_DRIVERS_NET
+#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
struct rhine_priv_data* cpd = (struct rhine_priv_data *)data;
struct cyg_netdevtab_entry *ndp = (struct cyg_netdevtab_entry *)(cpd->ndp);
struct eth_drv_sc *sc = (struct eth_drv_sc *)(ndp->device_instance);