[ECOS] Help lcs_support.c IPAQ

Gary Thomas gary@mlbassoc.com
Thu Oct 23 13:03:00 GMT 2003


On Thu, 2003-10-23 at 07:00, Oscar wrote:
> Hi,
> could somebody explain me because is necessary this code line in lcd_init()
> func.:
> 
>  fp = (struct lcd_frame
> *)hal_virt_to_phys_address((cyg_uint32)lcd_frame_buffer);
> 
> because the conversion in necessary, i can't work only with virtual address?
> 

The hardware needs to know the physical address of the frame buffer.
Your code can/must use the virtual address.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list