ahaslkey.c revision 1.1.1.2 1 1.1 jruoho /******************************************************************************
2 1.1 jruoho *
3 1.1 jruoho * Module Name: ahaslkey - Table of all known ASL non-operator keywords
4 1.1 jruoho *
5 1.1 jruoho *****************************************************************************/
6 1.1 jruoho
7 1.1 jruoho /*
8 1.1.1.2 christos * Copyright (C) 2000 - 2013, Intel Corp.
9 1.1 jruoho * All rights reserved.
10 1.1 jruoho *
11 1.1 jruoho * Redistribution and use in source and binary forms, with or without
12 1.1 jruoho * modification, are permitted provided that the following conditions
13 1.1 jruoho * are met:
14 1.1 jruoho * 1. Redistributions of source code must retain the above copyright
15 1.1 jruoho * notice, this list of conditions, and the following disclaimer,
16 1.1 jruoho * without modification.
17 1.1 jruoho * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 1.1 jruoho * substantially similar to the "NO WARRANTY" disclaimer below
19 1.1 jruoho * ("Disclaimer") and any redistribution must be conditioned upon
20 1.1 jruoho * including a substantially similar Disclaimer requirement for further
21 1.1 jruoho * binary redistribution.
22 1.1 jruoho * 3. Neither the names of the above-listed copyright holders nor the names
23 1.1 jruoho * of any contributors may be used to endorse or promote products derived
24 1.1 jruoho * from this software without specific prior written permission.
25 1.1 jruoho *
26 1.1 jruoho * Alternatively, this software may be distributed under the terms of the
27 1.1 jruoho * GNU General Public License ("GPL") version 2 as published by the Free
28 1.1 jruoho * Software Foundation.
29 1.1 jruoho *
30 1.1 jruoho * NO WARRANTY
31 1.1 jruoho * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 1.1 jruoho * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 1.1 jruoho * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 1.1 jruoho * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 1.1 jruoho * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 1.1 jruoho * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 1.1 jruoho * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 1.1 jruoho * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 1.1 jruoho * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 1.1 jruoho * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 1.1 jruoho * POSSIBILITY OF SUCH DAMAGES.
42 1.1 jruoho */
43 1.1 jruoho
44 1.1 jruoho #include "acpihelp.h"
45 1.1 jruoho
46 1.1 jruoho /*
47 1.1 jruoho * ASL Keyword types and associated actual keywords.
48 1.1 jruoho * This table was extracted from the ACPI specification.
49 1.1 jruoho */
50 1.1 jruoho const AH_ASL_KEYWORD AslKeywordInfo[] =
51 1.1 jruoho {
52 1.1.1.2 christos {"AccessAttribKeyword", "Serial Bus Attributes (with legacy SMBus aliases)",
53 1.1.1.2 christos ":= AttribQuick (SMBusQuick) | AttribSendReceive (SMBusSendReceive) | "
54 1.1.1.2 christos "AttribByte (SMBusByte) | AttribWord (SMBusWord) | "
55 1.1.1.2 christos "AttribBlock (SMBusBlock) | AttribProcessCall (SMBusProcessCall) | "
56 1.1.1.2 christos "AttribBlockProcessCall (SMBusProcessCall)"},
57 1.1 jruoho {"AccessTypeKeyword", "Field Access Types",
58 1.1 jruoho ":= AnyAcc | ByteAcc | WordAcc | DWordAcc | QWordAcc | BufferAcc"},
59 1.1.1.2 christos {"AddressingModeKeyword", "Mode - Resource Descriptors",
60 1.1.1.2 christos ":= AddressingMode7Bit | AddressingMode10Bit"},
61 1.1 jruoho {"AddressKeyword", "ACPI memory range types",
62 1.1 jruoho ":= AddressRangeMemory | AddressRangeReserved | "
63 1.1 jruoho "AddressRangeNVS | AddressRangeACPI"},
64 1.1 jruoho {"AddressSpaceKeyword", "Operation Region Address Space Types",
65 1.1 jruoho ":= RegionSpaceKeyword | FFixedHW"},
66 1.1 jruoho {"BusMasterKeyword", "DMA Bus Mastering",
67 1.1 jruoho ":= BusMaster | NotBusMaster"},
68 1.1.1.2 christos {"ByteLengthKeyword", "Bits per Byte - Resource Descriptors",
69 1.1.1.2 christos ":= DataBitsFive | DataBitsSix | DataBitsSeven | DataBitsEight | DataBitsNine"},
70 1.1.1.2 christos {"ClockPhaseKeyword", "Resource Descriptors",
71 1.1.1.2 christos ":= ClockPhaseFirst | ClockPhaseSecond"},
72 1.1.1.2 christos {"ClockPolarityKeyword", "Resource Descriptors",
73 1.1.1.2 christos ":= ClockPolarityLow | ClockPolarityHigh"},
74 1.1 jruoho {"DecodeKeyword", "Type of Memory Decoding - Resource Descriptors",
75 1.1 jruoho ":= SubDecode | PosDecode"},
76 1.1.1.2 christos {"DmaTypeKeyword", "DMA Types - DMA Resource Descriptor",
77 1.1 jruoho ":= Compatibility | TypeA | TypeB | TypeF"},
78 1.1.1.2 christos {"EndianKeyword", "Endian type - Resource Descriptor",
79 1.1.1.2 christos ":= BigEndian | LittleEndian"},
80 1.1.1.2 christos {"ExtendedAttribKeyword", "Extended Bus Attributes",
81 1.1.1.2 christos ":= AttribBytes (AccessLength) | AttribRawBytes (AccessLength) | "
82 1.1.1.2 christos "AttribRawProcessBytes (AccessLength)"},
83 1.1.1.2 christos {"FlowControlKeyword", "Resource Descriptor",
84 1.1.1.2 christos ":= FlowControlNone | FlowControlXon | FlowControlHardware"},
85 1.1.1.2 christos {"InterruptLevelKeyword", "Interrupt Active Types",
86 1.1.1.2 christos ":= ActiveHigh | ActiveLow | ActiveBoth"},
87 1.1 jruoho {"InterruptTypeKeyword", "Interrupt Types",
88 1.1 jruoho ":= Edge | Level"},
89 1.1.1.2 christos {"IoDecodeKeyword", "I/O Decoding - IO Resource Descriptor",
90 1.1 jruoho ":= Decode16 | Decode10"},
91 1.1.1.2 christos {"IoRestrictionKeyword", "I/O Restriction - GPIO Resource Descriptors",
92 1.1.1.2 christos ":= IoRestrictionNone | IoRestrictionInputOnly | "
93 1.1.1.2 christos "IoRestrictionOutputOnly | IoRestrictionNoneAndPreserve"},
94 1.1 jruoho {"LockRuleKeyword", "Global Lock use for Field Operator",
95 1.1 jruoho ":= Lock | NoLock"},
96 1.1 jruoho {"MatchOpKeyword", "Types for Match Operator",
97 1.1 jruoho ":= MTR | MEQ | MLE | MLT | MGE | MGT"},
98 1.1 jruoho {"MaxKeyword", "Max Range Type - Resource Descriptors",
99 1.1 jruoho ":= MaxFixed | MaxNotFixed"},
100 1.1 jruoho {"MemTypeKeyword", "Memory Types - Resource Descriptors",
101 1.1 jruoho ":= Cacheable | WriteCombining | Prefetchable | NonCacheable"},
102 1.1 jruoho {"MinKeyword", "Min Range Type - Resource Descriptors",
103 1.1 jruoho ":= MinFixed | MinNotFixed"},
104 1.1 jruoho {"ObjectTypeKeyword", "ACPI Object Types",
105 1.1 jruoho ":= UnknownObj | IntObj | StrObj | BuffObj | PkgObj | FieldUnitObj | "
106 1.1 jruoho "DeviceObj | EventObj | MethodObj | MutexObj | OpRegionObj | PowerResObj | "
107 1.1 jruoho "ProcessorObj | ThermalZoneObj | BuffFieldObj | DDBHandleObj"},
108 1.1.1.2 christos {"ParityKeyword", "Resource Descriptors",
109 1.1.1.2 christos ":= ParityTypeNone | ParityTypeSpace | ParityTypeMark | "
110 1.1.1.2 christos "ParityTypeOdd | ParityTypeEven"},
111 1.1.1.2 christos {"PinConfigKeyword", "Pin Configuration - GPIO Resource Descriptors",
112 1.1.1.2 christos ":= PullDefault | PullUp | PullDown | PullNone"},
113 1.1.1.2 christos {"PolarityKeyword", "Resource Descriptors",
114 1.1.1.2 christos ":= PolarityHigh | PolarityLow"},
115 1.1 jruoho {"RangeTypeKeyword", "I/O Range Types - Resource Descriptors",
116 1.1 jruoho ":= ISAOnlyRanges | NonISAOnlyRanges | EntireRange"},
117 1.1 jruoho {"ReadWriteKeyword", "Memory Access Types - Resource Descriptors",
118 1.1 jruoho ":= ReadWrite | ReadOnly"},
119 1.1 jruoho {"RegionSpaceKeyword", "Operation Region Address Space Types",
120 1.1 jruoho ":= UserDefRegionSpace | SystemIO | SystemMemory | PCI_Config | "
121 1.1.1.2 christos "EmbeddedControl | SMBus | SystemCMOS | PciBarTarget | IPMI | "
122 1.1.1.2 christos "GeneralPurposeIo, GenericSerialBus"},
123 1.1 jruoho {"ResourceTypeKeyword", "Resource Usage - Resource Descriptors",
124 1.1 jruoho ":= ResourceConsumer | ResourceProducer"},
125 1.1 jruoho {"SerializeRuleKeyword", "Control Method Serialization",
126 1.1 jruoho ":= Serialized | NotSerialized"},
127 1.1 jruoho {"ShareTypeKeyword", "Interrupt Sharing - Resource Descriptors",
128 1.1.1.2 christos ":= Shared | Exclusive | SharedAndWake | ExclusiveAndWake"},
129 1.1.1.2 christos {"SlaveModeKeyword", "Resource Descriptors",
130 1.1.1.2 christos ":= ControllerInitiated | DeviceInitiated"},
131 1.1.1.2 christos {"StopBitsKeyword", "Resource Descriptors",
132 1.1.1.2 christos ":= StopBitsZero | StopBitsOne | StopBitsOnePlusHalf | StopBitsTwo"},
133 1.1.1.2 christos {"TransferWidthKeyword", "DMA Widths - Fixed DMA Resource Descriptor",
134 1.1.1.2 christos ":= Width8bit | Width16bit | Width32bit | Width64bit | "
135 1.1.1.2 christos "Width128bit | Width256bit"},
136 1.1 jruoho {"TranslationKeyword", "Translation Density Types - Resource Descriptors",
137 1.1 jruoho ":= SparseTranslation | DenseTranslation"},
138 1.1 jruoho {"TypeKeyword", "Translation Types - Resource Descriptors",
139 1.1 jruoho ":= TypeTranslation | TypeStatic"},
140 1.1 jruoho {"UpdateRuleKeyword", "Field Update Rules",
141 1.1 jruoho ":= Preserve | WriteAsOnes | WriteAsZeros"},
142 1.1 jruoho {"UserDefRegionSpace", "User defined address spaces",
143 1.1 jruoho ":= IntegerData => 0x80 - 0xFF"},
144 1.1.1.2 christos {"WireModeKeyword", "SPI Wire Mode - Resource Descriptors",
145 1.1.1.2 christos ":= ThreeWireMode | FourWireMode"},
146 1.1 jruoho {"XferTypeKeyword", "DMA Transfer Types",
147 1.1 jruoho ":= Transfer8 | Transfer16 | Transfer8_16"},
148 1.1 jruoho {NULL, NULL, NULL}
149 1.1 jruoho };
150