diff options
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index 4bf903e6ef..f95fe06966 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -124,6 +124,20 @@ struct host_command { uint8_t *host_get_memmap(int offset); /** + * Grab the memmap write mutex. This function should be called before + * multi-byte variable reads from ACPI, and before updating multi-byte + * memmap variables anywhere else. + */ +void host_lock_memmap(void); + +/** + * Release the memmap write mutex. This function should be called once + * a multi-byte variable read from ACPI is done, and when updating multi-byte + * memmap variables is done. + */ +void host_unlock_memmap(void); + +/** * Process a host command and return its response * * @param args Command handler args |