ReactOS 0.4.17-dev-683-g0dafdc5
context.h File Reference
#include <uacpi/types.h>
#include <uacpi/log.h>
Include dependency graph for context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void uacpi_context_set_log_level (uacpi_log_level)
 
void uacpi_context_set_proactive_table_checksum (uacpi_bool)
 
void uacpi_context_set_loop_timeout (uacpi_u32 seconds)
 
void uacpi_context_set_max_call_stack_depth (uacpi_u32 depth)
 
uacpi_u32 uacpi_context_get_loop_timeout (void)
 

Function Documentation

◆ uacpi_context_get_loop_timeout()

uacpi_u32 uacpi_context_get_loop_timeout ( void  )

Definition at line 188 of file uacpi.c.

189{
190 return g_uacpi_rt_ctx.loop_timeout_seconds;
191}
struct uacpi_runtime_context g_uacpi_rt_ctx
Definition: uacpi.c:17

◆ uacpi_context_set_log_level()

void uacpi_context_set_log_level ( uacpi_log_level  lvl)

Set the minimum log level to be accepted by the logging facilities. Any logs below this level are discarded and not passed to uacpi_kernel_log, etc.

0 is treated as a special value that resets the setting to the default value.

E.g. for a log level of UACPI_LOG_INFO: UACPI_LOG_DEBUG -> discarded UACPI_LOG_TRACE -> discarded UACPI_LOG_INFO -> allowed UACPI_LOG_WARN -> allowed UACPI_LOG_ERROR -> allowed

Definition at line 28 of file uacpi.c.

29{
30 if (lvl == 0)
32
33 g_uacpi_rt_ctx.log_level = lvl;
34}
#define UACPI_DEFAULT_LOG_LEVEL
Definition: config.h:29

Referenced by uacpi_logger_initialize().

◆ uacpi_context_set_loop_timeout()

void uacpi_context_set_loop_timeout ( uacpi_u32  seconds)

Set the maximum number of seconds a While loop is allowed to run for before getting timed out.

0 is treated a special value that resets the setting to the default value.

Definition at line 172 of file uacpi.c.

173{
174 if (seconds == 0)
176
177 g_uacpi_rt_ctx.loop_timeout_seconds = seconds;
178}
#define UACPI_DEFAULT_LOOP_TIMEOUT_SECONDS
Definition: config.h:39

Referenced by uacpi_initialize().

◆ uacpi_context_set_max_call_stack_depth()

void uacpi_context_set_max_call_stack_depth ( uacpi_u32  depth)

Set the maximum call stack depth AML can reach before getting aborted.

0 is treated as a special value that resets the setting to the default value.

Definition at line 180 of file uacpi.c.

181{
182 if (depth == 0)
184
185 g_uacpi_rt_ctx.max_call_stack_depth = depth;
186}
#define UACPI_DEFAULT_MAX_CALL_STACK_DEPTH
Definition: config.h:48
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546

Referenced by uacpi_initialize().

◆ uacpi_context_set_proactive_table_checksum()

void uacpi_context_set_proactive_table_checksum ( uacpi_bool  setting)

Enables table checksum validation at installation time instead of first use. Note that this makes uACPI map the entire table at once, which not all hosts are able to handle at early init.

Definition at line 52 of file uacpi.c.

53{
54 if (setting)
56 else
57 g_uacpi_rt_ctx.flags &= ~UACPI_FLAG_PROACTIVE_TBL_CSUM;
58}
#define UACPI_FLAG_PROACTIVE_TBL_CSUM
Definition: uacpi.h:107