1Note that current msm kernel driver is a bit strange.  It provides a
2DRM interface for GEM, which is basically sufficient to have DRI2
3working.  But it does not provide KMS.  And interface to 2d and 3d
4cores is via different other devices (/dev/kgsl-*).  This is not
5quite how I'd write a DRM driver, but at this stage it is useful for
6xf86-video-freedreno and fdre (and eventual gallium driver) to be
7able to work on existing kernel driver from QCOM, to allow to
8capture cmdstream dumps from the binary blob drivers without having
9to reboot.  So libdrm_freedreno attempts to hide most of the crazy.
10The intention is that when there is a proper kernel driver, it will
11be mostly just changes in libdrm_freedreno to adapt the gallium
12driver and xf86-video-freedreno (ignoring the fbdev->KMS changes).
13
14So don't look at freedreno as an example of how to write a libdrm
15module or a DRM driver.. it is just an attempt to paper over a non-
16standard kernel driver architecture.
17