PatchworkOS
Loading...
Searching...
No Matches
named.h File Reference

Go to the source code of this file.

Data Structures

struct  aml_field_flags_t
 FieldFlags structure. More...
 
struct  aml_field_list_ctx_t
 Context passed to lower functions by aml_field_list_read(). More...
 
struct  aml_method_flags_t
 MethodFlags structure. More...
 

Typedefs

typedef struct aml_object aml_object_t
 
typedef struct aml_opregion_obj aml_opregion_obj_t
 
typedef struct aml_field_unit_obj aml_field_unit_obj_t
 
typedef struct aml_term_list_ctx aml_term_list_ctx_t
 
typedef uint8_t aml_sync_level_t
 
typedef uint8_t aml_proc_id_t
 ProcID structure, deprecated in version 6.4 of the ACPI specification.
 
typedef uint32_t aml_pblk_addr_t
 PblkAddr structure, deprecated in version 6.4 of the ACPI specification.
 
typedef uint8_t aml_pblk_len_t
 PblkLen structure, deprecated in version 6.4 of the ACPI specification.
 
typedef uint8_t aml_system_level_t
 SystemLevel structure.
 
typedef uint16_t aml_resource_order_t
 ResourceOrder structure.
 

Enumerations

enum  aml_region_space_t {
  AML_REGION_SYSTEM_MEMORY = 0x00 ,
  AML_REGION_SYSTEM_IO = 0x01 ,
  AML_REGION_PCI_CONFIG = 0x02 ,
  AML_REGION_EMBEDDED_CONTROL = 0x03 ,
  AML_REGION_SM_BUS = 0x04 ,
  AML_REGION_SYSTEM_CMOS = 0x05 ,
  AML_REGION_PCI_BAR_TARGET = 0x06 ,
  AML_REGION_IPMI = 0x07 ,
  AML_REGION_GENERAL_PURPOSE_IO = 0x08 ,
  AML_REGION_GENERIC_SERIAL_BUS = 0x09 ,
  AML_REGION_PCC = 0x0A ,
  AML_REGION_OEM_MIN = 0x80 ,
  AML_REGION_OEM_MAX = 0xFF
}
 Region Space Encoding. More...
 
enum  aml_access_type_t {
  AML_ACCESS_TYPE_ANY = 0 ,
  AML_ACCESS_TYPE_BYTE = 1 ,
  AML_ACCESS_TYPE_WORD = 2 ,
  AML_ACCESS_TYPE_DWORD = 3 ,
  AML_ACCESS_TYPE_QWORD = 4 ,
  AML_ACCESS_TYPE_BUFFER = 5
}
 Enum for all field access types, bits 0-3 of FieldFlags. More...
 
enum  aml_lock_rule_t {
  AML_LOCK_RULE_NO_LOCK = 0 ,
  AML_LOCK_RULE_LOCK = 1
}
 Enum for all field lock rules, bit 4 of FieldFlags. More...
 
enum  aml_update_rule_t {
  AML_UPDATE_RULE_PRESERVE = 0 ,
  AML_UPDATE_RULE_WRITE_AS_ONES = 1 ,
  AML_UPDATE_RULE_WRITE_AS_ZEROS = 2
}
 Enum for all field update rules, bits 5-6 of FieldFlags. More...
 
enum  aml_field_list_type_t {
  AML_FIELD_LIST_TYPE_FIELD ,
  AML_FIELD_LIST_TYPE_INDEX_FIELD ,
  AML_FIELD_LIST_TYPE_BANK_FIELD
}
 Enum for all FieldList types. More...
 

Functions

uint64_t aml_bank_value_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a BankValue structure from the AML byte stream.
 
uint64_t aml_region_space_read (aml_term_list_ctx_t *ctx, aml_region_space_t *out)
 Reads a RegionSpace structure from the AML byte stream.
 
uint64_t aml_region_offset_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a RegionOffset structure from the AML byte stream.
 
uint64_t aml_region_len_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a RegionLen structure from the AML byte stream.
 
uint64_t aml_def_opregion_read (aml_term_list_ctx_t *ctx)
 Reads a DefOpRegion structure from the AML byte stream.
 
uint64_t aml_field_flags_read (aml_term_list_ctx_t *ctx, aml_field_flags_t *out)
 Reads a FieldFlags structure from the AML byte stream.
 
uint64_t aml_name_field_read (aml_term_list_ctx_t *ctx, aml_field_list_ctx_t *fieldCtx)
 Reads a NamedField structure from the AML byte stream.
 
uint64_t aml_reserved_field_read (aml_term_list_ctx_t *ctx, aml_field_list_ctx_t *fieldCtx)
 Reads a ReservedField structure from the AML byte stream.
 
uint64_t aml_field_element_read (aml_term_list_ctx_t *ctx, aml_field_list_ctx_t *fieldCtx)
 Reads a FieldElement structure from the AML byte stream.
 
uint64_t aml_field_list_read (aml_term_list_ctx_t *ctx, aml_field_list_ctx_t *fieldCtx, const uint8_t *end)
 Reads a FieldList structure from the AML byte stream.
 
uint64_t aml_def_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefField structure from the AML byte stream.
 
uint64_t aml_def_index_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefIndexField structure from the AML byte stream.
 
uint64_t aml_def_bank_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefBankField structure from the AML byte stream.
 
uint64_t aml_method_flags_read (aml_term_list_ctx_t *ctx, aml_method_flags_t *out)
 Reads a MethodFlags structure from the AML byte stream.
 
uint64_t aml_def_method_read (aml_term_list_ctx_t *ctx)
 Reads a DefMethod structure from the AML byte stream.
 
uint64_t aml_def_device_read (aml_term_list_ctx_t *ctx)
 Reads a DefDevice structure from the AML byte stream.
 
uint64_t aml_sync_flags_read (aml_term_list_ctx_t *ctx, aml_sync_level_t *out)
 Reads a SyncFlags structure from the AML byte stream.
 
uint64_t aml_def_mutex_read (aml_term_list_ctx_t *ctx)
 Reads a DefMutex structure from the AML byte stream.
 
uint64_t aml_proc_id_read (aml_term_list_ctx_t *ctx, aml_proc_id_t *out)
 Reads a ProcID structure from the AML byte stream. Deprecated in ACPI 6.4 but still supported.
 
uint64_t aml_pblk_addr_read (aml_term_list_ctx_t *ctx, aml_pblk_addr_t *out)
 Reads a PblkAddr structure from the AML byte stream. Deprecated in ACPI 6.4 but still supported.
 
uint64_t aml_pblk_len_read (aml_term_list_ctx_t *ctx, aml_pblk_len_t *out)
 Reads a PblkLen structure from the AML byte stream. Deprecated in ACPI 6.4 but still supported.
 
uint64_t aml_def_processor_read (aml_term_list_ctx_t *ctx)
 Reads a DefProcessor structure from the AML byte stream. Deprecated in ACPI 6.4 but still supported.
 
aml_object_taml_source_buff_read (aml_term_list_ctx_t *ctx)
 Reads a SourceBuff structure from the AML byte stream.
 
uint64_t aml_bit_index_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a BitIndex structure from the AML byte stream.
 
uint64_t aml_byte_index_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a ByteIndex structure from the AML byte stream.
 
uint64_t aml_def_create_bit_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefCreateBitField structure from the AML byte stream.
 
uint64_t aml_def_create_byte_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefCreateByteField structure from the AML byte stream.
 
uint64_t aml_def_create_word_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefCreateWordField structure from the AML byte stream.
 
uint64_t aml_def_create_dword_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefCreateDWordField structure from the AML byte stream.
 
uint64_t aml_def_create_qword_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefCreateQWordField structure from the AML byte stream.
 
uint64_t aml_def_event_read (aml_term_list_ctx_t *ctx)
 Reads a DefEvent structure from the AML byte stream.
 
uint64_t aml_def_thermal_zone_read (aml_term_list_ctx_t *ctx)
 Reads a DefThermalZone structure from the AML byte stream.
 
uint64_t aml_system_level_read (aml_term_list_ctx_t *ctx, aml_system_level_t *out)
 Reads a SystemLevel structure from the AML byte stream.
 
uint64_t aml_resource_order_read (aml_term_list_ctx_t *ctx, aml_resource_order_t *out)
 Reads a ResourceOrder structure from the AML byte stream.
 
uint64_t aml_def_power_res_read (aml_term_list_ctx_t *ctx)
 Reads a DefPowerRes structure from the AML byte stream.
 
uint64_t aml_num_bits_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a NumBits structure from the AML byte stream.
 
uint64_t aml_def_create_field_read (aml_term_list_ctx_t *ctx)
 Reads a DefCreateField structure from the AML byte stream.
 
uint64_t aml_def_data_region_read (aml_term_list_ctx_t *ctx)
 Reads a DefDataRegion structure from the AML byte stream.
 
uint64_t aml_named_obj_read (aml_term_list_ctx_t *ctx)
 Reads a NamedObj structure from the AML byte stream.
 

Typedef Documentation

◆ aml_field_unit_obj_t

typedef struct aml_field_unit_obj aml_field_unit_obj_t

Definition at line 10 of file named.h.

◆ aml_object_t

typedef struct aml_object aml_object_t

Definition at line 8 of file named.h.

◆ aml_opregion_obj_t

typedef struct aml_opregion_obj aml_opregion_obj_t

Definition at line 9 of file named.h.

◆ aml_term_list_ctx_t

typedef struct aml_term_list_ctx aml_term_list_ctx_t

Definition at line 11 of file named.h.