aml-build.h (243bdb79fb0b2eda176cdef37700f29068a71d43) aml-build.h (ed8b5847e46c24d6e9c286892a00a34bee9b0835)
1#ifndef HW_ACPI_GEN_UTILS_H
2#define HW_ACPI_GEN_UTILS_H
3
4#include <stdint.h>
5#include <glib.h>
6#include "qemu/compiler.h"
7#include "hw/acpi/acpi-defs.h"
8

--- 239 unchanged lines hidden (view full) ---

248 uint64_t len);
249
250/* Block AML object primitives */
251Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
252Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
253Aml *aml_method(const char *name, int arg_count);
254Aml *aml_if(Aml *predicate);
255Aml *aml_package(uint8_t num_elements);
1#ifndef HW_ACPI_GEN_UTILS_H
2#define HW_ACPI_GEN_UTILS_H
3
4#include <stdint.h>
5#include <glib.h>
6#include "qemu/compiler.h"
7#include "hw/acpi/acpi-defs.h"
8

--- 239 unchanged lines hidden (view full) ---

248 uint64_t len);
249
250/* Block AML object primitives */
251Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
252Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
253Aml *aml_method(const char *name, int arg_count);
254Aml *aml_if(Aml *predicate);
255Aml *aml_package(uint8_t num_elements);
256Aml *aml_buffer(void);
256Aml *aml_buffer(int buffer_size, uint8_t *byte_list);
257Aml *aml_resource_template(void);
258Aml *aml_field(const char *name, AmlAccessType type, AmlUpdateRule rule);
259Aml *aml_varpackage(uint32_t num_elements);
260
261void
262build_header(GArray *linker, GArray *table_data,
263 AcpiTableHeader *h, const char *sig, int len, uint8_t rev);
264void *acpi_data_push(GArray *table_data, unsigned size);
265unsigned acpi_data_len(GArray *table);
266void acpi_add_table(GArray *table_offsets, GArray *table_data);
267void acpi_build_tables_init(AcpiBuildTables *tables);
268void acpi_build_tables_cleanup(AcpiBuildTables *tables, bool mfre);
269void
270build_rsdt(GArray *table_data, GArray *linker, GArray *table_offsets);
271
272#endif
257Aml *aml_resource_template(void);
258Aml *aml_field(const char *name, AmlAccessType type, AmlUpdateRule rule);
259Aml *aml_varpackage(uint32_t num_elements);
260
261void
262build_header(GArray *linker, GArray *table_data,
263 AcpiTableHeader *h, const char *sig, int len, uint8_t rev);
264void *acpi_data_push(GArray *table_data, unsigned size);
265unsigned acpi_data_len(GArray *table);
266void acpi_add_table(GArray *table_offsets, GArray *table_data);
267void acpi_build_tables_init(AcpiBuildTables *tables);
268void acpi_build_tables_cleanup(AcpiBuildTables *tables, bool mfre);
269void
270build_rsdt(GArray *table_data, GArray *linker, GArray *table_offsets);
271
272#endif