Chris Morley wrote:
> Just wondering:
> 
> When I made the driver for the Opto ac 5, I used Linux PCI driver calls 
> writel() and readl () to write and read the ports.
> Was this bad (blocking) or slow for the realtime thread? I think there is a 
> more direct way (using a pointer?)
> Can anyone comment?

As i understand it (poorly!), readl and writel compile to simple inlined 
memory accesses, so what you have should be fine.

See include/asm-x86/io_32.h in the linux kernel sources.


-- 
Sebastian Kuzminsky
what i like best about 12648430 is the coffee

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to