lkml.org 
[lkml]   [2003]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: How do I access ioports from userspace?
>>>>> "Jes" == Jes Sorensen <jes@trained-monkey.org> writes:

>>>>> "Ben" == Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
Ben> On Fri, 2003-09-26 at 09:34, Frank v Waveren wrote:
>>> in[bwl]/out[bwl] are available on a lot more than just x86. Mind
>>> you, the mechanisms are subtly different. Then again, if you're
>>> using direct hardware access you're not going for portability
>>> anyway.

Ben> Are they from userland ? I doubt it...

Jes> Actually yes on some architectures, ia64 emulates it the ia32
Jes> API. That said, it's certainly not something one should be
Jes> encouraged to do, using MMIO is a far better approach.

They're available at least in i386, alpha, ia64.
However they allow access only to the first 64k of IO address space.
So you may not be able to access you device if it's in the wrong PCI
slot...

--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
You are lost in a maze of BitKeeper repositories, all slightly different.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.069 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site