Accessing physical memory from kernel module

Hi

I am working with an Arm. It has several Chip Select Lines. I am working on a kernel module, using RTAI.

From User Space I can use open("/dev/mem", O_RDWR | O_SYNC) and mmap to access the memory for the CS Lines.

How can I do that in kernel Space?

Thank Frank benoit at tionex de

Reply to
Frank Benoit
Loading thread data ...

Ok, in comp.os.linux.development.system

#From: André David ( snipped-for-privacy@cern.ch) #Message 2 in thread #Subject: Re: Physical memory & hardware access #Newsgroups: comp.os.linux.development.system #Date: 2001-04-19 03:12:07 PST

I found the answer:

ptr = ioremap( physaddr, length );

Frank

Reply to
Frank Benoit

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.