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!g49g2000cwa.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: 12 Oct 2005 01:34:54 -0700 Organization: http://groups.google.com Message-ID: <1129106094.783595.317440@g49g2000cwa.googlegroups.com> References: <1129032472.525938.270220@f14g2000cwb.googlegroups.com> <1129039826.382311.313210@g44g2000cwa.googlegroups.com> <1129046640.719784.48750@o13g2000cwo.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 1129106098 24812 127.0.0.1 (12 Oct 2005 08:34:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Oct 2005 08:34:58 +0000 (UTC) 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: g49g2000cwa.googlegroups.com; posting-host=193.55.144.251; posting-account=JgR21w0AAAAdKU1jt6LoIUXWG5It1vkr Xref: g2news1.google.com comp.os.linux.alpha:496 M=E5ns Rullg=E5rd a =E9crit : > The PCI I/O space is mapped to some high memory regions on Alpha. The > outb/inb functions simply access these memory addresses. These > functions are used for at least two reasons: 1) different machine > types map the I/O space at different addresses, and 2) for portability > to other architectures. > > Another thing to be aware of on the Alpha is that the PCI memory is > mapped at a high offset as well. You need to add a large number to > values listed by lspci to get the real address where a card can be > found, and use that when accessing /dev/mem. Again, this offset > varies between machine types. The function bus_base(), declared in > sys/io.h, will return the correct value. OK, that's good to know > It gets even more complicated. Both PCI memory and I/O are mapped > to several CPU address regions. Some of these are sparse, meaning > that a 32-bit write in that region will perform an 8-bit or 16-bit > write to the PCI bus. The reason for this is that the first Alpha > models only had instructions to access memory 32 or 64 bits at a > time. > > Then there's the IOMMU, but that's a different story, involving bus > mastering. Ouch... It's saying me I'm not at the end of my tests... Is there any docs somewhere to learn about all this good things : PCI, hardware access on Alpha ?