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!news3.google.com!news.glorb.com!atl-c03.usenetserver.com!news.usenetserver.com!bigfeed3.bellsouth.net!bigfeed2.bellsouth.net!news.bellsouth.net!hwmnpeer01.lga!hwmedia!hw-filter.lga!fe10.lga.POSTED!53ab2750!not-for-mail Sender: mchouque@mcs.bigip.mine.nu Newsgroups: comp.os.linux.alpha Subject: Re: User mode IO acces - PCI A/D card - Alpha station XP900 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> X-Face: %JOeya=Dg!}[/#Go&*&cQ+)){p1c8}u\Fg2Q3&)kothIq|JnWoVzJtCFo~4X Organization: Uh? Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: 11 Oct 2005 14:16:44 -0400 NNTP-Posting-Host: 67.83.202.227 X-Complaints-To: abuse@cv.net X-Trace: fe10.lga 1129054604 67.83.202.227 (Tue, 11 Oct 2005 11:16:44 MST) NNTP-Posting-Date: Tue, 11 Oct 2005 11:16:44 MST Xref: g2news1.google.com comp.os.linux.alpha:489 "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)? -- 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 --