This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help lcs_support.c IPAQ


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]