[U-Boot] in/out_le32, etc.

Shinya Kuribayashi skuribay at pobox.com
Sun Feb 13 15:41:29 CET 2011


On 02/12/2011 08:23 PM, Aaron Williams wrote:
> There's in_xxx/out_xxx, __raw_readx/__raw_writex and readx/writex.  What 
> exactly is the difference between all of these?  It looks like the in/out was 
> added recently and is not present in the mips io.h file.

In the MIPS code, 'mips_io_port_base' makes in_xxx/out_xxx distinct
from readx/writex.  And raw operations are never swapped in software.
Check <asm/io.h> for more details.

> For example, on our platform the PCI BAR address space is mapped to different 
> 64-bit address spaces depending on the bus number. It would be very helpful if 
> different macros were used for different I/O devices. For example, one set of 
> macros for accessing PCI BAR address space.


More information about the U-Boot mailing list