Converting kdrive server to Xorg driver
CooperYuan Cooper
cooperyuan at gmail.com
Wed Jan 7 06:28:50 PST 2009
sure, the two methods will call mmap function to map memory with
shared and no-cached flag.
On Wed, Jan 7, 2009 at 6:48 PM, Graeme Gregory <graeme at openmoko.org> wrote:
> Hi, I have been trying to convert a kdrive server for the freerunner
> phone into an Xorg driver and I have one small question that I can't
> seem to answer myself from TFM.
>
> This is on an arm device if that makes any difference.
>
> Is the following code in kdrive
>
> reg_base = (char *)KdMapDevice(0x8000000, 0x2400);
> KdSetMappedMode(0x8000000, 0x2400, KD_MAPPED_MODE_REGISTERS);
>
> equivalent to this code in Xorg?
>
> reg_base = xf86MapVidMem(pScreen->myNum, VIDMEM_MMIO, 0x8000000, 0x2400);
>
> Thanks
>
> Graeme
>
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>
More information about the xorg
mailing list