|
ReactOS 0.4.17-dev-684-ga6524ef
|
#include <uacpi/types.h>

Go to the source code of this file.
| #define UACPI_ACCEPTABLE 1 |
Definition at line 314 of file resources.h.
| #define UACPI_ADDRESS_FIXED 1 |
Definition at line 219 of file resources.h.
| #define UACPI_ADDRESS_NOT_FIXED 0 |
Definition at line 218 of file resources.h.
| #define UACPI_BUS_MASTER 0b1 |
Definition at line 133 of file resources.h.
| #define UACPI_CACHEABLE 1 |
Definition at line 186 of file resources.h.
| #define UACPI_CACHEABLE_WRITE_COMBINING 2 |
Definition at line 187 of file resources.h.
| #define UACPI_CONSUMER 1 |
Definition at line 211 of file resources.h.
| #define UACPI_CSI2_PHY_C 0b00 |
Definition at line 498 of file resources.h.
| #define UACPI_CSI2_PHY_D 0b01 |
Definition at line 499 of file resources.h.
| #define UACPI_DECODE_10 0b0 |
Definition at line 165 of file resources.h.
| #define UACPI_DECODE_16 0b1 |
Definition at line 164 of file resources.h.
| #define UACPI_DMA_COMPATIBILITY 0b00 |
Definition at line 136 of file resources.h.
| #define UACPI_DMA_TYPE_A 0b01 |
Definition at line 137 of file resources.h.
| #define UACPI_DMA_TYPE_B 0b10 |
Definition at line 138 of file resources.h.
| #define UACPI_DMA_TYPE_F 0b11 |
Definition at line 139 of file resources.h.
| #define UACPI_EXCLUSIVE 0 |
Definition at line 99 of file resources.h.
| #define UACPI_FREQUENCY_FIXED 0x0 |
Definition at line 592 of file resources.h.
| #define UACPI_FREQUENCY_VARIABLE 0x1 |
Definition at line 593 of file resources.h.
| #define UACPI_GOOD 0 |
Definition at line 313 of file resources.h.
| #define UACPI_GPIO_CONNECTION_INTERRUPT 0x00 |
Definition at line 344 of file resources.h.
| #define UACPI_GPIO_CONNECTION_IO 0x01 |
Definition at line 345 of file resources.h.
| #define UACPI_I2C_10BIT 0x1 |
Definition at line 411 of file resources.h.
| #define UACPI_I2C_7BIT 0x0 |
Definition at line 410 of file resources.h.
| #define UACPI_IO_MEM_STATIC 0 |
Definition at line 203 of file resources.h.
| #define UACPI_IO_MEM_TRANSLATION 1 |
Definition at line 202 of file resources.h.
| #define UACPI_IO_RESTRICTION_INPUT 0x1 |
Definition at line 356 of file resources.h.
| #define UACPI_IO_RESTRICTION_NONE 0x0 |
Definition at line 355 of file resources.h.
| #define UACPI_IO_RESTRICTION_NONE_PRESERVE 0x3 |
Definition at line 358 of file resources.h.
| #define UACPI_IO_RESTRICTION_OUTPUT 0x2 |
Definition at line 357 of file resources.h.
| #define UACPI_MODE_CONTROLLER_INITIATED 0x0 |
Definition at line 393 of file resources.h.
| #define UACPI_MODE_DEVICE_INITIATED 0x1 |
Definition at line 394 of file resources.h.
Definition at line 641 of file resources.h.
| #define UACPI_NON_CACHEABLE 0 |
Definition at line 185 of file resources.h.
| #define UACPI_NON_WRITABLE 0 |
Definition at line 181 of file resources.h.
| #define UACPI_NOT_WAKE_CAPABLE 0 |
Definition at line 104 of file resources.h.
| #define UACPI_PIN_CONFIG_BIAS_BUS_HOLD 0x06 |
Definition at line 526 of file resources.h.
| #define UACPI_PIN_CONFIG_BIAS_DEFAULT 0x03 |
Definition at line 523 of file resources.h.
| #define UACPI_PIN_CONFIG_BIAS_DISABLE 0x04 |
Definition at line 524 of file resources.h.
| #define UACPI_PIN_CONFIG_BIAS_HIGH_IMPEDANCE 0x05 |
Definition at line 525 of file resources.h.
| #define UACPI_PIN_CONFIG_BIAS_PULL_DOWN 0x02 |
Definition at line 522 of file resources.h.
| #define UACPI_PIN_CONFIG_BIAS_PULL_UP 0x01 |
Definition at line 521 of file resources.h.
| #define UACPI_PIN_CONFIG_DEFAULT 0x00 |
Definition at line 520 of file resources.h.
| #define UACPI_PIN_CONFIG_DEFAULT 0x00 |
Definition at line 520 of file resources.h.
| #define UACPI_PIN_CONFIG_DRIVE_OPEN_DRAIN 0x07 |
Definition at line 527 of file resources.h.
| #define UACPI_PIN_CONFIG_DRIVE_OPEN_SOURCE 0x08 |
Definition at line 528 of file resources.h.
| #define UACPI_PIN_CONFIG_DRIVE_PUSH_PULL 0x09 |
Definition at line 529 of file resources.h.
| #define UACPI_PIN_CONFIG_DRIVE_STRENGTH 0x0A |
Definition at line 530 of file resources.h.
| #define UACPI_PIN_CONFIG_INPUT_DEBOUNCE 0x0C |
Definition at line 532 of file resources.h.
| #define UACPI_PIN_CONFIG_INPUT_SCHMITT_TRIGGER 0x0D |
Definition at line 533 of file resources.h.
| #define UACPI_PIN_CONFIG_NO_PULL 0x03 |
Definition at line 369 of file resources.h.
| #define UACPI_PIN_CONFIG_PULL_DOWN 0x02 |
Definition at line 368 of file resources.h.
| #define UACPI_PIN_CONFIG_PULL_UP 0x01 |
Definition at line 367 of file resources.h.
| #define UACPI_PIN_CONFIG_SLEW_RATE 0x0B |
Definition at line 531 of file resources.h.
| #define UACPI_POLARITY_ACTIVE_BOTH 2 |
Definition at line 96 of file resources.h.
| #define UACPI_POLARITY_ACTIVE_HIGH 0 |
Definition at line 94 of file resources.h.
| #define UACPI_POLARITY_ACTIVE_LOW 1 |
Definition at line 95 of file resources.h.
| #define UACPI_POSITIVE_DECODE 0 |
Definition at line 214 of file resources.h.
| #define UACPI_PREFETCHABLE 3 |
Definition at line 188 of file resources.h.
| #define UACPI_PRODUCER 0 |
Definition at line 210 of file resources.h.
| #define UACPI_RANGE_BUS 2 |
Definition at line 199 of file resources.h.
| #define UACPI_RANGE_IO 1 |
Definition at line 198 of file resources.h.
| #define UACPI_RANGE_MEMORY 0 |
Definition at line 197 of file resources.h.
| #define UACPI_RANGE_TYPE_ACPI 2 |
Definition at line 193 of file resources.h.
| #define UACPI_RANGE_TYPE_MEMORY 0 |
Definition at line 191 of file resources.h.
| #define UACPI_RANGE_TYPE_NVS 3 |
Definition at line 194 of file resources.h.
| #define UACPI_RANGE_TYPE_RESERVED 1 |
Definition at line 192 of file resources.h.
| #define UACPI_SCALE_HZ 0b00 |
Definition at line 587 of file resources.h.
| #define UACPI_SCALE_KHZ 0b01 |
Definition at line 588 of file resources.h.
| #define UACPI_SCALE_MHZ 0b10 |
Definition at line 589 of file resources.h.
| #define UACPI_SHARED 1 |
Definition at line 100 of file resources.h.
| #define UACPI_SPI_3_WIRES 1 |
Definition at line 422 of file resources.h.
| #define UACPI_SPI_4_WIRES 0 |
Definition at line 421 of file resources.h.
| #define UACPI_SPI_ACTIVE_HIGH 1 |
Definition at line 426 of file resources.h.
| #define UACPI_SPI_ACTIVE_LOW 0 |
Definition at line 425 of file resources.h.
| #define UACPI_SPI_PHASE_FIRST 0 |
Definition at line 429 of file resources.h.
| #define UACPI_SPI_PHASE_SECOND 1 |
Definition at line 430 of file resources.h.
| #define UACPI_SPI_START_HIGH 1 |
Definition at line 434 of file resources.h.
| #define UACPI_SPI_START_LOW 0 |
Definition at line 433 of file resources.h.
| #define UACPI_SUB_OPTIMAL 2 |
Definition at line 315 of file resources.h.
| #define UACPI_SUBTRACTIVE_DECODE 1 |
Definition at line 215 of file resources.h.
| #define UACPI_TRANSFER_TYPE_16_BIT 0b10 |
Definition at line 130 of file resources.h.
| #define UACPI_TRANSFER_TYPE_8_AND_16_BIT 0b01 |
Definition at line 129 of file resources.h.
| #define UACPI_TRANSFER_TYPE_8_BIT 0b00 |
Definition at line 128 of file resources.h.
| #define UACPI_TRANSFER_WIDTH_128 0x04 |
Definition at line 146 of file resources.h.
| #define UACPI_TRANSFER_WIDTH_16 0x01 |
Definition at line 143 of file resources.h.
| #define UACPI_TRANSFER_WIDTH_256 0x05 |
Definition at line 147 of file resources.h.
| #define UACPI_TRANSFER_WIDTH_32 0x02 |
Definition at line 144 of file resources.h.
| #define UACPI_TRANSFER_WIDTH_64 0x03 |
Definition at line 145 of file resources.h.
| #define UACPI_TRANSFER_WIDTH_8 0x00 |
Definition at line 142 of file resources.h.
| #define UACPI_TRANSLATION_DENSE 0 |
Definition at line 206 of file resources.h.
| #define UACPI_TRANSLATION_SPARSE 1 |
Definition at line 207 of file resources.h.
| #define UACPI_TRIGGERING_EDGE 1 |
Definition at line 90 of file resources.h.
| #define UACPI_TRIGGERING_LEVEL 0 |
Definition at line 91 of file resources.h.
| #define UACPI_UART_BIG_ENDIAN 1 |
Definition at line 462 of file resources.h.
| #define UACPI_UART_CLEAR_TO_SEND (1 << 6) |
Definition at line 476 of file resources.h.
| #define UACPI_UART_DATA_5BITS 0b000 |
Definition at line 454 of file resources.h.
| #define UACPI_UART_DATA_6BITS 0b001 |
Definition at line 455 of file resources.h.
| #define UACPI_UART_DATA_7BITS 0b010 |
Definition at line 456 of file resources.h.
| #define UACPI_UART_DATA_8BITS 0b011 |
Definition at line 457 of file resources.h.
| #define UACPI_UART_DATA_9BITS 0b100 |
Definition at line 458 of file resources.h.
| #define UACPI_UART_DATA_CARRIER_DETECT (1 << 2) |
Definition at line 472 of file resources.h.
| #define UACPI_UART_DATA_SET_READY (1 << 4) |
Definition at line 474 of file resources.h.
| #define UACPI_UART_DATA_TERMINAL_READY (1 << 5) |
Definition at line 475 of file resources.h.
| #define UACPI_UART_FLOW_CONTROL_HW 0b01 |
Definition at line 481 of file resources.h.
| #define UACPI_UART_FLOW_CONTROL_NONE 0b00 |
Definition at line 480 of file resources.h.
| #define UACPI_UART_FLOW_CONTROL_XON_XOFF 0b10 |
Definition at line 482 of file resources.h.
| #define UACPI_UART_LITTLE_ENDIAN 0 |
Definition at line 461 of file resources.h.
| #define UACPI_UART_PARITY_EVEN 0x01 |
Definition at line 466 of file resources.h.
| #define UACPI_UART_PARITY_MARK 0x03 |
Definition at line 468 of file resources.h.
| #define UACPI_UART_PARITY_NONE 0x00 |
Definition at line 465 of file resources.h.
| #define UACPI_UART_PARITY_ODD 0x02 |
Definition at line 467 of file resources.h.
| #define UACPI_UART_PARITY_SPACE 0x04 |
Definition at line 469 of file resources.h.
| #define UACPI_UART_REQUEST_TO_SEND (1 << 7) |
Definition at line 477 of file resources.h.
| #define UACPI_UART_RING_INDICATOR (1 << 3) |
Definition at line 473 of file resources.h.
| #define UACPI_UART_STOP_BITS_1 0b01 |
Definition at line 449 of file resources.h.
| #define UACPI_UART_STOP_BITS_1_5 0b10 |
Definition at line 450 of file resources.h.
| #define UACPI_UART_STOP_BITS_2 0b11 |
Definition at line 451 of file resources.h.
| #define UACPI_UART_STOP_BITS_NONE 0b00 |
Definition at line 448 of file resources.h.
| #define UACPI_WAKE_CAPABLE 1 |
Definition at line 103 of file resources.h.
| #define UACPI_WRITABLE 1 |
Definition at line 182 of file resources.h.
| typedef union uacpi_address_attribute uacpi_address_attribute |
| typedef struct uacpi_resource uacpi_resource |
| typedef struct uacpi_resource_io uacpi_resource_io |
| typedef uacpi_iteration_decision(* uacpi_resource_iteration_callback) (void *user, uacpi_resource *resource) |
Definition at line 663 of file resources.h.
| typedef struct uacpi_resources uacpi_resources |
This applies to IRQ & StartDependent resources only. The DONT_CARE value is used for deserialization into the AML format to signify that the serializer is allowed to optimize the length down if possible. Note that this is generally not allowed unless the resource is generated by the caller:
– ACPI 6.5 ---------------------------------------------------------— The resource descriptors in the byte stream argument must be specified exactly as listed in the _CRS byte stream - meaning that the identical resource descriptors must appear in the identical order, resulting in a buffer of exactly the same length. Optimizations such as changing an IRQ descriptor to an IRQNoFlags descriptor (or vice-versa) must not be performed. Similarly, changing StartDependentFn to StartDependentFnNoPri
| Enumerator | |
|---|---|
| UACPI_RESOURCE_LENGTH_KIND_DONT_CARE | |
| UACPI_RESOURCE_LENGTH_KIND_ONE_LESS | |
| UACPI_RESOURCE_LENGTH_KIND_FULL | |
Definition at line 83 of file resources.h.
Definition at line 11 of file resources.h.
| uacpi_status uacpi_for_each_device_resource | ( | uacpi_namespace_node * | device, |
| const uacpi_char * | method, | ||
| uacpi_resource_iteration_callback | cb, | ||
| void * | user | ||
| ) |
A shorthand for uacpi_get_device_resources() + uacpi_for_each_resource().
Use if you don't actually want to save the 'resources' list, but simply want to iterate it once to extract the resources you care about and then free it right away.
Definition at line 2157 of file resources.c.
| uacpi_status uacpi_for_each_resource | ( | uacpi_resources * | resources, |
| uacpi_resource_iteration_callback | cb, | ||
| void * | user | ||
| ) |
A convenience helper for iterating over the resource list returned by any of the uacpi_get_*_resources functions.
Definition at line 2117 of file resources.c.
Referenced by native_resources_to_aml(), uacpi_for_each_device_resource(), and uacpi_native_resources_to_aml().
| void uacpi_free_resource | ( | uacpi_resource * | resource | ) |
Definition at line 2066 of file resources.c.
Referenced by uacpi_get_resource_from_buffer().
| void uacpi_free_resources | ( | uacpi_resources * | resources | ) |
Definition at line 2058 of file resources.c.
Referenced by uacpi_for_each_device_resource(), and uacpi_native_resources_from_aml().
| uacpi_status uacpi_get_current_resources | ( | uacpi_namespace_node * | device, |
| uacpi_resources ** | out_resources | ||
| ) |
Evaluate the _CRS method for a 'device' and get the returned resource list via 'out_resources'.
NOTE: the returned buffer must be released via uacpi_free_resources()
If you don't need to keep the resource array for later use you can uacpi_for_each_device_resource(device, "_CRS", ...) instead, which takes care of iteration & memory management on its own.
Definition at line 2095 of file resources.c.
| uacpi_status uacpi_get_device_resources | ( | uacpi_namespace_node * | device, |
| const uacpi_char * | method, | ||
| uacpi_resources ** | out_resources | ||
| ) |
Evaluate an arbitrary method that is expected to return an AML resource buffer for a 'device' and get the returned resource list via 'out_resources'.
NOTE: the returned buffer must be released via uacpi_free_resources()
If you don't need to keep the resource array for later use you can uacpi_for_each_device_resource(device, method, ...) instead, which takes care of iteration & memory management on its own.
Definition at line 2109 of file resources.c.
| uacpi_status uacpi_get_possible_resources | ( | uacpi_namespace_node * | device, |
| uacpi_resources ** | out_resources | ||
| ) |
Evaluate the _PRS method for a 'device' and get the returned resource list via 'out_resources'.
NOTE: the returned buffer must be released via uacpi_free_resources()
If you don't need to keep the resource array for later use you can uacpi_for_each_device_resource(device, "_PRS", ...) instead, which takes care of iteration & memory management on its own.
Definition at line 2102 of file resources.c.
| uacpi_status uacpi_get_resource_from_buffer | ( | uacpi_data_view | aml_buffer, |
| uacpi_resource ** | out_resource | ||
| ) |
Convert a single AML-encoded resource to native format.
This should be used for converting Connection() fields (passed during IO on GeneralPurposeIO or GenericSerialBus operation regions) or other similar buffers with only one resource to native format.
NOTE: the returned buffer must be released via uacpi_free_resource()
Definition at line 2024 of file resources.c.
| uacpi_status uacpi_set_resources | ( | uacpi_namespace_node * | device, |
| uacpi_resources * | resources | ||
| ) |
Set the configuration to be used by the 'device' by calling its _SRS method.
Note that this expects 'resources' in the normal 'uacpi_resources' format, and not the raw AML resources bytestream, the conversion to the latter is done automatically by this API. If you want to _SRS a raw AML resources bytestream, use 'uacpi_execute' or similar API directly.
Definition at line 2548 of file resources.c.