Re: device driver questions

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Fri Apr 13 2001 - 18:16:02 EST


Friedrich Steven E CONT CNIN wrote:
> If you want to mmap the device then you really want to put the
> device in its own 4K aligned 4K sized PCI window, otherwise adjacent
> devices will become accessible too and that might not be desirable.

If you can, reprogram the device's PCI configuration to have a 4k or
more sized window. (You said you were willing to move functionality
into the hardware, so I assume you can do this). That guarantees it
will be page aligned, and without other devices overlapping in
userspace.

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



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:22 EST