From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] net/eth.c drivers/net/rtl8019.c eth_xxx function name dunplication
Date: Tue, 04 Jan 2011 11:20:22 +0100 [thread overview]
Message-ID: <4D22F466.7060904@denx.de> (raw)
In-Reply-To: <BA88111AC43448F28207F9912720F4A9@MrGates>
On 01/04/2011 08:55 AM, qq wrote:
> These words show me that net/eth.c has "eth_send" and drivers/net/rtl8019.c
> also has "eth_send" function as the same name.
> My board use RTL8019AS ethernet controller,s3c44b0 CPU.
> i couldn`t figure out what is wrong with the code and how to fix it,Thanks a
> lot for any suggestion
It seems to me that the rtl8019 driver was never updated according to
the eth_device stucture (I think it was the introduction of
CONFIG_NET_MULTI).
Network drivers must not expose global functions, and instead of that
they must set their callbacks in a struct eth_device and register itself
with eth_register().
Anyway, I do not find any board in actual u-boot code using this driver.
It seems to me like dead code...
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2011-01-04 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 7:55 [U-Boot] net/eth.c drivers/net/rtl8019.c eth_xxx function name dunplication qq
2011-01-04 10:20 ` Stefano Babic [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D22F466.7060904@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.