From: John Ward <wardj@cfl.rr.com>
Subject: Re: Alpha and PCI Driver (w/ mmap) problems ...
Date: 2000/05/12 [thread overview]
Message-ID: <391BEA56.A9AED249@cfl.rr.com> (raw)
In-Reply-To: 8febtf$ei9$1@sunsystem5.informatik.tu-muenchen.de
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
prev parent reply other threads:[~2000-05-12 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-10 4:00 Alpha and PCI Driver (w/ mmap) problems John Ward
2000-05-11 4:00 ` John Ward
2000-05-11 4:00 ` Georg Acher
2000-05-12 4:00 ` John Ward [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox