2008/10/15 caesar.qiu 裘赛海 <[EMAIL PROTECTED]>: > Hi, all. > > I want to develop a drm driver for silicon motion graphics card sm718. > But I can't find enough documents about how to. I have visited the website > http://dri.freedesktop.org, but I still have no idea how to start my > project. Now I have began to read the source codes of radeon drm driver, > It's hard to be understood without any documents. > > Can anyone help me? >
your best bet is to read the documentation here: http://dri.freedesktop.org/wiki/Documentation and the existing drm and mesa drivers. Generally there are 3 parts to a DRI enabled driver: ddx - Xorg driver handles modesetting, 2D, video accel, dri init, memory management, interfaces with Xserver drm - kernel module handles command submission management, gart setup, interrupts, dma mesa 3D driver - converts OpenGL to hw specific command streams which are sent to the drm However, the general trend it to move modesetting and memory management into the drm. This is a work in progress on AMD and Intel hardware. Under the new drm, the components break down as follows: ddx - Xorg driver generates 2D/video command streams submitted to drm, interfaces with Xserver drm - handles modesetting, asic init, memory management, command submission management, gart, interrupts, dma mesa 3D driver - converts OpenGL to hw specific command streams which are sent to the drm I would suggest reading over the existing drivers and asking specific questions. Alex ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel