152#ifndef __ACRESTYP_H__
153#define __ACRESTYP_H__
159typedef UINT16 ACPI_RS_LENGTH;
160typedef UINT32 ACPI_RSDESC_SIZE;
165#define ACPI_READ_ONLY_MEMORY (UINT8) 0x00
166#define ACPI_READ_WRITE_MEMORY (UINT8) 0x01
168#define ACPI_NON_CACHEABLE_MEMORY (UINT8) 0x00
169#define ACPI_CACHABLE_MEMORY (UINT8) 0x01
170#define ACPI_WRITE_COMBINING_MEMORY (UINT8) 0x02
171#define ACPI_PREFETCHABLE_MEMORY (UINT8) 0x03
181#define ACPI_NON_ISA_ONLY_RANGES (UINT8) 0x01
182#define ACPI_ISA_ONLY_RANGES (UINT8) 0x02
183#define ACPI_ENTIRE_RANGE (ACPI_NON_ISA_ONLY_RANGES | ACPI_ISA_ONLY_RANGES)
187#define ACPI_SPARSE_TRANSLATION (UINT8) 0x01
192#define ACPI_DECODE_10 (UINT8) 0x00
193#define ACPI_DECODE_16 (UINT8) 0x01
201#define ACPI_LEVEL_SENSITIVE (UINT8) 0x00
202#define ACPI_EDGE_SENSITIVE (UINT8) 0x01
206#define ACPI_ACTIVE_HIGH (UINT8) 0x00
207#define ACPI_ACTIVE_LOW (UINT8) 0x01
208#define ACPI_ACTIVE_BOTH (UINT8) 0x02
212#define ACPI_EXCLUSIVE (UINT8) 0x00
213#define ACPI_SHARED (UINT8) 0x01
217#define ACPI_NOT_WAKE_CAPABLE (UINT8) 0x00
218#define ACPI_WAKE_CAPABLE (UINT8) 0x01
223#define ACPI_COMPATIBILITY (UINT8) 0x00
224#define ACPI_TYPE_A (UINT8) 0x01
225#define ACPI_TYPE_B (UINT8) 0x02
226#define ACPI_TYPE_F (UINT8) 0x03
228#define ACPI_NOT_BUS_MASTER (UINT8) 0x00
229#define ACPI_BUS_MASTER (UINT8) 0x01
231#define ACPI_TRANSFER_8 (UINT8) 0x00
232#define ACPI_TRANSFER_8_16 (UINT8) 0x01
233#define ACPI_TRANSFER_16 (UINT8) 0x02
238#define ACPI_GOOD_CONFIGURATION (UINT8) 0x00
239#define ACPI_ACCEPTABLE_CONFIGURATION (UINT8) 0x01
240#define ACPI_SUB_OPTIMAL_CONFIGURATION (UINT8) 0x02
245#define ACPI_MEMORY_RANGE (UINT8) 0x00
246#define ACPI_IO_RANGE (UINT8) 0x01
247#define ACPI_BUS_NUMBER_RANGE (UINT8) 0x02
249#define ACPI_ADDRESS_NOT_FIXED (UINT8) 0x00
250#define ACPI_ADDRESS_FIXED (UINT8) 0x01
252#define ACPI_POS_DECODE (UINT8) 0x00
253#define ACPI_SUB_DECODE (UINT8) 0x01
257#define ACPI_PRODUCER (UINT8) 0x00
258#define ACPI_CONSUMER (UINT8) 0x01
264#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
272 UINT8 Data[ACPI_UUID_LENGTH];
278 UINT8 Data[ACPI_UUID_LENGTH];
287 UINT8 DescriptorLength;
292 UINT8 InterruptCount;
295 ACPI_FLEX_ARRAY(UINT8, Interrupts);
308 ACPI_FLEX_ARRAY(UINT8, Channels);
315 UINT8 DescriptorLength;
316 UINT8 CompatibilityPriority;
317 UINT8 PerformanceRobustness;
355#define ACPI_DMA_WIDTH8 0
356#define ACPI_DMA_WIDTH16 1
357#define ACPI_DMA_WIDTH32 2
358#define ACPI_DMA_WIDTH64 3
359#define ACPI_DMA_WIDTH128 4
360#define ACPI_DMA_WIDTH256 5
376 UINT8 Uuid[ACPI_UUID_LENGTH];
393 UINT16 AddressLength;
403 UINT32 AddressLength;
411 UINT32 AddressLength;
428 UINT8 TranslationType;
461#define ACPI_RESOURCE_ADDRESS_COMMON \
462 UINT8 ResourceType; \
463 UINT8 ProducerConsumer; \
465 UINT8 MinAddressFixed; \
466 UINT8 MaxAddressFixed; \
467 ACPI_RESOURCE_ATTRIBUTE Info;
474 UINT16 TranslationOffset;
475 UINT16 AddressLength;
484 UINT32 TranslationOffset;
485 UINT32 AddressLength;
494 UINT64 TranslationOffset;
495 UINT64 AddressLength;
501 ACPI_RESOURCE_ADDRESS_COMMON
507 ACPI_RESOURCE_ADDRESS_COMMON
515 ACPI_RESOURCE_ADDRESS_COMMON
523 ACPI_RESOURCE_ADDRESS_COMMON
531 ACPI_RESOURCE_ADDRESS_COMMON
540 UINT8 ProducerConsumer;
545 UINT8 InterruptCount;
549 ACPI_FLEX_ARRAY(UINT32, Interrupts);
567 UINT8 ConnectionType;
568 UINT8 ProducerConsumer;
575 UINT16 DriveStrength;
576 UINT16 DebounceTimeout;
577 UINT16 PinTableLength;
587#define ACPI_RESOURCE_GPIO_TYPE_INT 0
588#define ACPI_RESOURCE_GPIO_TYPE_IO 1
592#define ACPI_PIN_CONFIG_DEFAULT 0
593#define ACPI_PIN_CONFIG_PULLUP 1
594#define ACPI_PIN_CONFIG_PULLDOWN 2
595#define ACPI_PIN_CONFIG_NOPULL 3
599#define ACPI_IO_RESTRICT_NONE 0
600#define ACPI_IO_RESTRICT_INPUT 1
601#define ACPI_IO_RESTRICT_OUTPUT 2
602#define ACPI_IO_RESTRICT_NONE_PRESERVE 3
607#define ACPI_RESOURCE_SERIAL_COMMON \
610 UINT8 ProducerConsumer; \
612 UINT8 ConnectionSharing; \
613 UINT8 TypeRevisionId; \
614 UINT16 TypeDataLength; \
615 UINT16 VendorLength; \
616 ACPI_RESOURCE_SOURCE ResourceSource; \
621 ACPI_RESOURCE_SERIAL_COMMON
627#define ACPI_RESOURCE_SERIAL_TYPE_I2C 1
628#define ACPI_RESOURCE_SERIAL_TYPE_SPI 2
629#define ACPI_RESOURCE_SERIAL_TYPE_UART 3
630#define ACPI_RESOURCE_SERIAL_TYPE_CSI2 4
634#define ACPI_CONTROLLER_INITIATED 0
635#define ACPI_DEVICE_INITIATED 1
640 ACPI_RESOURCE_SERIAL_COMMON
643 UINT32 ConnectionSpeed;
649#define ACPI_I2C_7BIT_MODE 0
650#define ACPI_I2C_10BIT_MODE 1
655 ACPI_RESOURCE_SERIAL_COMMON
657 UINT8 DevicePolarity;
661 UINT16 DeviceSelection;
662 UINT32 ConnectionSpeed;
668#define ACPI_SPI_4WIRE_MODE 0
669#define ACPI_SPI_3WIRE_MODE 1
673#define ACPI_SPI_ACTIVE_LOW 0
674#define ACPI_SPI_ACTIVE_HIGH 1
678#define ACPI_SPI_FIRST_PHASE 0
679#define ACPI_SPI_SECOND_PHASE 1
683#define ACPI_SPI_START_LOW 0
684#define ACPI_SPI_START_HIGH 1
689 ACPI_RESOURCE_SERIAL_COMMON
698 UINT32 DefaultBaudRate;
704#define ACPI_UART_LITTLE_ENDIAN 0
705#define ACPI_UART_BIG_ENDIAN 1
709#define ACPI_UART_5_DATA_BITS 0
710#define ACPI_UART_6_DATA_BITS 1
711#define ACPI_UART_7_DATA_BITS 2
712#define ACPI_UART_8_DATA_BITS 3
713#define ACPI_UART_9_DATA_BITS 4
717#define ACPI_UART_NO_STOP_BITS 0
718#define ACPI_UART_1_STOP_BIT 1
719#define ACPI_UART_1P5_STOP_BITS 2
720#define ACPI_UART_2_STOP_BITS 3
724#define ACPI_UART_FLOW_CONTROL_NONE 0
725#define ACPI_UART_FLOW_CONTROL_HW 1
726#define ACPI_UART_FLOW_CONTROL_XON_XOFF 2
730#define ACPI_UART_PARITY_NONE 0
731#define ACPI_UART_PARITY_EVEN 1
732#define ACPI_UART_PARITY_ODD 2
733#define ACPI_UART_PARITY_MARK 3
734#define ACPI_UART_PARITY_SPACE 4
738#define ACPI_UART_CARRIER_DETECT (1<<2)
739#define ACPI_UART_RING_INDICATOR (1<<3)
740#define ACPI_UART_DATA_SET_READY (1<<4)
741#define ACPI_UART_DATA_TERMINAL_READY (1<<5)
742#define ACPI_UART_CLEAR_TO_SEND (1<<6)
743#define ACPI_UART_REQUEST_TO_SEND (1<<7)
747 ACPI_RESOURCE_SERIAL_COMMON
748 UINT8 LocalPortInstance;
758 UINT16 FunctionNumber;
759 UINT16 PinTableLength;
770 UINT8 ProducerConsumer;
773 UINT32 PinConfigValue;
774 UINT16 PinTableLength;
787 UINT16 FrequencyDivisor;
788 UINT32 FrequencyNumerator;
794#define ACPI_PIN_CONFIG_DEFAULT 0
795#define ACPI_PIN_CONFIG_BIAS_PULL_UP 1
796#define ACPI_PIN_CONFIG_BIAS_PULL_DOWN 2
797#define ACPI_PIN_CONFIG_BIAS_DEFAULT 3
798#define ACPI_PIN_CONFIG_BIAS_DISABLE 4
799#define ACPI_PIN_CONFIG_BIAS_HIGH_IMPEDANCE 5
800#define ACPI_PIN_CONFIG_BIAS_BUS_HOLD 6
801#define ACPI_PIN_CONFIG_DRIVE_OPEN_DRAIN 7
802#define ACPI_PIN_CONFIG_DRIVE_OPEN_SOURCE 8
803#define ACPI_PIN_CONFIG_DRIVE_PUSH_PULL 9
804#define ACPI_PIN_CONFIG_DRIVE_STRENGTH 10
805#define ACPI_PIN_CONFIG_SLEW_RATE 11
806#define ACPI_PIN_CONFIG_INPUT_DEBOUNCE 12
807#define ACPI_PIN_CONFIG_INPUT_SCHMITT_TRIGGER 13
812 UINT8 ProducerConsumer;
813 UINT16 PinTableLength;
824 UINT8 ProducerConsumer;
826 UINT16 FunctionNumber;
837 UINT8 ProducerConsumer;
840 UINT32 PinConfigValue;
850#define ACPI_RESOURCE_TYPE_IRQ 0
851#define ACPI_RESOURCE_TYPE_DMA 1
852#define ACPI_RESOURCE_TYPE_START_DEPENDENT 2
853#define ACPI_RESOURCE_TYPE_END_DEPENDENT 3
854#define ACPI_RESOURCE_TYPE_IO 4
855#define ACPI_RESOURCE_TYPE_FIXED_IO 5
856#define ACPI_RESOURCE_TYPE_VENDOR 6
857#define ACPI_RESOURCE_TYPE_END_TAG 7
858#define ACPI_RESOURCE_TYPE_MEMORY24 8
859#define ACPI_RESOURCE_TYPE_MEMORY32 9
860#define ACPI_RESOURCE_TYPE_FIXED_MEMORY32 10
861#define ACPI_RESOURCE_TYPE_ADDRESS16 11
862#define ACPI_RESOURCE_TYPE_ADDRESS32 12
863#define ACPI_RESOURCE_TYPE_ADDRESS64 13
864#define ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 14
865#define ACPI_RESOURCE_TYPE_EXTENDED_IRQ 15
866#define ACPI_RESOURCE_TYPE_GENERIC_REGISTER 16
867#define ACPI_RESOURCE_TYPE_GPIO 17
868#define ACPI_RESOURCE_TYPE_FIXED_DMA 18
869#define ACPI_RESOURCE_TYPE_SERIAL_BUS 19
870#define ACPI_RESOURCE_TYPE_PIN_FUNCTION 20
871#define ACPI_RESOURCE_TYPE_PIN_CONFIG 21
872#define ACPI_RESOURCE_TYPE_PIN_GROUP 22
873#define ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION 23
874#define ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG 24
875#define ACPI_RESOURCE_TYPE_CLOCK_INPUT 25
876#define ACPI_RESOURCE_TYPE_MAX 25
935#define ACPI_RS_SIZE_NO_DATA 8
936#define ACPI_RS_SIZE_MIN (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (12)
937#define ACPI_RS_SIZE(Type) (UINT32) (ACPI_RS_SIZE_NO_DATA + sizeof (Type))
941#define ACPI_NEXT_RESOURCE(Res) \
942 ACPI_ADD_PTR (ACPI_RESOURCE, (Res), (Res)->Length)
953 ACPI_FLEX_ARRAY(
char, Source);
Definition: acrestyp.h:470
Definition: acrestyp.h:480
Definition: acrestyp.h:490
Definition: acrestyp.h:425
Definition: acrestyp.h:416
Definition: acrestyp.h:946
Definition: acrestyp.h:506
Definition: acrestyp.h:514
Definition: acrestyp.h:522
Definition: acrestyp.h:500
Definition: acrestyp.h:620
Definition: acrestyp.h:746
Definition: acrestyp.h:301
Definition: acrestyp.h:382
Definition: acrestyp.h:530
Definition: acrestyp.h:539
Definition: acrestyp.h:346
Definition: acrestyp.h:339
Definition: acrestyp.h:408
Definition: acrestyp.h:555
Definition: acrestyp.h:565
Definition: acrestyp.h:639
Definition: acrestyp.h:329
Definition: acrestyp.h:286
Definition: acrestyp.h:445
Definition: acrestyp.h:388
Definition: acrestyp.h:398
Definition: acrestyp.h:768
Definition: acrestyp.h:754
Definition: acrestyp.h:835
Definition: acrestyp.h:822
Definition: acrestyp.h:810
Definition: acrestyp.h:452
Definition: acrestyp.h:654
Definition: acrestyp.h:314
Definition: acrestyp.h:688
Definition: acrestyp.h:373
Definition: acrestyp.h:364
Definition: acrestyp.h:923
Definition: acrestyp.h:271
Definition: acrestyp.h:276
Definition: acrestyp.h:434
Definition: acrestyp.h:881