summaryrefslogtreecommitdiff
path: root/src/vmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmware.c')
-rw-r--r--src/vmware.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/vmware.c b/src/vmware.c
index 1af20d8..211d69d 100644
--- a/src/vmware.c
+++ b/src/vmware.c
@@ -131,11 +131,21 @@ vmwareReadReg(VMWAREPtr pVMWARE, int index)
* Block SIGIO for the duration, so we don't get interrupted after the
* outl but before the inl by a mouse move (which write to our registers).
*/
- int oldsigio, ret;
+ int ret;
+#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 22)
+ int oldsigio;
+
oldsigio = xf86BlockSIGIO();
+#else
+ input_lock();
+#endif
outl(pVMWARE->indexReg, index);
ret = inl(pVMWARE->valueReg);
+#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 22)
xf86UnblockSIGIO(oldsigio);
+#else
+ input_unlock();
+#endif
return ret;
}
@@ -146,11 +156,19 @@ vmwareWriteReg(VMWAREPtr pVMWARE, int index, CARD32 value)
* Block SIGIO for the duration, so we don't get interrupted in between
* the outls by a mouse move (which write to our registers).
*/
+#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 22)
int oldsigio;
oldsigio = xf86BlockSIGIO();
+#else
+ input_lock();
+#endif
outl(pVMWARE->indexReg, index);
outl(pVMWARE->valueReg, value);
+#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 22)
xf86UnblockSIGIO(oldsigio);
+#else
+ input_unlock();
+#endif
}
void