summaryrefslogtreecommitdiff
path: root/src/smi_xaa.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-12-18 20:47:24 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-12-18 20:47:24 -0200
commit6a91bcc111902c45cc75c865893848b7c6c0a0b1 (patch)
treede546a3852ba6a3c40dc7c2aa317eccecc9da7b9 /src/smi_xaa.c
parent5a07709ae41600bc02205753c64d764f11838240 (diff)
Add definitions for the SMI 501/502 "command list interpreter".
This also changes some bit operations to use a "bitfield" equivalent one, with named fields, that should make it easier to understand what is being tested. The enum smi_cli_cmd_code in smi_501.h is code that was added to a experimental smi_drm.h, but the hardware only supports basic 2d accel, and to compensate for the extra overhead for maintaining a command list (assuming it worked correctly) it would be required to have a special handling, like calling an ioctl to do the "busy loop" in the kernel (that is, should wait for an irq or a timeout). The problem is that even if waiting for a idle engine before crafting a command, and waiting again after submitting the command, there would be corruption on screen after some time. So, the "busy loop" in the kernel would only be useful if still using direct writes to mmio registers.
Diffstat (limited to 'src/smi_xaa.c')
-rw-r--r--src/smi_xaa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/smi_xaa.c b/src/smi_xaa.c
index 29b7c4d..f2c1cc6 100644
--- a/src/smi_xaa.c
+++ b/src/smi_xaa.c
@@ -30,6 +30,7 @@ authorization from the XFree86 Project and silicon Motion.
#endif
#include "smi.h"
+#include "smi_501.h"
#include "miline.h"
#include "xaalocal.h"