amlresrc.h (2b72693066a867ac073a657e871bb64391b4ffdb) | amlresrc.h (97028ce6fca0fec53ee71e2fd5acfb2dc8430f1f) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: amlresrc.h - AML resource descriptors 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2017, Intel Corp. --- 71 unchanged lines hidden (view full) --- 80#define ACPI_RESTAG_MINADDR "_MIN" 81#define ACPI_RESTAG_MAXTYPE "_MAF" 82#define ACPI_RESTAG_MINTYPE "_MIF" 83#define ACPI_RESTAG_MODE "_MOD" 84#define ACPI_RESTAG_PARITY "_PAR" 85#define ACPI_RESTAG_PHASE "_PHA" 86#define ACPI_RESTAG_PIN "_PIN" 87#define ACPI_RESTAG_PINCONFIG "_PPI" | 1/****************************************************************************** 2 * 3 * Module Name: amlresrc.h - AML resource descriptors 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2017, Intel Corp. --- 71 unchanged lines hidden (view full) --- 80#define ACPI_RESTAG_MINADDR "_MIN" 81#define ACPI_RESTAG_MAXTYPE "_MAF" 82#define ACPI_RESTAG_MINTYPE "_MIF" 83#define ACPI_RESTAG_MODE "_MOD" 84#define ACPI_RESTAG_PARITY "_PAR" 85#define ACPI_RESTAG_PHASE "_PHA" 86#define ACPI_RESTAG_PIN "_PIN" 87#define ACPI_RESTAG_PINCONFIG "_PPI" |
88#define ACPI_RESTAG_PINCONFIG_TYPE "_TYP" 89#define ACPI_RESTAG_PINCONFIG_VALUE "_VAL" |
|
88#define ACPI_RESTAG_POLARITY "_POL" 89#define ACPI_RESTAG_REGISTERBITOFFSET "_RBO" 90#define ACPI_RESTAG_REGISTERBITWIDTH "_RBW" 91#define ACPI_RESTAG_RANGETYPE "_RNG" 92#define ACPI_RESTAG_READWRITETYPE "_RW_" /* read_only(0), Writeable (1) */ 93#define ACPI_RESTAG_LENGTH_RX "_RXL" 94#define ACPI_RESTAG_LENGTH_TX "_TXL" 95#define ACPI_RESTAG_SLAVEMODE "_SLV" --- 324 unchanged lines hidden (view full) --- 420 * 1) PIN list (Words) 421 * 2) Resource Source String 422 * 3) Vendor Data bytes 423 */ 424}; 425 426#define AML_RESOURCE_PIN_FUNCTION_REVISION 1 /* ACPI 6.2 */ 427 | 90#define ACPI_RESTAG_POLARITY "_POL" 91#define ACPI_RESTAG_REGISTERBITOFFSET "_RBO" 92#define ACPI_RESTAG_REGISTERBITWIDTH "_RBW" 93#define ACPI_RESTAG_RANGETYPE "_RNG" 94#define ACPI_RESTAG_READWRITETYPE "_RW_" /* read_only(0), Writeable (1) */ 95#define ACPI_RESTAG_LENGTH_RX "_RXL" 96#define ACPI_RESTAG_LENGTH_TX "_TXL" 97#define ACPI_RESTAG_SLAVEMODE "_SLV" --- 324 unchanged lines hidden (view full) --- 422 * 1) PIN list (Words) 423 * 2) Resource Source String 424 * 3) Vendor Data bytes 425 */ 426}; 427 428#define AML_RESOURCE_PIN_FUNCTION_REVISION 1 /* ACPI 6.2 */ 429 |
430struct aml_resource_pin_config { 431 AML_RESOURCE_LARGE_HEADER_COMMON u8 revision_id; 432 u16 flags; 433 u8 pin_config_type; 434 u32 pin_config_value; 435 u16 pin_table_offset; 436 u8 res_source_index; 437 u16 res_source_offset; 438 u16 vendor_offset; 439 u16 vendor_length; 440 /* 441 * Optional fields follow immediately: 442 * 1) PIN list (Words) 443 * 2) Resource Source String 444 * 3) Vendor Data bytes 445 */ 446}; 447 448#define AML_RESOURCE_PIN_CONFIG_REVISION 1 /* ACPI 6.2 */ 449 |
|
428/* restore default alignment */ 429 430#pragma pack() 431 432/* Union of all resource descriptors, so we can allocate the worst case */ 433 434union aml_resource { 435 /* Descriptor headers */ --- 27 unchanged lines hidden (view full) --- 463 struct aml_resource_extended_address64 ext_address64; 464 struct aml_resource_extended_irq extended_irq; 465 struct aml_resource_gpio gpio; 466 struct aml_resource_i2c_serialbus i2c_serial_bus; 467 struct aml_resource_spi_serialbus spi_serial_bus; 468 struct aml_resource_uart_serialbus uart_serial_bus; 469 struct aml_resource_common_serialbus common_serial_bus; 470 struct aml_resource_pin_function pin_function; | 450/* restore default alignment */ 451 452#pragma pack() 453 454/* Union of all resource descriptors, so we can allocate the worst case */ 455 456union aml_resource { 457 /* Descriptor headers */ --- 27 unchanged lines hidden (view full) --- 485 struct aml_resource_extended_address64 ext_address64; 486 struct aml_resource_extended_irq extended_irq; 487 struct aml_resource_gpio gpio; 488 struct aml_resource_i2c_serialbus i2c_serial_bus; 489 struct aml_resource_spi_serialbus spi_serial_bus; 490 struct aml_resource_uart_serialbus uart_serial_bus; 491 struct aml_resource_common_serialbus common_serial_bus; 492 struct aml_resource_pin_function pin_function; |
493 struct aml_resource_pin_config pin_config; |
|
471 472 /* Utility overlays */ 473 474 struct aml_resource_address address; 475 u32 dword_item; 476 u16 word_item; 477 u8 byte_item; 478}; --- 30 unchanged lines hidden --- | 494 495 /* Utility overlays */ 496 497 struct aml_resource_address address; 498 u32 dword_item; 499 u16 word_item; 500 u8 byte_item; 501}; --- 30 unchanged lines hidden --- |