From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,98f9256d903bde7 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news2.volia.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Newsgroups: comp.os.linux.alpha Subject: Re: User mode IO acces - PCI A/D card - Alpha station XP900 Date: Tue, 11 Oct 2005 20:43:49 +0100 Message-ID: References: <1129032472.525938.270220@f14g2000cwb.googlegroups.com> <1129039826.382311.313210@g44g2000cwa.googlegroups.com> <1129046640.719784.48750@o13g2000cwo.googlegroups.com> <1129053803.033685.289950@g43g2000cwa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net aRn7Ed+bbffBSK18/F3X7wO/Ixv0dfbuIRcdJGQIRFy16SY3N6 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.15 (Security Through Obscurity, linux) Cancel-Lock: sha1:e9KapNUXppiNVgx7XtXtsU4rihY= Xref: g2news1.google.com comp.os.linux.alpha:491 Mathieu Chouquet-Stringer writes: > "lpgl" 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