Re: Sparc64 and ATI fb, cannot mmap() - why?

From: David S. Miller (davem@redhat.com)
Date: Tue Jun 20 2000 - 06:03:54 EST


   Date: Tue, 20 Jun 2000 12:35:29 +0200 (CEST)
   From: Francis Galiegue <fg@mandrakesoft.com>

   Kernel is 2.2.16, and trying to mmap() from a custom
   application. The following code works for ALL machines except the
   Ultra5 with the ATI framebuffer, and I don't know why...

The mmio_off fb mechanism is not supported on Sparc. It just so
happened to work because the uninitialized value (ie. 0) happened to
be where the frame buffer is on the other cards you tried.

You have to know the offsets to the parts of the video device
aperature you wish to map. You can study the ati/cg6/ffb/etc.
drivers in the X server to see how the supported mechanism works.

Later,
David S. Miller
davem@redhat.com

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:19 EST