On Thu, 15 Jun 2000, Jeff Garzik wrote:
> > In order to access PCI MMIO areas from userspace, you should open
> > "/dev/mem" (or "/dev/kmem") and then call mmap. The mmap call is something
> > as follows:
> Look at what he is trying to accomplish... He is writing a kernel
> driver which makes the MMIO areas available to userspace, so opening
> /dev/mem is bypassing his own efforts. :)
> In 2.3.x/2.4.x, there is io_remap_page_range which exists for exporting
> PCI MMIO areas to userspace. As James Simmons mentioned,
> drivers/video/fbmem.c is an example of such usage.
Also using /dev/mem is not portable. This will work on ix86 platforms but
not on other ones.
Q: Why did they deprecate a.out support in linux?
A: Because a nasty coff is bad for your elf.
James Simmons [email@example.com] ____/|
fbdev/console/gfx developer \ o.O|
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:11 EST