Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Mathieu Chouquet-Stringer <mchouque_@_online_._fr>
Subject: Re: User mode IO acces - PCI A/D card - Alpha station XP900
Date: 11 Oct 2005 14:16:44 -0400	[thread overview]
Message-ID: <m3slv7kjg3.fsf@mcs.bigip.mine.nu> (raw)
In-Reply-To: 1129053803.033685.289950@g43g2000cwa.googlegroups.com

"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)?

-- 
Mathieu Chouquet-Stringer             
    "Le disparu, si l'on v�n�re sa m�moire, est plus pr�sent et
                 plus puissant que le vivant".
           -- Antoine de Saint-Exup�ry, Citadelle --


  reply	other threads:[~2005-10-11 18:16 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 [this message]
2005-10-11 19:43               ` Måns Rullgård
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