Re: 64bit MMIO access

2013-03-10 Thread Jagath Weerasinghe
Hi, readq and writeq do the job. On Thu, Feb 28, 2013 at 11:15 PM, valdis.kletni...@vt.edu wrote: On Thu, 28 Feb 2013 22:46:58 +0100, Jagath Weerasinghe said: What are the read/write kernel functions to access 64bit MMIO addresses? Are there similar functions like readl() and writel() for

Re: 64bit MMIO access

2013-03-10 Thread Valdis . Kletnieks
On Sun, 10 Mar 2013 20:35:37 +0100, Jagath Weerasinghe said: readq and writeq do the job. Please double-check how those are implemented on your architecture. I seem to remember that on some systems, readq and writeq may not be atomic and may become two bus cycles. And some hardware cares about

Re: 64bit MMIO access

2013-03-10 Thread Valdis . Kletnieks
On Sun, 10 Mar 2013 20:35:37 +0100, Jagath Weerasinghe said: Hi, readq and writeq do the job. (hit send too soon) Also, the read/write [bwlq] functions refer to the width of the *data*, not the address pgpRFJDCHascC.pgp Description: PGP signature

64bit MMIO access

2013-02-28 Thread Jagath Weerasinghe
Hi, What are the read/write kernel functions to access 64bit MMIO addresses? Are there similar functions like readl() and writel() for 64bit systems? Regards, Jagath ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

64bit MMIO access

2013-02-28 Thread Jagath Weerasinghe
Hi, What are the read/write kernel functions to access 64bit MMIO addresses? Are there similar functions like readl() and writel() for 64bit systems? Regards, Jagath ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org