ACPI AML decompiler w/ CFG recovery and structured pseudocode
29

Configure Feed

Select the types of activity you want to include in your feed.

tobi / src / op.h
620 B 35 lines
1#ifndef TOBI_OP_H 2#define TOBI_OP_H 3 4#include <stdint.h> 5 6typedef enum tobi_op_kind { 7 TOBI_OP_SIMPLE, 8 TOBI_OP_PKG, 9 TOBI_OP_NAMED, 10 TOBI_OP_EXPR, 11 TOBI_OP_CONTROL, 12 TOBI_OP_EXT 13} tobi_op_kind; 14 15typedef struct tobi_op { 16 uint16_t code; 17 const char *name; 18 tobi_op_kind kind; 19 int has_pkg_len; 20} tobi_op; 21 22typedef struct tobi_op_desc { 23 uint16_t code; 24 const char *operands; 25} tobi_op_desc; 26 27const tobi_op *tobi_op_find(uint8_t op); 28 29const tobi_op *tobi_op_find_ext(uint8_t ext); 30 31const tobi_op *tobi_op_find_code(uint16_t code); 32 33const char *tobi_op_operands(uint16_t code); 34 35#endif