Go to the documentation of this file.
44 #ifndef __ACRESTYP_H__
45 #define __ACRESTYP_H__
56 #define ACPI_READ_ONLY_MEMORY (u8) 0x00
57 #define ACPI_READ_WRITE_MEMORY (u8) 0x01
59 #define ACPI_NON_CACHEABLE_MEMORY (u8) 0x00
60 #define ACPI_CACHABLE_MEMORY (u8) 0x01
61 #define ACPI_WRITE_COMBINING_MEMORY (u8) 0x02
62 #define ACPI_PREFETCHABLE_MEMORY (u8) 0x03
72 #define ACPI_NON_ISA_ONLY_RANGES (u8) 0x01
73 #define ACPI_ISA_ONLY_RANGES (u8) 0x02
74 #define ACPI_ENTIRE_RANGE (ACPI_NON_ISA_ONLY_RANGES | ACPI_ISA_ONLY_RANGES)
78 #define ACPI_SPARSE_TRANSLATION (u8) 0x01
83 #define ACPI_DECODE_10 (u8) 0x00
84 #define ACPI_DECODE_16 (u8) 0x01
92 #define ACPI_LEVEL_SENSITIVE (u8) 0x00
93 #define ACPI_EDGE_SENSITIVE (u8) 0x01
97 #define ACPI_ACTIVE_HIGH (u8) 0x00
98 #define ACPI_ACTIVE_LOW (u8) 0x01
99 #define ACPI_ACTIVE_BOTH (u8) 0x02
103 #define ACPI_EXCLUSIVE (u8) 0x00
104 #define ACPI_SHARED (u8) 0x01
105 #define ACPI_EXCLUSIVE_AND_WAKE (u8) 0x02
106 #define ACPI_SHARED_AND_WAKE (u8) 0x03
111 #define ACPI_COMPATIBILITY (u8) 0x00
112 #define ACPI_TYPE_A (u8) 0x01
113 #define ACPI_TYPE_B (u8) 0x02
114 #define ACPI_TYPE_F (u8) 0x03
116 #define ACPI_NOT_BUS_MASTER (u8) 0x00
117 #define ACPI_BUS_MASTER (u8) 0x01
119 #define ACPI_TRANSFER_8 (u8) 0x00
120 #define ACPI_TRANSFER_8_16 (u8) 0x01
121 #define ACPI_TRANSFER_16 (u8) 0x02
126 #define ACPI_GOOD_CONFIGURATION (u8) 0x00
127 #define ACPI_ACCEPTABLE_CONFIGURATION (u8) 0x01
128 #define ACPI_SUB_OPTIMAL_CONFIGURATION (u8) 0x02
133 #define ACPI_MEMORY_RANGE (u8) 0x00
134 #define ACPI_IO_RANGE (u8) 0x01
135 #define ACPI_BUS_NUMBER_RANGE (u8) 0x02
137 #define ACPI_ADDRESS_NOT_FIXED (u8) 0x00
138 #define ACPI_ADDRESS_FIXED (u8) 0x01
140 #define ACPI_POS_DECODE (u8) 0x00
141 #define ACPI_SUB_DECODE (u8) 0x01
145 #define ACPI_PRODUCER (u8) 0x00
146 #define ACPI_CONSUMER (u8) 0x01
151 #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
218 #define ACPI_DMA_WIDTH8 0
219 #define ACPI_DMA_WIDTH16 1
220 #define ACPI_DMA_WIDTH32 2
221 #define ACPI_DMA_WIDTH64 3
222 #define ACPI_DMA_WIDTH128 4
223 #define ACPI_DMA_WIDTH256 5
296 #define ACPI_RESOURCE_ADDRESS_COMMON \
298 u8 producer_consumer; \
300 u8 min_address_fixed; \
301 u8 max_address_fixed; \
302 union acpi_resource_attribute info;
382 #define ACPI_RESOURCE_GPIO_TYPE_INT 0
383 #define ACPI_RESOURCE_GPIO_TYPE_IO 1
387 #define ACPI_PIN_CONFIG_DEFAULT 0
388 #define ACPI_PIN_CONFIG_PULLUP 1
389 #define ACPI_PIN_CONFIG_PULLDOWN 2
390 #define ACPI_PIN_CONFIG_NOPULL 3
394 #define ACPI_IO_RESTRICT_NONE 0
395 #define ACPI_IO_RESTRICT_INPUT 1
396 #define ACPI_IO_RESTRICT_OUTPUT 2
397 #define ACPI_IO_RESTRICT_NONE_PRESERVE 3
401 #define ACPI_RESOURCE_SERIAL_COMMON \
404 u8 producer_consumer; \
406 u8 type_revision_id; \
407 u16 type_data_length; \
409 struct acpi_resource_source resource_source; \
417 #define ACPI_RESOURCE_SERIAL_TYPE_I2C 1
418 #define ACPI_RESOURCE_SERIAL_TYPE_SPI 2
419 #define ACPI_RESOURCE_SERIAL_TYPE_UART 3
423 #define ACPI_CONTROLLER_INITIATED 0
424 #define ACPI_DEVICE_INITIATED 1
434 #define ACPI_I2C_7BIT_MODE 0
435 #define ACPI_I2C_10BIT_MODE 1
449 #define ACPI_SPI_4WIRE_MODE 0
450 #define ACPI_SPI_3WIRE_MODE 1
454 #define ACPI_SPI_ACTIVE_LOW 0
455 #define ACPI_SPI_ACTIVE_HIGH 1
459 #define ACPI_SPI_FIRST_PHASE 0
460 #define ACPI_SPI_SECOND_PHASE 1
464 #define ACPI_SPI_START_LOW 0
465 #define ACPI_SPI_START_HIGH 1
481 #define ACPI_UART_LITTLE_ENDIAN 0
482 #define ACPI_UART_BIG_ENDIAN 1
486 #define ACPI_UART_5_DATA_BITS 0
487 #define ACPI_UART_6_DATA_BITS 1
488 #define ACPI_UART_7_DATA_BITS 2
489 #define ACPI_UART_8_DATA_BITS 3
490 #define ACPI_UART_9_DATA_BITS 4
494 #define ACPI_UART_NO_STOP_BITS 0
495 #define ACPI_UART_1_STOP_BIT 1
496 #define ACPI_UART_1P5_STOP_BITS 2
497 #define ACPI_UART_2_STOP_BITS 3
501 #define ACPI_UART_FLOW_CONTROL_NONE 0
502 #define ACPI_UART_FLOW_CONTROL_HW 1
503 #define ACPI_UART_FLOW_CONTROL_XON_XOFF 2
507 #define ACPI_UART_PARITY_NONE 0
508 #define ACPI_UART_PARITY_EVEN 1
509 #define ACPI_UART_PARITY_ODD 2
510 #define ACPI_UART_PARITY_MARK 3
511 #define ACPI_UART_PARITY_SPACE 4
515 #define ACPI_UART_CARRIER_DETECT (1<<2)
516 #define ACPI_UART_RING_INDICATOR (1<<3)
517 #define ACPI_UART_DATA_SET_READY (1<<4)
518 #define ACPI_UART_DATA_TERMINAL_READY (1<<5)
519 #define ACPI_UART_CLEAR_TO_SEND (1<<6)
520 #define ACPI_UART_REQUEST_TO_SEND (1<<7)
524 #define ACPI_RESOURCE_TYPE_IRQ 0
525 #define ACPI_RESOURCE_TYPE_DMA 1
526 #define ACPI_RESOURCE_TYPE_START_DEPENDENT 2
527 #define ACPI_RESOURCE_TYPE_END_DEPENDENT 3
528 #define ACPI_RESOURCE_TYPE_IO 4
529 #define ACPI_RESOURCE_TYPE_FIXED_IO 5
530 #define ACPI_RESOURCE_TYPE_VENDOR 6
531 #define ACPI_RESOURCE_TYPE_END_TAG 7
532 #define ACPI_RESOURCE_TYPE_MEMORY24 8
533 #define ACPI_RESOURCE_TYPE_MEMORY32 9
534 #define ACPI_RESOURCE_TYPE_FIXED_MEMORY32 10
535 #define ACPI_RESOURCE_TYPE_ADDRESS16 11
536 #define ACPI_RESOURCE_TYPE_ADDRESS32 12
537 #define ACPI_RESOURCE_TYPE_ADDRESS64 13
538 #define ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 14
539 #define ACPI_RESOURCE_TYPE_EXTENDED_IRQ 15
540 #define ACPI_RESOURCE_TYPE_GENERIC_REGISTER 16
541 #define ACPI_RESOURCE_TYPE_GPIO 17
542 #define ACPI_RESOURCE_TYPE_FIXED_DMA 18
543 #define ACPI_RESOURCE_TYPE_SERIAL_BUS 19
544 #define ACPI_RESOURCE_TYPE_MAX 19
590 #define ACPI_RS_SIZE_NO_DATA 8
591 #define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12)
592 #define ACPI_RS_SIZE(type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type))
594 #define ACPI_NEXT_RESOURCE(res) (struct acpi_resource *)((u8 *) res + res->length)