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-7-bit Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "lpgl" Newsgroups: comp.os.linux.alpha Subject: Re: User mode IO acces - PCI A/D card - Alpha station XP900 Date: 11 Oct 2005 11:03:23 -0700 Organization: http://groups.google.com Message-ID: <1129053803.033685.289950@g43g2000cwa.googlegroups.com> References: <1129032472.525938.270220@f14g2000cwb.googlegroups.com> <1129039826.382311.313210@g44g2000cwa.googlegroups.com> <1129046640.719784.48750@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 82.250.102.26 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1129053808 9128 127.0.0.1 (11 Oct 2005 18:03:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 Oct 2005 18:03:28 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=82.250.102.26; posting-account=JgR21w0AAAAdKU1jt6LoIUXWG5It1vkr Xref: g2news1.google.com comp.os.linux.alpha:487 >Well I wrote a device driver for a LCD display/keyboard on an Alpha box and >it is definitely I/O port based. >Moreover if you grep the source under arch/alpha you'll find plenty of >inb/outb and friends... 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 ? 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 ? Thanks.