From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 12 Mar 2008 23:49:37 +0100 Subject: [U-Boot-Users] [PATCH] net: Divided code of NE2000 ethernet driver In-Reply-To: <47CE54F4.8040606@renesas.com> References: <47CE54F4.8040606@renesas.com> Message-ID: <20080312224937.GG18968@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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.