From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,98f9256d903bde7,start X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: patrice.lespagnol@obs-nancay.fr Newsgroups: comp.os.linux.alpha Subject: User mode IO acces - PCI A/D card - Alpha station XP900 Date: 11 Oct 2005 05:07:52 -0700 Organization: http://groups.google.com Message-ID: <1129032472.525938.270220@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 193.55.144.251 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1129032477 13060 127.0.0.1 (11 Oct 2005 12:07:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 Oct 2005 12:07:57 +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: f14g2000cwb.googlegroups.com; posting-host=193.55.144.251; posting-account=JgR21w0AAAAdKU1jt6LoIUXWG5It1vkr Xref: g2news1.google.com comp.os.linux.alpha:479 Hi, I'am trying to access an A/D PCI card : Advantech PCI1713 http://www.advantech.com/products/Model_Detail.asp?model_id=1-D6GDX&PD= I want to read and write IO registers from a user process. My system : Gentoo Alpha, kernel 2.6.11.4 on Hardware : Alpha Station XP900 http://h18002.www1.hp.com/products/quickspecs/soc_archives/80013.html What I've already done is mmap 1 page of physical memory from /dev/mem (lspci -vv giving me the IO address of my card = offset for mmap /dev/mem) to my process memory. My problem is when I write a byte on a read-only register of my card, and then read it, it seems to really have been writen. So I doubt it actually works. Am I missing something on mmap and /dev/mem for linux alpha ? Is there a clever way to acces my card ? thanks for help !