mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
acpi: add aml_field() & aml_named_field() terms
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
31127938f4
commit
214ae59f8e
2 changed files with 34 additions and 0 deletions
|
@ -28,6 +28,10 @@ typedef enum {
|
|||
aml_decode16 = 1,
|
||||
} AmlIODecode;
|
||||
|
||||
typedef enum {
|
||||
aml_byte_acc = 1,
|
||||
} AmlFieldFlags;
|
||||
|
||||
typedef enum {
|
||||
aml_system_memory = 0x00,
|
||||
aml_system_io = 0x01,
|
||||
|
@ -86,6 +90,7 @@ Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base,
|
|||
uint8_t aln, uint8_t len);
|
||||
Aml *aml_operation_region(const char *name, AmlRegionSpace rs,
|
||||
uint32_t offset, uint32_t len);
|
||||
Aml *aml_named_field(const char *name, unsigned length);
|
||||
|
||||
/* Block AML object primitives */
|
||||
Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
|
||||
|
@ -95,6 +100,7 @@ Aml *aml_if(Aml *predicate);
|
|||
Aml *aml_package(uint8_t num_elements);
|
||||
Aml *aml_buffer(void);
|
||||
Aml *aml_resource_template(void);
|
||||
Aml *aml_field(const char *name, AmlFieldFlags flags);
|
||||
|
||||
/* other helpers */
|
||||
GArray *build_alloc_array(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue