diff options
Diffstat (limited to 'OvmfPkg/XenBusDxe/XenBusDxe.h')
-rw-r--r-- | OvmfPkg/XenBusDxe/XenBusDxe.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OvmfPkg/XenBusDxe/XenBusDxe.h b/OvmfPkg/XenBusDxe/XenBusDxe.h index 64579bb832..d80c118acf 100644 --- a/OvmfPkg/XenBusDxe/XenBusDxe.h +++ b/OvmfPkg/XenBusDxe/XenBusDxe.h @@ -97,4 +97,23 @@ struct _XENBUS_DEVICE { shared_info_t *SharedInfo;
};
+/*
+ * Helpers
+ */
+
+/**
+ Atomically test and clear a bit.
+
+ @param Bit Bit index to test in *Address
+ @param Address The Address to the buffer that contain the bit to test.
+
+ @return Value of the Bit before it was cleared.
+**/
+INT32
+EFIAPI
+TestAndClearBit (
+ IN INT32 Bit,
+ IN volatile VOID *Address
+ );
+
#endif
|