[U-Boot-Users] [patch] rtl8139.c: use PCI IO map

Lucas Jin lucasjin at gmail.com
Sat Oct 13 17:16:30 CEST 2007


Wolfgang Denk Wrote:

>In message <200710131722183904740 at gmail.com> you wrote:
>>
>> Signed-off-by: Lucas Jin <lucasjin at gmail.com>
>> 
>> --- ./drivers/rtl8139.c.orig	2007-10-12 22:17:52.000000000 +0800
>> +++ ./drivers/rtl8139.c	2007-10-13 17:34:40.117515408 +0800
>
>Could you please explain which problem this patch is supposed to fix?

The rtl8139 specification says the configuration registers can be accessed through PCI memory mapping or PCI IO mapping.

The u-boot driver uses PCI memory mapping, but it doesn't work, so I changed it to PCI IO mapping.

The driver of rtl8139 in Linux Kernel also uses PCI IO mapping to access the configuration registers. 

>
>Best regards,
>
>Wolfgang Denk
>
>-- 
>DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
>HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
>Nearly everyone is in favor of going  to  heaven  but  too  many  are
>hoping  they'll  live  long  enough  to see an easing of the entrance
>requirements. Never appeal to a man's "better nature." he  might  not
>have one.



------------------		
Thanks		 
Lucas Jin







More information about the U-Boot mailing list