public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Help lcs_support.c IPAQ
@ 2003-10-23 13:00 Oscar
  2003-10-23 13:03 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: Oscar @ 2003-10-23 13:00 UTC (permalink / raw)
  To: ecos-discuss

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?

THANKS
OSCAR 



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Help lcs_support.c IPAQ
  2003-10-23 13:00 [ECOS] Help lcs_support.c IPAQ Oscar
@ 2003-10-23 13:03 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2003-10-23 13:03 UTC (permalink / raw)
  To: Oscar; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-23 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-23 13:00 [ECOS] Help lcs_support.c IPAQ Oscar
2003-10-23 13:03 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).