summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/smi.h5
-rw-r--r--src/smi_driver.c2
-rw-r--r--src/smi_xaa.c10
3 files changed, 17 insertions, 0 deletions
diff --git a/src/smi.h b/src/smi.h
index 0f72db9..db890b7 100644
--- a/src/smi.h
+++ b/src/smi.h
@@ -49,7 +49,10 @@ authorization from the XFree86 Project and Silicon Motion.
#include "fb.h"
+#ifdef HAVE_XAA_H
#include "xaa.h"
+#endif
+#include "xf86fbman.h"
#include "exa.h"
#include "xf86cmap.h"
#include "xf86i2c.h"
@@ -239,7 +242,9 @@ typedef struct
printed using a counter */
Bool useBIOS; /* Use BIOS for mode sets */
+#ifdef HAVE_XAA_H
XAAInfoRecPtr XAAInfoRec; /* XAA info Rec */
+#endif
/* EXA */
ExaDriverPtr EXADriverPtr;
diff --git a/src/smi_driver.c b/src/smi_driver.c
index 25eb742..05d7202 100644
--- a/src/smi_driver.c
+++ b/src/smi_driver.c
@@ -1847,9 +1847,11 @@ SMI_CloseScreen(int scrnIndex, ScreenPtr pScreen)
/* Restore console mode and unmap framebuffer */
SMI_LeaveVT(scrnIndex, 0);
+#ifdef HAVE_XAA_H
if (pSmi->XAAInfoRec != NULL) {
XAADestroyInfoRec(pSmi->XAAInfoRec);
}
+#endif
if (pSmi->EXADriverPtr) {
exaDriverFini(pScreen);
pSmi->EXADriverPtr = NULL;
diff --git a/src/smi_xaa.c b/src/smi_xaa.c
index f2c1cc6..95b5c95 100644
--- a/src/smi_xaa.c
+++ b/src/smi_xaa.c
@@ -32,6 +32,8 @@ authorization from the XFree86 Project and silicon Motion.
#include "smi.h"
#include "smi_501.h"
+#ifdef HAVE_XAA_H
+
#include "miline.h"
#include "xaalocal.h"
#include "xaarop.h"
@@ -62,9 +64,11 @@ static void SMI_SetupForImageWrite(ScrnInfoPtr, int, unsigned int, int, int,
static void SMI_SubsequentImageWriteRect(ScrnInfoPtr, int, int, int, int, int);
#endif
+#endif
Bool
SMI_XAAInit(ScreenPtr pScreen)
{
+#ifdef HAVE_XAA_H
XAAInfoRecPtr infoPtr;
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
SMIPtr pSmi = SMIPTR(pScrn);
@@ -187,8 +191,13 @@ SMI_XAAInit(ScreenPtr pScreen)
ret = XAAInit(pScreen, infoPtr);
LEAVE(ret);
+#else
+ return FALSE;
+#endif
}
+
+#ifdef HAVE_XAA_H
/******************************************************************************/
/* Screen to Screen Copies */
/******************************************************************************/
@@ -720,3 +729,4 @@ SMI_SubsequentImageWriteRect(ScrnInfoPtr pScrn, int x, int y, int w, int h,
LEAVE();
}
#endif
+#endif