PCI device memory mapping.

Boussard Per (Per.Boussard@era-t.ericsson.se)
Tue, 5 Oct 1999 09:40:01 +0200 (MET DST)


Hello,

I'm waving my arms frantically hoping to produce a device driver for a
PCI-card. I've been able to find three memory mapped (LSB=0) addresses in
BAR's 0, 2 and 3 (I've masked out the 4 LSB's etc...). Now, to use those,
which I assume are physical addresses, I assume I need to make them
virtual somehow, but what is "The Right Way"(TM) to do that? I've been
tempted to use vremap(), but I can't say it works (no bells'n'whistles
from the card), and the comments in the code don't exactly indicate that
this is the right use for them. I'm on 2.0.36, but I can choose whatever
makes my life easier.

Any advice eagerly consumed.

Thanks!!

//Per

---
Per Boussard, KI/ERA/T/VU          Office: +46 8 404 55 11
UNIX System Administrator          Fax: +46 8 757 55 50
Ericsson Radio Systems AB          Home: +46 8 570 349 67
S-164 80 STOCKHOLM, SWEDEN         Email: Per.Boussard@era-t.ericsson.se

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/