19#ifndef UACPI_BAREBONES_MODE
34#define UACPI_SLEEP_TYP_INVALID 0xFF
43#ifndef UACPI_REDUCED_HARDWARE
64#ifndef UACPI_REDUCED_HARDWARE
74#ifndef UACPI_REDUCED_HARDWARE
102#ifndef UACPI_REDUCED_HARDWARE
109#ifndef UACPI_BAREBONES_MODE
117 return "subsystem initialized";
119 return "namespace loaded";
121 return "namespace initialized";
127#define UACPI_ENSURE_INIT_LEVEL_AT_LEAST(lvl) \
129 if (uacpi_unlikely(g_uacpi_rt_ctx.init_level < lvl)) { \
131 "while evaluating %s: init level %d (%s) is too low, " \
132 "expected at least %d (%s)\n", __FUNCTION__, \
133 g_uacpi_rt_ctx.init_level, \
134 uacpi_init_level_to_string(g_uacpi_rt_ctx.init_level), lvl, \
135 uacpi_init_level_to_string(lvl) \
137 return UACPI_STATUS_INIT_LEVEL_MISMATCH; \
141#define UACPI_ENSURE_INIT_LEVEL_IS(lvl) \
143 if (uacpi_unlikely(g_uacpi_rt_ctx.init_level != lvl)) { \
145 "while evaluating %s: invalid init level %d (%s), " \
146 "expected %d (%s)\n", __FUNCTION__, \
147 g_uacpi_rt_ctx.init_level, \
148 uacpi_init_level_to_string(g_uacpi_rt_ctx.init_level), lvl, \
149 uacpi_init_level_to_string(lvl) \
151 return UACPI_STATUS_INIT_LEVEL_MISMATCH; \
static const uacpi_char * uacpi_init_level_to_string(uacpi_u8 lvl)
static uacpi_bool uacpi_check_flag(uacpi_u64 flag)
static uacpi_bool uacpi_is_hardware_reduced(void)
struct uacpi_runtime_context g_uacpi_rt_ctx
static uacpi_bool uacpi_should_log(enum uacpi_log_level lvl)
@ UACPI_INIT_LEVEL_SUBSYSTEM_INITIALIZED
@ UACPI_INIT_LEVEL_NAMESPACE_INITIALIZED
@ UACPI_INIT_LEVEL_NAMESPACE_LOADED
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
uacpi_object * root_object
struct acpi_gas pm1b_status_blk
uacpi_bool bad_timesource
uacpi_bool global_lock_acquired
uacpi_handle * global_lock_spinlock
uacpi_handle * global_lock_event
uacpi_u32 max_call_stack_depth
uacpi_u8 last_sleep_typ_b
uacpi_bool sci_handle_valid
struct acpi_gas pm1a_enable_blk
uacpi_u8 last_sleep_typ_a
uacpi_bool has_global_lock
uacpi_bool was_in_legacy_mode
uacpi_u32 global_lock_seq_num
uacpi_bool global_lock_pending
struct acpi_gas pm1b_enable_blk
uacpi_u64 opcodes_executed
uacpi_bool is_hardware_reduced
uacpi_u32 loop_timeout_seconds
struct acpi_gas pm1a_status_blk
uacpi_mutex * global_lock_mutex