From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,7e930b7d42ecea7 X-Google-Attributes: gid111c93,public From: John Ward Subject: Re: Alpha and PCI Driver (w/ mmap) problems ... Date: 2000/05/12 Message-ID: <391BEA56.A9AED249@cfl.rr.com>#1/1 X-Deja-AN: 622512731 Content-Transfer-Encoding: 7bit References: <391958A4.4D5D66C7@cfl.rr.com> <8febtf$ei9$1@sunsystem5.informatik.tu-muenchen.de> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon.tampabay.rr.com 958130736 24.95.239.179 (Fri, 12 May 2000 07:25:36 EDT) Organization: RoadRunner - Central Florida MIME-Version: 1.0 NNTP-Posting-Date: Fri, 12 May 2000 07:25:36 EDT Newsgroups: comp.os.linux.alpha Georg Acher wrote: > Are you sure, that you really map the actual PCI address space? On Alpha, the > tiny 32bit-PCI space is not starting at CPU address 0. To convert the PCI > address into the addresses as needed by the CPU, you should use bus_to_virt. No I wasn't sure ... I tried the bus_to_virt() and related functions ... didn't get me anywhere. Finally I installed kernel 2.3.99-pre6 and I still wasn't able to mmap the data but I was (FINALLY!) able to readb/writeb the card after doing an ioremap() on the address. So I can now "see the card" and the data (albiet in a fashion other than I originally expected) ... after some reading in IO-mappings.txt kernel document - I'm not even sure it's possible to do the mmap on the alpha, it would appear that I got lucky on the Intel/x86 arch (in a non-portable way) with my mmap'ings. I tried the same code again on the original kernel 2.2.15 (minus kernel version porting diffs) and it wouldn't work (all ff's in my "registers") ... so I'm not sure what the deal is. I would still love to mmap the data, but for now I guess my only option is to deal with the data in readb/writeb() fashion. Unless anybody has any more suggestions or more specific examples to identify what I might try instead. Thanks for the info ... John