Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
amlresrc.h File Reference

Go to the source code of this file.

Data Structures

struct  asl_resource_node
 
struct  aml_resource_small_header
 
struct  aml_resource_irq
 
struct  aml_resource_irq_noflags
 
struct  aml_resource_dma
 
struct  aml_resource_start_dependent
 
struct  aml_resource_start_dependent_noprio
 
struct  aml_resource_end_dependent
 
struct  aml_resource_io
 
struct  aml_resource_fixed_io
 
struct  aml_resource_vendor_small
 
struct  aml_resource_end_tag
 
struct  aml_resource_fixed_dma
 
struct  aml_resource_large_header
 
struct  aml_resource_memory24
 
struct  aml_resource_vendor_large
 
struct  aml_resource_memory32
 
struct  aml_resource_fixed_memory32
 
struct  aml_resource_address
 
struct  aml_resource_extended_address64
 
struct  aml_resource_address64
 
struct  aml_resource_address32
 
struct  aml_resource_address16
 
struct  aml_resource_extended_irq
 
struct  aml_resource_generic_register
 
struct  aml_resource_gpio
 
struct  aml_resource_common_serialbus
 
struct  aml_resource_i2c_serialbus
 
struct  aml_resource_spi_serialbus
 
struct  aml_resource_uart_serialbus
 
union  aml_resource
 

Macros

#define ACPI_RESTAG_ADDRESS   "_ADR"
 
#define ACPI_RESTAG_ALIGNMENT   "_ALN"
 
#define ACPI_RESTAG_ADDRESSSPACE   "_ASI"
 
#define ACPI_RESTAG_ACCESSSIZE   "_ASZ"
 
#define ACPI_RESTAG_TYPESPECIFICATTRIBUTES   "_ATT"
 
#define ACPI_RESTAG_BASEADDRESS   "_BAS"
 
#define ACPI_RESTAG_BUSMASTER   "_BM_" /* Master(1), Slave(0) */
 
#define ACPI_RESTAG_DEBOUNCETIME   "_DBT"
 
#define ACPI_RESTAG_DECODE   "_DEC"
 
#define ACPI_RESTAG_DEVICEPOLARITY   "_DPL"
 
#define ACPI_RESTAG_DMA   "_DMA"
 
#define ACPI_RESTAG_DMATYPE   "_TYP" /* Compatible(0), A(1), B(2), F(3) */
 
#define ACPI_RESTAG_DRIVESTRENGTH   "_DRS"
 
#define ACPI_RESTAG_ENDIANNESS   "_END"
 
#define ACPI_RESTAG_FLOWCONTROL   "_FLC"
 
#define ACPI_RESTAG_GRANULARITY   "_GRA"
 
#define ACPI_RESTAG_INTERRUPT   "_INT"
 
#define ACPI_RESTAG_INTERRUPTLEVEL   "_LL_" /* active_lo(1), active_hi(0) */
 
#define ACPI_RESTAG_INTERRUPTSHARE   "_SHR" /* Shareable(1), no_share(0) */
 
#define ACPI_RESTAG_INTERRUPTTYPE   "_HE_" /* Edge(1), Level(0) */
 
#define ACPI_RESTAG_IORESTRICTION   "_IOR"
 
#define ACPI_RESTAG_LENGTH   "_LEN"
 
#define ACPI_RESTAG_LINE   "_LIN"
 
#define ACPI_RESTAG_MEMATTRIBUTES   "_MTP" /* Memory(0), Reserved(1), ACPI(2), NVS(3) */
 
#define ACPI_RESTAG_MEMTYPE   "_MEM" /* non_cache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */
 
#define ACPI_RESTAG_MAXADDR   "_MAX"
 
#define ACPI_RESTAG_MINADDR   "_MIN"
 
#define ACPI_RESTAG_MAXTYPE   "_MAF"
 
#define ACPI_RESTAG_MINTYPE   "_MIF"
 
#define ACPI_RESTAG_MODE   "_MOD"
 
#define ACPI_RESTAG_PARITY   "_PAR"
 
#define ACPI_RESTAG_PHASE   "_PHA"
 
#define ACPI_RESTAG_PIN   "_PIN"
 
#define ACPI_RESTAG_PINCONFIG   "_PPI"
 
#define ACPI_RESTAG_POLARITY   "_POL"
 
#define ACPI_RESTAG_REGISTERBITOFFSET   "_RBO"
 
#define ACPI_RESTAG_REGISTERBITWIDTH   "_RBW"
 
#define ACPI_RESTAG_RANGETYPE   "_RNG"
 
#define ACPI_RESTAG_READWRITETYPE   "_RW_" /* read_only(0), Writeable (1) */
 
#define ACPI_RESTAG_LENGTH_RX   "_RXL"
 
#define ACPI_RESTAG_LENGTH_TX   "_TXL"
 
#define ACPI_RESTAG_SLAVEMODE   "_SLV"
 
#define ACPI_RESTAG_SPEED   "_SPE"
 
#define ACPI_RESTAG_STOPBITS   "_STB"
 
#define ACPI_RESTAG_TRANSLATION   "_TRA"
 
#define ACPI_RESTAG_TRANSTYPE   "_TRS" /* Sparse(1), Dense(0) */
 
#define ACPI_RESTAG_TYPE   "_TTP" /* Translation(1), Static (0) */
 
#define ACPI_RESTAG_XFERTYPE   "_SIZ" /* 8(0), 8And16(1), 16(2) */
 
#define ACPI_RESTAG_VENDORDATA   "_VEN"
 
#define ASL_RDESC_IRQ_SIZE   0x02
 
#define ASL_RDESC_DMA_SIZE   0x02
 
#define ASL_RDESC_ST_DEPEND_SIZE   0x00
 
#define ASL_RDESC_END_DEPEND_SIZE   0x00
 
#define ASL_RDESC_IO_SIZE   0x07
 
#define ASL_RDESC_FIXED_IO_SIZE   0x03
 
#define ASL_RDESC_FIXED_DMA_SIZE   0x05
 
#define ASL_RDESC_END_TAG_SIZE   0x01
 
#define ACPI_AML_SIZE_LARGE(r)   (sizeof (r) - sizeof (struct aml_resource_large_header))
 
#define ACPI_AML_SIZE_SMALL(r)   (sizeof (r) - sizeof (struct aml_resource_small_header))
 
#define AML_RESOURCE_SMALL_HEADER_COMMON   u8 descriptor_type;
 
#define AML_RESOURCE_LARGE_HEADER_COMMON
 
#define AML_RESOURCE_ADDRESS_COMMON
 
#define AML_RESOURCE_EXTENDED_ADDRESS_REVISION   1 /* ACPI 3.0 */
 
#define AML_RESOURCE_GPIO_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_GPIO_TYPE_INT   0
 
#define AML_RESOURCE_GPIO_TYPE_IO   1
 
#define AML_RESOURCE_MAX_GPIOTYPE   1
 
#define AML_RESOURCE_SERIAL_COMMON
 
#define AML_RESOURCE_I2C_SERIALBUSTYPE   1
 
#define AML_RESOURCE_SPI_SERIALBUSTYPE   2
 
#define AML_RESOURCE_UART_SERIALBUSTYPE   3
 
#define AML_RESOURCE_MAX_SERIALBUSTYPE   3
 
#define AML_RESOURCE_VENDOR_SERIALBUSTYPE   192 /* Vendor defined is 0xC0-0xFF (NOT SUPPORTED) */
 
#define AML_RESOURCE_I2C_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_I2C_TYPE_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_I2C_MIN_DATA_LEN   6
 
#define AML_RESOURCE_SPI_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_SPI_TYPE_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_SPI_MIN_DATA_LEN   9
 
#define AML_RESOURCE_UART_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_UART_TYPE_REVISION   1 /* ACPI 5.0 */
 
#define AML_RESOURCE_UART_MIN_DATA_LEN   10
 

Macro Definition Documentation

#define ACPI_AML_SIZE_LARGE (   r)    (sizeof (r) - sizeof (struct aml_resource_large_header))

Definition at line 123 of file amlresrc.h.

#define ACPI_AML_SIZE_SMALL (   r)    (sizeof (r) - sizeof (struct aml_resource_small_header))

Definition at line 124 of file amlresrc.h.

#define ACPI_RESTAG_ACCESSSIZE   "_ASZ"

Definition at line 57 of file amlresrc.h.

#define ACPI_RESTAG_ADDRESS   "_ADR"

Definition at line 54 of file amlresrc.h.

#define ACPI_RESTAG_ADDRESSSPACE   "_ASI"

Definition at line 56 of file amlresrc.h.

#define ACPI_RESTAG_ALIGNMENT   "_ALN"

Definition at line 55 of file amlresrc.h.

#define ACPI_RESTAG_BASEADDRESS   "_BAS"

Definition at line 59 of file amlresrc.h.

#define ACPI_RESTAG_BUSMASTER   "_BM_" /* Master(1), Slave(0) */

Definition at line 60 of file amlresrc.h.

#define ACPI_RESTAG_DEBOUNCETIME   "_DBT"

Definition at line 61 of file amlresrc.h.

#define ACPI_RESTAG_DECODE   "_DEC"

Definition at line 62 of file amlresrc.h.

#define ACPI_RESTAG_DEVICEPOLARITY   "_DPL"

Definition at line 63 of file amlresrc.h.

#define ACPI_RESTAG_DMA   "_DMA"

Definition at line 64 of file amlresrc.h.

#define ACPI_RESTAG_DMATYPE   "_TYP" /* Compatible(0), A(1), B(2), F(3) */

Definition at line 65 of file amlresrc.h.

#define ACPI_RESTAG_DRIVESTRENGTH   "_DRS"

Definition at line 66 of file amlresrc.h.

#define ACPI_RESTAG_ENDIANNESS   "_END"

Definition at line 67 of file amlresrc.h.

#define ACPI_RESTAG_FLOWCONTROL   "_FLC"

Definition at line 68 of file amlresrc.h.

#define ACPI_RESTAG_GRANULARITY   "_GRA"

Definition at line 69 of file amlresrc.h.

#define ACPI_RESTAG_INTERRUPT   "_INT"

Definition at line 70 of file amlresrc.h.

#define ACPI_RESTAG_INTERRUPTLEVEL   "_LL_" /* active_lo(1), active_hi(0) */

Definition at line 71 of file amlresrc.h.

#define ACPI_RESTAG_INTERRUPTSHARE   "_SHR" /* Shareable(1), no_share(0) */

Definition at line 72 of file amlresrc.h.

#define ACPI_RESTAG_INTERRUPTTYPE   "_HE_" /* Edge(1), Level(0) */

Definition at line 73 of file amlresrc.h.

#define ACPI_RESTAG_IORESTRICTION   "_IOR"

Definition at line 74 of file amlresrc.h.

#define ACPI_RESTAG_LENGTH   "_LEN"

Definition at line 75 of file amlresrc.h.

#define ACPI_RESTAG_LENGTH_RX   "_RXL"

Definition at line 93 of file amlresrc.h.

#define ACPI_RESTAG_LENGTH_TX   "_TXL"

Definition at line 94 of file amlresrc.h.

#define ACPI_RESTAG_LINE   "_LIN"

Definition at line 76 of file amlresrc.h.

#define ACPI_RESTAG_MAXADDR   "_MAX"

Definition at line 79 of file amlresrc.h.

#define ACPI_RESTAG_MAXTYPE   "_MAF"

Definition at line 81 of file amlresrc.h.

#define ACPI_RESTAG_MEMATTRIBUTES   "_MTP" /* Memory(0), Reserved(1), ACPI(2), NVS(3) */

Definition at line 77 of file amlresrc.h.

#define ACPI_RESTAG_MEMTYPE   "_MEM" /* non_cache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */

Definition at line 78 of file amlresrc.h.

#define ACPI_RESTAG_MINADDR   "_MIN"

Definition at line 80 of file amlresrc.h.

#define ACPI_RESTAG_MINTYPE   "_MIF"

Definition at line 82 of file amlresrc.h.

#define ACPI_RESTAG_MODE   "_MOD"

Definition at line 83 of file amlresrc.h.

#define ACPI_RESTAG_PARITY   "_PAR"

Definition at line 84 of file amlresrc.h.

#define ACPI_RESTAG_PHASE   "_PHA"

Definition at line 85 of file amlresrc.h.

#define ACPI_RESTAG_PIN   "_PIN"

Definition at line 86 of file amlresrc.h.

#define ACPI_RESTAG_PINCONFIG   "_PPI"

Definition at line 87 of file amlresrc.h.

#define ACPI_RESTAG_POLARITY   "_POL"

Definition at line 88 of file amlresrc.h.

#define ACPI_RESTAG_RANGETYPE   "_RNG"

Definition at line 91 of file amlresrc.h.

#define ACPI_RESTAG_READWRITETYPE   "_RW_" /* read_only(0), Writeable (1) */

Definition at line 92 of file amlresrc.h.

#define ACPI_RESTAG_REGISTERBITOFFSET   "_RBO"

Definition at line 89 of file amlresrc.h.

#define ACPI_RESTAG_REGISTERBITWIDTH   "_RBW"

Definition at line 90 of file amlresrc.h.

#define ACPI_RESTAG_SLAVEMODE   "_SLV"

Definition at line 95 of file amlresrc.h.

#define ACPI_RESTAG_SPEED   "_SPE"

Definition at line 96 of file amlresrc.h.

#define ACPI_RESTAG_STOPBITS   "_STB"

Definition at line 97 of file amlresrc.h.

#define ACPI_RESTAG_TRANSLATION   "_TRA"

Definition at line 98 of file amlresrc.h.

#define ACPI_RESTAG_TRANSTYPE   "_TRS" /* Sparse(1), Dense(0) */

Definition at line 99 of file amlresrc.h.

#define ACPI_RESTAG_TYPE   "_TTP" /* Translation(1), Static (0) */

Definition at line 100 of file amlresrc.h.

#define ACPI_RESTAG_TYPESPECIFICATTRIBUTES   "_ATT"

Definition at line 58 of file amlresrc.h.

#define ACPI_RESTAG_VENDORDATA   "_VEN"

Definition at line 102 of file amlresrc.h.

#define ACPI_RESTAG_XFERTYPE   "_SIZ" /* 8(0), 8And16(1), 16(2) */

Definition at line 101 of file amlresrc.h.

#define AML_RESOURCE_ADDRESS_COMMON
Value:
u8 specific_flags;

Definition at line 228 of file amlresrc.h.

#define AML_RESOURCE_EXTENDED_ADDRESS_REVISION   1 /* ACPI 3.0 */

Definition at line 248 of file amlresrc.h.

#define AML_RESOURCE_GPIO_REVISION   1 /* ACPI 5.0 */

Definition at line 315 of file amlresrc.h.

#define AML_RESOURCE_GPIO_TYPE_INT   0

Definition at line 319 of file amlresrc.h.

#define AML_RESOURCE_GPIO_TYPE_IO   1

Definition at line 320 of file amlresrc.h.

#define AML_RESOURCE_I2C_MIN_DATA_LEN   6

Definition at line 358 of file amlresrc.h.

#define AML_RESOURCE_I2C_REVISION   1 /* ACPI 5.0 */

Definition at line 356 of file amlresrc.h.

#define AML_RESOURCE_I2C_SERIALBUSTYPE   1

Definition at line 336 of file amlresrc.h.

#define AML_RESOURCE_I2C_TYPE_REVISION   1 /* ACPI 5.0 */

Definition at line 357 of file amlresrc.h.

#define AML_RESOURCE_LARGE_HEADER_COMMON
Value:
u8 descriptor_type;\
u16 resource_length;

Definition at line 196 of file amlresrc.h.

#define AML_RESOURCE_MAX_GPIOTYPE   1

Definition at line 321 of file amlresrc.h.

#define AML_RESOURCE_MAX_SERIALBUSTYPE   3

Definition at line 339 of file amlresrc.h.

#define AML_RESOURCE_SERIAL_COMMON
Value:
u8 revision_id; \
u8 res_source_index; \
u16 type_specific_flags; \
u8 type_revision_id; \
u16 type_data_length; \

Definition at line 325 of file amlresrc.h.

#define AML_RESOURCE_SMALL_HEADER_COMMON   u8 descriptor_type;

Definition at line 137 of file amlresrc.h.

#define AML_RESOURCE_SPI_MIN_DATA_LEN   9

Definition at line 376 of file amlresrc.h.

#define AML_RESOURCE_SPI_REVISION   1 /* ACPI 5.0 */

Definition at line 374 of file amlresrc.h.

#define AML_RESOURCE_SPI_SERIALBUSTYPE   2

Definition at line 337 of file amlresrc.h.

#define AML_RESOURCE_SPI_TYPE_REVISION   1 /* ACPI 5.0 */

Definition at line 375 of file amlresrc.h.

#define AML_RESOURCE_UART_MIN_DATA_LEN   10

Definition at line 394 of file amlresrc.h.

#define AML_RESOURCE_UART_REVISION   1 /* ACPI 5.0 */

Definition at line 392 of file amlresrc.h.

#define AML_RESOURCE_UART_SERIALBUSTYPE   3

Definition at line 338 of file amlresrc.h.

#define AML_RESOURCE_UART_TYPE_REVISION   1 /* ACPI 5.0 */

Definition at line 393 of file amlresrc.h.

#define AML_RESOURCE_VENDOR_SERIALBUSTYPE   192 /* Vendor defined is 0xC0-0xFF (NOT SUPPORTED) */

Definition at line 340 of file amlresrc.h.

#define ASL_RDESC_DMA_SIZE   0x02

Definition at line 107 of file amlresrc.h.

#define ASL_RDESC_END_DEPEND_SIZE   0x00

Definition at line 109 of file amlresrc.h.

#define ASL_RDESC_END_TAG_SIZE   0x01

Definition at line 113 of file amlresrc.h.

#define ASL_RDESC_FIXED_DMA_SIZE   0x05

Definition at line 112 of file amlresrc.h.

#define ASL_RDESC_FIXED_IO_SIZE   0x03

Definition at line 111 of file amlresrc.h.

#define ASL_RDESC_IO_SIZE   0x07

Definition at line 110 of file amlresrc.h.

#define ASL_RDESC_IRQ_SIZE   0x02

Definition at line 106 of file amlresrc.h.

#define ASL_RDESC_ST_DEPEND_SIZE   0x00

Definition at line 108 of file amlresrc.h.