Messages in this thread | | | Date | Thu, 16 Apr 1998 14:04:17 -0700 | From | Peter Monta <> | Subject | Re: PCI Device Driver Development |
| |
> [ TrueTime GPS Down Converter (rev 1). ] > ... > The documentation does not reveal which addresses the > regiesters get mapped to. Can you tell from this?
Not exactly, no, the documentation really should say. You can experiment---are there some status registers whose values you would recognize? Could print out several registers from each of the mappings and work out which is which. Sometimes the device will map its internal registers to both a memory BAR and an I/O BAR, so the first two in your listing could well be windows onto the same locations.
> Remember, this card has > a LOT of registers to hold the time/location/satellite values. Once I > figure out the address, do I need to do any paging for this many registers?
I'm not sure I understand the "paging"---certainly PCI itself is linearly addressed, so you just ask for location n. I suppose some devices might have a scheme for writing an address first, then reading the corresponding value (thus saving address space), but there's little need for this sort of thing in a new design.
Cheers, Peter Monta pmonta@imedia.com Imedia Corp.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |