[U-Boot] [PATCH v2] net: add opencore 10/100 ethernet mac driver
Thomas Chou
thomas at wytron.com.tw
Wed Apr 7 05:34:27 CEST 2010
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
More information about the U-Boot
mailing list