From 74b16fcdba85a6f851ffe2ecb63a0f16235285a0 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 5 Jul 2009 13:03:14 +0200 Subject: Implement support for engine ioctls. The glamo Xorg driver should only touch cmdq or 2d registers, so we enable/disable engines through framebuffer ioctls. This needs support from the kernel side. --- src/glamo-engine.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/glamo-engine.h') diff --git a/src/glamo-engine.h b/src/glamo-engine.h index 187fa1f..efba199 100644 --- a/src/glamo-engine.h +++ b/src/glamo-engine.h @@ -21,6 +21,13 @@ #include +#ifdef HAS_ENGINE_IOCTLS +#include + +typedef GLAMOEngine glamo_engine; + +#else + enum GLAMOEngine { GLAMO_ENGINE_CMDQ, GLAMO_ENGINE_ISP, @@ -29,6 +36,7 @@ enum GLAMOEngine { GLAMO_ENGINE_ALL, NB_GLAMO_ENGINES /*should be the last entry*/ }; +#endif /* #ifdef HAS_ENGINE_IOCTLS */ void GLAMOEngineEnable(GlamoPtr pGlamo, enum GLAMOEngine engine); @@ -45,4 +53,3 @@ GLAMOEngineBusy(GlamoPtr pGlamo, enum GLAMOEngine engine); void GLAMOEngineWait(GlamoPtr pGlamo, enum GLAMOEngine engine); - -- cgit v1.2.3