aml-build.h (e2ea299b01fbd9d4d0262cfbfcbdbd02ada984a5) | aml-build.h (6ece7053d6a4a502d2ea5d24ecf512caaa1437c7) |
---|---|
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 8typedef enum { --- 28 unchanged lines hidden (view full) --- 37 aml_buffer_acc = 5, 38} AmlFieldFlags; 39 40typedef enum { 41 aml_system_memory = 0x00, 42 aml_system_io = 0x01, 43} AmlRegionSpace; 44 | 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 8typedef enum { --- 28 unchanged lines hidden (view full) --- 37 aml_buffer_acc = 5, 38} AmlFieldFlags; 39 40typedef enum { 41 aml_system_memory = 0x00, 42 aml_system_io = 0x01, 43} AmlRegionSpace; 44 |
45typedef enum { 46 aml_memory_range = 0, 47 aml_io_range = 1, 48 aml_bus_number_range = 2, 49} AmlResourceType; 50 51typedef enum { 52 aml_sub_decode = 1 << 1, 53 aml_pos_decode = 0 54} AmlDecode; 55 56typedef enum { 57 aml_max_fixed = 1 << 3, 58 aml_max_not_fixed = 0, 59} AmlMaxFixed; 60 61typedef enum { 62 aml_min_fixed = 1 << 2, 63 aml_min_not_fixed = 0 64} AmlMinFixed; 65 66/* 67 * ACPI 1.0b: Table 6-26 I/O Resource Flag (Resource Type = 1) Definitions 68 * _RNG field definition 69 */ 70typedef enum { 71 aml_isa_only = 1, 72 aml_non_isa_only = 2, 73 aml_entire_range = 3, 74} AmlISARanges; 75 76/* 77 * ACPI 1.0b: Table 6-25 Memory Resource Flag (Resource Type = 0) Definitions 78 * _MEM field definition 79 */ 80typedef enum { 81 aml_non_cacheable = 0, 82 aml_cacheable = 1, 83 aml_write_combining = 2, 84 aml_prefetchable = 3, 85} AmlCacheble; 86 87/* 88 * ACPI 1.0b: Table 6-25 Memory Resource Flag (Resource Type = 0) Definitions 89 * _RW field definition 90 */ 91typedef enum { 92 aml_ReadOnly = 0, 93 aml_ReadWrite = 1, 94} AmlReadAndWrite; 95 |
|
45/** 46 * init_aml_allocator: 47 * 48 * Called for initializing API allocator which allow to use 49 * AML API. 50 * Returns: toplevel container which accumulates all other 51 * AML elements for a table. 52 */ --- 45 unchanged lines hidden (view full) --- 98Aml *aml_named_field(const char *name, unsigned length); 99Aml *aml_reserved_field(unsigned length); 100Aml *aml_local(int num); 101Aml *aml_string(const char *name_format, ...) GCC_FMT_ATTR(1, 2); 102Aml *aml_equal(Aml *arg1, Aml *arg2); 103Aml *aml_processor(uint8_t proc_id, uint32_t pblk_addr, uint8_t pblk_len, 104 const char *name_format, ...) GCC_FMT_ATTR(4, 5); 105Aml *aml_eisaid(const char *str); | 96/** 97 * init_aml_allocator: 98 * 99 * Called for initializing API allocator which allow to use 100 * AML API. 101 * Returns: toplevel container which accumulates all other 102 * AML elements for a table. 103 */ --- 45 unchanged lines hidden (view full) --- 149Aml *aml_named_field(const char *name, unsigned length); 150Aml *aml_reserved_field(unsigned length); 151Aml *aml_local(int num); 152Aml *aml_string(const char *name_format, ...) GCC_FMT_ATTR(1, 2); 153Aml *aml_equal(Aml *arg1, Aml *arg2); 154Aml *aml_processor(uint8_t proc_id, uint32_t pblk_addr, uint8_t pblk_len, 155 const char *name_format, ...) GCC_FMT_ATTR(4, 5); 156Aml *aml_eisaid(const char *str); |
157Aml *aml_word_bus_number(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, 158 AmlDecode dec, uint16_t addr_gran, 159 uint16_t addr_min, uint16_t addr_max, 160 uint16_t addr_trans, uint16_t len); 161Aml *aml_word_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, 162 AmlDecode dec, AmlISARanges isa_ranges, 163 uint16_t addr_gran, uint16_t addr_min, 164 uint16_t addr_max, uint16_t addr_trans, 165 uint16_t len); 166Aml *aml_dword_memory(AmlDecode dec, AmlMinFixed min_fixed, 167 AmlMaxFixed max_fixed, AmlCacheble cacheable, 168 AmlReadAndWrite read_and_write, 169 uint32_t addr_gran, uint32_t addr_min, 170 uint32_t addr_max, uint32_t addr_trans, 171 uint32_t len); 172Aml *aml_qword_memory(AmlDecode dec, AmlMinFixed min_fixed, 173 AmlMaxFixed max_fixed, AmlCacheble cacheable, 174 AmlReadAndWrite read_and_write, 175 uint64_t addr_gran, uint64_t addr_min, 176 uint64_t addr_max, uint64_t addr_trans, 177 uint64_t len); |
|
106 107/* Block AML object primitives */ 108Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2); 109Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2); 110Aml *aml_method(const char *name, int arg_count); 111Aml *aml_if(Aml *predicate); 112Aml *aml_package(uint8_t num_elements); 113Aml *aml_buffer(void); --- 21 unchanged lines hidden --- | 178 179/* Block AML object primitives */ 180Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2); 181Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2); 182Aml *aml_method(const char *name, int arg_count); 183Aml *aml_if(Aml *predicate); 184Aml *aml_package(uint8_t num_elements); 185Aml *aml_buffer(void); --- 21 unchanged lines hidden --- |