Kulwinder Atwal wrote:

> [EMAIL PROTECTED] wrote:
>
> > I am working with an dual-ported RAM which is on a motion control card and allows 
>the cardt and its host to share an area of fast
> > memory. my driver(in kenerl mode) should map the memory(i locate this memory in 
>0xd4000 of PC memory) into the user's memory
> > space. So processes in user's space can read this area directly.
> >
> > How can i do this, can i use ioremap/iounmap function in my driver?
>
> Yes, these are the correct functions to use in your device driver.

That is in Linux in your Linux device driver.  You may want to put all of your 
computationally intensive time critical code in RTL
using physical memory (PC memory).  And use fifos to communicate with your less time 
critical Linux code.  Then you don't have to
translate between virtual and physical.  This will allow you to make better use of the 
fast dual-ported RAM.

-  Kal.

>
> - Kal.
>
> >
> >
> > Thanks in advance!
> >
> > Liang jiangang
> >
> > ___________________________________________________________________
> > ÍÆ¼ö£¡EaseBand( http://easeband.163.com )ÈÃÄãÇáËÉÉÏÍø¡£
> >
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> > ---
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/~rtlinux/
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to