I'm still not sure entirely what you want?
If you just want the physical address of the Windows frame buffer, pull it out of the LCD DMA base register.
If you want a block of physical memory:
- VirtualAlloc a logical block of memory
- LockPages the number of pages in your block
- Find the page number of the first page and shift it left to give you your physical address.
The only issue is that the pages it gives you won't necessarily be physically contiguous... so giving them to the DMA will go *splat*.
If somebody can find or think of a way of latching a screen-update to the VSYNC then I'll finish my hardware double-buffering code and release it (I have a working hardware multi-buffer system, but no proper way of flipping between them - you can only flip just after a VSYNC).
I'm sure there's a nice way of doing it, but I can't find it. If only I had more time, I'd play with so many things. :'(
Cheers,
Ref.