From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] net: add opencore 10/100 ethernet mac driver
Date: Wed, 07 Apr 2010 11:34:27 +0800 [thread overview]
Message-ID: <4BBBFD43.1000800@wytron.com.tw> (raw)
In-Reply-To: <4BB983CB.9030707@gmail.com>
Hi Ben,
Thanks.
On 04/05/2010 02:31 PM, Ben Warren wrote:
> Hi Thomas,
>
>> + */
>> +struct ethoc {
>> + void *iobase;
> eth_device struct already has this. If you also want it in the
> private struct, please don't use void *.
OK. I will use eth_device and remove the private iobase.
>> +
>> + unsigned int num_tx;
>> + unsigned int cur_tx;
>> + unsigned int dty_tx;
>> +
>> + unsigned int num_rx;
>> + unsigned int cur_rx;
>> +
>> + u32 msg_enable;
> Please don't mix types like this. Using 'u32' and friends globally is
> preferred.
OK. I will use u32 and friends globally.
>>
>> +
>> +int ethoc_initialize(bd_t *bis, int base_addr)
> You don't use 'bis', so don't pass it in. I'd prefer to see you pass
> in the base address and an index in case somebody wants more than one
> (mainly useful for debugging)
Do you mean adding dev_num as index?
int ethoc_initialize(u8 dev_num, int base_addr)
Best regards,
Thomas
next prev parent reply other threads:[~2010-04-07 3:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 6:24 [U-Boot] [PATCH] net: add opencore 10/100 ethernet mac driver Thomas Chou
2010-03-24 7:54 ` Mike Frysinger
2010-03-24 13:38 ` Thomas Chou
2010-03-24 13:34 ` [U-Boot] [PATCH v2] " Thomas Chou
2010-03-31 3:07 ` Scott McNutt
2010-03-31 4:07 ` Ben Warren
2010-04-01 7:09 ` Michal Simek
2010-04-05 6:31 ` Ben Warren
2010-04-07 3:34 ` Thomas Chou [this message]
2010-04-07 17:26 ` Ben Warren
2010-04-15 14:32 ` [U-Boot] [PATCH v3] " Thomas Chou
2010-04-26 6:12 ` Ben Warren
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=4BBBFD43.1000800@wytron.com.tw \
--to=thomas@wytron.com.tw \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox