Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
acparser.h File Reference

Go to the source code of this file.

Macros

#define OP_HAS_RETURN_VALUE   1
 
#define ACPI_VAR_ARGS   ACPI_UINT32_MAX
 
#define ACPI_PARSE_DELETE_TREE   0x0001
 
#define ACPI_PARSE_NO_TREE_DELETE   0x0000
 
#define ACPI_PARSE_TREE_MASK   0x0001
 
#define ACPI_PARSE_LOAD_PASS1   0x0010
 
#define ACPI_PARSE_LOAD_PASS2   0x0020
 
#define ACPI_PARSE_EXECUTE   0x0030
 
#define ACPI_PARSE_MODE_MASK   0x0030
 
#define ACPI_PARSE_DEFERRED_OP   0x0100
 
#define ACPI_PARSE_DISASSEMBLE   0x0200
 
#define ACPI_PARSE_MODULE_LEVEL   0x0400
 

Functions

acpi_status acpi_ps_execute_method (struct acpi_evaluate_info *info)
 
u8acpi_ps_get_next_package_end (struct acpi_parse_state *parser_state)
 
characpi_ps_get_next_namestring (struct acpi_parse_state *parser_state)
 
void acpi_ps_get_next_simple_arg (struct acpi_parse_state *parser_state, u32 arg_type, union acpi_parse_object *arg)
 
acpi_status acpi_ps_get_next_namepath (struct acpi_walk_state *walk_state, struct acpi_parse_state *parser_state, union acpi_parse_object *arg, u8 method_call)
 
acpi_status acpi_ps_get_next_arg (struct acpi_walk_state *walk_state, struct acpi_parse_state *parser_state, u32 arg_type, union acpi_parse_object **return_arg)
 
union acpi_parse_objectacpi_ps_find_name (union acpi_parse_object *scope, u32 name, u32 opcode)
 
union acpi_parse_objectacpi_ps_get_parent (union acpi_parse_object *op)
 
struct acpi_opcode_infoacpi_ps_get_opcode_info (u16 opcode)
 
characpi_ps_get_opcode_name (u16 opcode)
 
u8 acpi_ps_get_argument_count (u32 op_type)
 
acpi_status acpi_ps_parse_aml (struct acpi_walk_state *walk_state)
 
u32 acpi_ps_get_opcode_size (u32 opcode)
 
u16 acpi_ps_peek_opcode (struct acpi_parse_state *state)
 
acpi_status acpi_ps_complete_this_op (struct acpi_walk_state *walk_state, union acpi_parse_object *op)
 
acpi_status acpi_ps_next_parse_state (struct acpi_walk_state *walk_state, union acpi_parse_object *op, acpi_status callback_status)
 
acpi_status acpi_ps_parse_loop (struct acpi_walk_state *walk_state)
 
acpi_status acpi_ps_init_scope (struct acpi_parse_state *parser_state, union acpi_parse_object *root)
 
union acpi_parse_objectacpi_ps_get_parent_scope (struct acpi_parse_state *state)
 
u8 acpi_ps_has_completed_scope (struct acpi_parse_state *parser_state)
 
void acpi_ps_pop_scope (struct acpi_parse_state *parser_state, union acpi_parse_object **op, u32 *arg_list, u32 *arg_count)
 
acpi_status acpi_ps_push_scope (struct acpi_parse_state *parser_state, union acpi_parse_object *op, u32 remaining_args, u32 arg_count)
 
void acpi_ps_cleanup_scope (struct acpi_parse_state *state)
 
void acpi_ps_append_arg (union acpi_parse_object *op, union acpi_parse_object *arg)
 
union acpi_parse_objectacpi_ps_find (union acpi_parse_object *scope, char *path, u16 opcode, u32 create)
 
union acpi_parse_objectacpi_ps_get_arg (union acpi_parse_object *op, u32 argn)
 
acpi_status acpi_ps_walk_parsed_aml (union acpi_parse_object *start_op, union acpi_parse_object *end_op, union acpi_operand_object *mth_desc, struct acpi_namespace_node *start_node, union acpi_operand_object **params, union acpi_operand_object **caller_return_desc, acpi_owner_id owner_id, acpi_parse_downwards descending_callback, acpi_parse_upwards ascending_callback)
 
acpi_status acpi_ps_get_next_walk_op (struct acpi_walk_state *walk_state, union acpi_parse_object *op, acpi_parse_upwards ascending_callback)
 
acpi_status acpi_ps_delete_completed_op (struct acpi_walk_state *walk_state)
 
void acpi_ps_delete_parse_tree (union acpi_parse_object *root)
 
union acpi_parse_objectacpi_ps_create_scope_op (void)
 
void acpi_ps_init_op (union acpi_parse_object *op, u16 opcode)
 
union acpi_parse_objectacpi_ps_alloc_op (u16 opcode)
 
void acpi_ps_free_op (union acpi_parse_object *op)
 
u8 acpi_ps_is_leading_char (u32 c)
 
u8 acpi_ps_is_prefix_char (u32 c)
 
void acpi_ps_set_name (union acpi_parse_object *op, u32 name)
 
u32 acpi_ps_sprint_path (char *buffer_start, u32 buffer_size, union acpi_parse_object *op)
 
u32 acpi_ps_sprint_op (char *buffer_start, u32 buffer_size, union acpi_parse_object *op)
 
void acpi_ps_show (union acpi_parse_object *op)
 

Macro Definition Documentation

#define ACPI_PARSE_DEFERRED_OP   0x0100

Definition at line 62 of file acparser.h.

#define ACPI_PARSE_DELETE_TREE   0x0001

Definition at line 53 of file acparser.h.

#define ACPI_PARSE_DISASSEMBLE   0x0200

Definition at line 63 of file acparser.h.

#define ACPI_PARSE_EXECUTE   0x0030

Definition at line 59 of file acparser.h.

#define ACPI_PARSE_LOAD_PASS1   0x0010

Definition at line 57 of file acparser.h.

#define ACPI_PARSE_LOAD_PASS2   0x0020

Definition at line 58 of file acparser.h.

#define ACPI_PARSE_MODE_MASK   0x0030

Definition at line 60 of file acparser.h.

#define ACPI_PARSE_MODULE_LEVEL   0x0400

Definition at line 65 of file acparser.h.

#define ACPI_PARSE_NO_TREE_DELETE   0x0000

Definition at line 54 of file acparser.h.

#define ACPI_PARSE_TREE_MASK   0x0001

Definition at line 55 of file acparser.h.

#define ACPI_VAR_ARGS   ACPI_UINT32_MAX

Definition at line 51 of file acparser.h.

#define OP_HAS_RETURN_VALUE   1

Definition at line 47 of file acparser.h.

Function Documentation

union acpi_parse_object* acpi_ps_alloc_op ( u16  opcode)
write

Definition at line 116 of file psutils.c.

void acpi_ps_append_arg ( union acpi_parse_object op,
union acpi_parse_object arg 
)

Definition at line 127 of file pstree.c.

void acpi_ps_cleanup_scope ( struct acpi_parse_state state)

Definition at line 247 of file psscope.c.

acpi_status acpi_ps_complete_this_op ( struct acpi_walk_state walk_state,
union acpi_parse_object op 
)

Definition at line 133 of file psparse.c.

union acpi_parse_object* acpi_ps_create_scope_op ( void  )
write

Definition at line 63 of file psutils.c.

acpi_status acpi_ps_delete_completed_op ( struct acpi_walk_state walk_state)
void acpi_ps_delete_parse_tree ( union acpi_parse_object root)

Definition at line 62 of file pswalk.c.

acpi_status acpi_ps_execute_method ( struct acpi_evaluate_info info)

Definition at line 215 of file psxface.c.

union acpi_parse_object* acpi_ps_find ( union acpi_parse_object scope,
char path,
u16  opcode,
u32  create 
)
write
union acpi_parse_object* acpi_ps_find_name ( union acpi_parse_object scope,
u32  name,
u32  opcode 
)
write
void acpi_ps_free_op ( union acpi_parse_object op)

Definition at line 172 of file psutils.c.

union acpi_parse_object* acpi_ps_get_arg ( union acpi_parse_object op,
u32  argn 
)
write

Definition at line 70 of file pstree.c.

u8 acpi_ps_get_argument_count ( u32  op_type)

Definition at line 811 of file psopcode.c.

acpi_status acpi_ps_get_next_arg ( struct acpi_walk_state walk_state,
struct acpi_parse_state parser_state,
u32  arg_type,
union acpi_parse_object **  return_arg 
)

Definition at line 707 of file psargs.c.

acpi_status acpi_ps_get_next_namepath ( struct acpi_walk_state walk_state,
struct acpi_parse_state parser_state,
union acpi_parse_object arg,
u8  method_call 
)

Definition at line 230 of file psargs.c.

char* acpi_ps_get_next_namestring ( struct acpi_parse_state parser_state)

Definition at line 156 of file psargs.c.

u8* acpi_ps_get_next_package_end ( struct acpi_parse_state parser_state)

Definition at line 127 of file psargs.c.

void acpi_ps_get_next_simple_arg ( struct acpi_parse_state parser_state,
u32  arg_type,
union acpi_parse_object arg 
)

Definition at line 391 of file psargs.c.

acpi_status acpi_ps_get_next_walk_op ( struct acpi_walk_state walk_state,
union acpi_parse_object op,
acpi_parse_upwards  ascending_callback 
)
struct acpi_opcode_info* acpi_ps_get_opcode_info ( u16  opcode)
read

Definition at line 736 of file psopcode.c.

char* acpi_ps_get_opcode_name ( u16  opcode)

Definition at line 781 of file psopcode.c.

u32 acpi_ps_get_opcode_size ( u32  opcode)

Definition at line 74 of file psparse.c.

union acpi_parse_object* acpi_ps_get_parent ( union acpi_parse_object op)
write
union acpi_parse_object* acpi_ps_get_parent_scope ( struct acpi_parse_state state)
write

Definition at line 62 of file psscope.c.

u8 acpi_ps_has_completed_scope ( struct acpi_parse_state parser_state)

Definition at line 83 of file psscope.c.

void acpi_ps_init_op ( union acpi_parse_object op,
u16  opcode 
)

Definition at line 89 of file psutils.c.

acpi_status acpi_ps_init_scope ( struct acpi_parse_state parser_state,
union acpi_parse_object root 
)

Definition at line 105 of file psscope.c.

u8 acpi_ps_is_leading_char ( u32  c)

Definition at line 199 of file psutils.c.

u8 acpi_ps_is_prefix_char ( u32  c)

Definition at line 207 of file psutils.c.

acpi_status acpi_ps_next_parse_state ( struct acpi_walk_state walk_state,
union acpi_parse_object op,
acpi_status  callback_status 
)

Definition at line 325 of file psparse.c.

acpi_status acpi_ps_parse_aml ( struct acpi_walk_state walk_state)

Definition at line 436 of file psparse.c.

acpi_status acpi_ps_parse_loop ( struct acpi_walk_state walk_state)

Definition at line 974 of file psloop.c.

u16 acpi_ps_peek_opcode ( struct acpi_parse_state state)

Definition at line 100 of file psparse.c.

void acpi_ps_pop_scope ( struct acpi_parse_state parser_state,
union acpi_parse_object **  op,
u32 arg_list,
u32 arg_count 
)

Definition at line 199 of file psscope.c.

acpi_status acpi_ps_push_scope ( struct acpi_parse_state parser_state,
union acpi_parse_object op,
u32  remaining_args,
u32  arg_count 
)

Definition at line 145 of file psscope.c.

void acpi_ps_set_name ( union acpi_parse_object op,
u32  name 
)

Definition at line 234 of file psutils.c.

void acpi_ps_show ( union acpi_parse_object op)
u32 acpi_ps_sprint_op ( char buffer_start,
u32  buffer_size,
union acpi_parse_object op 
)
u32 acpi_ps_sprint_path ( char buffer_start,
u32  buffer_size,
union acpi_parse_object op 
)
acpi_status acpi_ps_walk_parsed_aml ( union acpi_parse_object start_op,
union acpi_parse_object end_op,
union acpi_operand_object mth_desc,
struct acpi_namespace_node start_node,
union acpi_operand_object **  params,
union acpi_operand_object **  caller_return_desc,
acpi_owner_id  owner_id,
acpi_parse_downwards  descending_callback,
acpi_parse_upwards  ascending_callback 
)