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!postnews.google.com!o13g2000cwo.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: 13 Oct 2005 00:24:35 -0700 Organization: http://groups.google.com Message-ID: <1129188274.966456.295250@o13g2000cwo.googlegroups.com> 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> <1129104665.608896.112360@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 193.55.144.251 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1129188280 16842 127.0.0.1 (13 Oct 2005 07:24:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 13 Oct 2005 07:24:40 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=193.55.144.251; posting-account=JgR21w0AAAAdKU1jt6LoIUXWG5It1vkr Xref: g2news1.google.com comp.os.linux.alpha:499 Sorry it was not clear : I've just done (being superuser) an iopl (doesn't work without) and then used inb and outb on 0x8800 (+ register number). 0x8800 is the address that lspci give me for the advantech card's IO ports. What I've understood is that thanks to linux portability there's no difference in using IO ports on i386 and Alpha arch, although on the low levels it differs, the inb/outb functions hides all "dificulties". I've not already tried to access the card's memory (4ksamples FIFO) but I think the /dev/mem-mmap method will work, in condition of finding the offset for mmap with bus_base() in sys/io.h as M=E5ns Rullg=E5rd told previously. Thanks again.