
On 17:08 Wed 05 Mar , goda.yusuke wrote:
There are more devices of the NE2000 base. A present code is difficult for us to support more devices. To support more NE2000 clone devices, separated the function.
Signed-off-by: Yusuke Goda goda.yusuke@renesas.com
drivers/net/ne2000.c | 213 +++++++++--------------------- drivers/net/ne2000.h | 316 ++++++++++++++++----------------------------- drivers/net/ne2000_base.h | 282 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 456 insertions(+), 355 deletions(-) create mode 100644 drivers/net/ne2000_base.h
diff --git a/drivers/net/ne2000.c b/drivers/net/ne2000.c index b100657..4928014 100644 --- a/drivers/net/ne2000.c +++ b/drivers/net/ne2000.c @@ -82,25 +82,11 @@ Add SNMP
#ifdef CONFIG_DRIVER_NE2000
Btw please move this to the Makefile
-/* wor around udelay resetting OCR */ -static void my_udelay(long us) {
- long tmo;
/* @@ -234,7 +227,7 @@ static void dp83902a_start_xmit(int start_page, int len) { dp83902a_priv_data_t *dp = (dp83902a_priv_data_t *) &nic;
- cyg_uint8 *base = dp->base;
- u8 *base = dp->base;
Best Regards, J.