From: Jon S. <jon...@gm...> - 2004-10-15 21:12:27
|
On Fri, 15 Oct 2004 15:31:08 +0200, Felix K=FChling <fx...@gm...> wrote: > > >> On Fri, 15 Oct 2004 03:55:37 +0200, Felix K=FChling <fx...@gm...>= wrote: > > >>> I'm trying to get Shadow status working in the savage driver. I'd l= ike > > >>> to put the status page into locked shared memory and tell the Savag= e > > >>> chips about its physical address. I used a drmAddMap call copied fr= om > > >>> the MGA driver that looked like it did what I wanted. But I had to = find > > >>> out that the handle returned by drmAddMap is a kernel virtual addre= ss, > > >>> not a physical address. Later I saw that the status page seems to b= e > > >>> unused in the MGA driver. The code to get the physical address from= the > > >>> kernel virtual address is #if-ed out, probably for portability reas= ons. Another thought on this would be to allocate the fixed page in the device driver and create a permanent map entry for it. Then use the normal drmGetMap call and search through the maps to find it. This isn't much different than adding a permanent REGISTER or FB entry. You would probably need a new map type. --=20 Jon Smirl jon...@gm... |