Re: [U-Boot] [PATCH 1/3] Introduce addr_map library

2008-11-24 Thread Scott Wood
On Mon, Nov 24, 2008 at 10:47:38AM -0600, Kumar Gala wrote: > +static struct { > + phys_addr_t paddr; > + unsigned int vaddr; > + unsigned int size; vaddr/size should be unsigned long (or uintptr_t/size_t). > +phys_addr_t addrmap_virt_to_phys(unsigned int vaddr) > +{ > + int i; >

[U-Boot] [PATCH 1/3] Introduce addr_map library

2008-11-24 Thread Kumar Gala
Add a library that helps in translating between virtual and physical addresses. This library can be useful as a simple means to implement map_physmem() and virt_to_phys() for platforms that need functionality beyond the simple 1:1 mapping. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- includ