This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help lcs_support.c IPAQ
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Oscar <martinos72 at libero dot it>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 23 Oct 2003 07:03:04 -0600
- Subject: Re: [ECOS] Help lcs_support.c IPAQ
- Organization: MLB Associates
- References: <001c01c39965$96ceaea0$91940050@portatile1>
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