>        Might seem like a dumb question, but I was wondering 
> how do I access memory mapped registers from the user space?
> 
> I've used *(volatile int*)IO_ADDRESS(x), inl(x), *(volatile 
> int*)(x), where x is 0xyyyy yyyy
> 
>  
> 
> Do I have to mmap it before I can do anything?


You need to use the /dev/mem driver. So open /dev/mem driver in your
application and then use mmap to create user-space mappings to the
desired registers. 

Cheers,
Jon
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to