1#pragma once
2
3#include <uacpi/platform/types.h>
4
5#define UACPI_DEFAULT_LOOP_TIMEOUT_SECONDS 30
6#define UACPI_DEFAULT_MAX_CALL_STACK_DEPTH 256
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12/*
13 * Set the maximum number of seconds a While loop is allowed to run for before
14 * getting timed out.
15 *
16 * 0 is treated a special value that resets the setting to the default value.
17 */
18void uacpi_context_set_loop_timeout(uacpi_u32 seconds);
19
20/*
21 * Set the maximum call stack depth AML can reach before getting aborted.
22 *
23 * 0 is treated as a special value that resets the setting to the default value.
24 */
25void uacpi_context_set_max_call_stack_depth(uacpi_u32 depth);
26
27uacpi_u32 uacpi_context_get_loop_timeout(void);
28
29#ifdef __cplusplus
30}
31#endif
32