Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "Måns Rullgård" <mru@inprovide.com>
Subject: Re: User mode IO acces - PCI A/D card - Alpha station XP900
Date: Tue, 11 Oct 2005 20:43:49 +0100	[thread overview]
Message-ID: <yw1xll0zu9e2.fsf@ford.inprovide.com> (raw)
In-Reply-To: m3slv7kjg3.fsf@mcs.bigip.mine.nu

Mathieu Chouquet-Stringer <mchouque_@_online_._fr> writes:

> "lpgl" <patrice.lespagnol@obs-nancay.fr> writes:
>> OK.  So from a purely user space point of view you suggest :
>> - get the right to acess IO port 0x8800,
>> - then use in/out family fuctions to do my stuff with the card
>> registers ?
>
> Yeah.
>
>> Do you know what is the way to get the IO ports permission ? I've at
>> first time (before trying mmap on /dev/mem/ in fact)  done an iopl()
>> but got a segfault with inb then cause i was accessing 0x0 ! Perhaps
>> something with /dev/port so ?
>
> Well, I've done this in user space on intel but never on alpha as my driver
> is kernel based (and my alpha is down atm).
>
> As iopl seems to be an i386 thing, have you tried without? And when you say
> you were trying to access 0x0, what do you mean? inb(0x0)?

iopl() or ioperm() should both work.  Obviously, you need root
privileges to do it.

-- 
M�ns Rullg�rd
mru@inprovide.com


  reply	other threads:[~2005-10-11 19:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11 12:07 User mode IO acces - PCI A/D card - Alpha station XP900 patrice.lespagnol
2005-10-11 12:53 ` Mathieu Chouquet-Stringer
2005-10-11 12:55   ` Mathieu Chouquet-Stringer
2005-10-11 14:10   ` lpgl
2005-10-11 14:57     ` Mathieu Chouquet-Stringer
2005-10-11 16:04       ` lpgl
2005-10-11 16:22         ` Mathieu Chouquet-Stringer
2005-10-11 18:03           ` lpgl
2005-10-11 18:16             ` Mathieu Chouquet-Stringer
2005-10-11 19:43               ` Måns Rullgård [this message]
2005-10-12  8:11                 ` lpgl
2005-10-12 12:29                   ` Mathieu Chouquet-Stringer
2005-10-13  7:24                     ` lpgl
2005-10-12  7:56               ` lpgl
2005-10-11 18:13         ` Måns Rullgård
2005-10-12  8:34           ` lpgl
2005-10-12 20:49             ` Måns Rullgård
2005-10-13  7:53               ` lpgl
2005-10-13  8:23                 ` Måns Rullgård
2005-10-13 10:40                   ` lpgl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox