Messages in this thread | | | Subject | Re: device driver questions | Date | Fri, 13 Apr 2001 20:46:58 +0100 (BST) | From | Alan Cox <> |
| |
> My device shows up in /proc/iomem even before I load my device driver, > indicating that the pci subsystem mapped it into the kernel pages. But bar0
Actually the addresses you see there are physical bus addresses not neccessarily and on x86 quite likely not actually mapped.
> Why didn't the pci subsystem configure the device to appear on a page > boundary?
The device didnt ask to be on a page boundary
> the user program? I know I could create an ioctl call, but I would think > there must be some other method already in place, since this would affect > all pci devices.
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.
Or you could avoid providing mmap.
Alan
- 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/
| |