dmresrcl2.c revision 1.1.1.1.10.2 1 1.1.1.1.10.2 tls /*******************************************************************************
2 1.1.1.1.10.2 tls *
3 1.1.1.1.10.2 tls * Module Name: dmresrcl2.c - "Large" Resource Descriptor disassembly (#2)
4 1.1.1.1.10.2 tls *
5 1.1.1.1.10.2 tls ******************************************************************************/
6 1.1.1.1.10.2 tls
7 1.1.1.1.10.2 tls /*
8 1.1.1.1.10.2 tls * Copyright (C) 2000 - 2013, Intel Corp.
9 1.1.1.1.10.2 tls * All rights reserved.
10 1.1.1.1.10.2 tls *
11 1.1.1.1.10.2 tls * Redistribution and use in source and binary forms, with or without
12 1.1.1.1.10.2 tls * modification, are permitted provided that the following conditions
13 1.1.1.1.10.2 tls * are met:
14 1.1.1.1.10.2 tls * 1. Redistributions of source code must retain the above copyright
15 1.1.1.1.10.2 tls * notice, this list of conditions, and the following disclaimer,
16 1.1.1.1.10.2 tls * without modification.
17 1.1.1.1.10.2 tls * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 1.1.1.1.10.2 tls * substantially similar to the "NO WARRANTY" disclaimer below
19 1.1.1.1.10.2 tls * ("Disclaimer") and any redistribution must be conditioned upon
20 1.1.1.1.10.2 tls * including a substantially similar Disclaimer requirement for further
21 1.1.1.1.10.2 tls * binary redistribution.
22 1.1.1.1.10.2 tls * 3. Neither the names of the above-listed copyright holders nor the names
23 1.1.1.1.10.2 tls * of any contributors may be used to endorse or promote products derived
24 1.1.1.1.10.2 tls * from this software without specific prior written permission.
25 1.1.1.1.10.2 tls *
26 1.1.1.1.10.2 tls * Alternatively, this software may be distributed under the terms of the
27 1.1.1.1.10.2 tls * GNU General Public License ("GPL") version 2 as published by the Free
28 1.1.1.1.10.2 tls * Software Foundation.
29 1.1.1.1.10.2 tls *
30 1.1.1.1.10.2 tls * NO WARRANTY
31 1.1.1.1.10.2 tls * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 1.1.1.1.10.2 tls * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 1.1.1.1.10.2 tls * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 1.1.1.1.10.2 tls * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 1.1.1.1.10.2 tls * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 1.1.1.1.10.2 tls * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 1.1.1.1.10.2 tls * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 1.1.1.1.10.2 tls * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 1.1.1.1.10.2 tls * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 1.1.1.1.10.2 tls * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 1.1.1.1.10.2 tls * POSSIBILITY OF SUCH DAMAGES.
42 1.1.1.1.10.2 tls */
43 1.1.1.1.10.2 tls
44 1.1.1.1.10.2 tls
45 1.1.1.1.10.2 tls #include "acpi.h"
46 1.1.1.1.10.2 tls #include "accommon.h"
47 1.1.1.1.10.2 tls #include "acdisasm.h"
48 1.1.1.1.10.2 tls
49 1.1.1.1.10.2 tls
50 1.1.1.1.10.2 tls #ifdef ACPI_DISASSEMBLER
51 1.1.1.1.10.2 tls
52 1.1.1.1.10.2 tls #define _COMPONENT ACPI_CA_DEBUGGER
53 1.1.1.1.10.2 tls ACPI_MODULE_NAME ("dbresrcl2")
54 1.1.1.1.10.2 tls
55 1.1.1.1.10.2 tls /* Local prototypes */
56 1.1.1.1.10.2 tls
57 1.1.1.1.10.2 tls static void
58 1.1.1.1.10.2 tls AcpiDmI2cSerialBusDescriptor (
59 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
60 1.1.1.1.10.2 tls UINT32 Length,
61 1.1.1.1.10.2 tls UINT32 Level);
62 1.1.1.1.10.2 tls
63 1.1.1.1.10.2 tls static void
64 1.1.1.1.10.2 tls AcpiDmSpiSerialBusDescriptor (
65 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
66 1.1.1.1.10.2 tls UINT32 Length,
67 1.1.1.1.10.2 tls UINT32 Level);
68 1.1.1.1.10.2 tls
69 1.1.1.1.10.2 tls static void
70 1.1.1.1.10.2 tls AcpiDmUartSerialBusDescriptor (
71 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
72 1.1.1.1.10.2 tls UINT32 Length,
73 1.1.1.1.10.2 tls UINT32 Level);
74 1.1.1.1.10.2 tls
75 1.1.1.1.10.2 tls static void
76 1.1.1.1.10.2 tls AcpiDmGpioCommon (
77 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
78 1.1.1.1.10.2 tls UINT32 Level);
79 1.1.1.1.10.2 tls
80 1.1.1.1.10.2 tls static void
81 1.1.1.1.10.2 tls AcpiDmDumpRawDataBuffer (
82 1.1.1.1.10.2 tls UINT8 *Buffer,
83 1.1.1.1.10.2 tls UINT32 Length,
84 1.1.1.1.10.2 tls UINT32 Level);
85 1.1.1.1.10.2 tls
86 1.1.1.1.10.2 tls
87 1.1.1.1.10.2 tls /* Dispatch table for the serial bus descriptors */
88 1.1.1.1.10.2 tls
89 1.1.1.1.10.2 tls static ACPI_RESOURCE_HANDLER SerialBusResourceDispatch [] =
90 1.1.1.1.10.2 tls {
91 1.1.1.1.10.2 tls NULL,
92 1.1.1.1.10.2 tls AcpiDmI2cSerialBusDescriptor,
93 1.1.1.1.10.2 tls AcpiDmSpiSerialBusDescriptor,
94 1.1.1.1.10.2 tls AcpiDmUartSerialBusDescriptor
95 1.1.1.1.10.2 tls };
96 1.1.1.1.10.2 tls
97 1.1.1.1.10.2 tls
98 1.1.1.1.10.2 tls /*******************************************************************************
99 1.1.1.1.10.2 tls *
100 1.1.1.1.10.2 tls * FUNCTION: AcpiDmDumpRawDataBuffer
101 1.1.1.1.10.2 tls *
102 1.1.1.1.10.2 tls * PARAMETERS: Buffer - Pointer to the data bytes
103 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
104 1.1.1.1.10.2 tls * Level - Current source code indentation level
105 1.1.1.1.10.2 tls *
106 1.1.1.1.10.2 tls * RETURN: None
107 1.1.1.1.10.2 tls *
108 1.1.1.1.10.2 tls * DESCRIPTION: Dump a data buffer as a RawDataBuffer() object. Used for
109 1.1.1.1.10.2 tls * vendor data bytes.
110 1.1.1.1.10.2 tls *
111 1.1.1.1.10.2 tls ******************************************************************************/
112 1.1.1.1.10.2 tls
113 1.1.1.1.10.2 tls static void
114 1.1.1.1.10.2 tls AcpiDmDumpRawDataBuffer (
115 1.1.1.1.10.2 tls UINT8 *Buffer,
116 1.1.1.1.10.2 tls UINT32 Length,
117 1.1.1.1.10.2 tls UINT32 Level)
118 1.1.1.1.10.2 tls {
119 1.1.1.1.10.2 tls UINT32 Index;
120 1.1.1.1.10.2 tls UINT32 i;
121 1.1.1.1.10.2 tls UINT32 j;
122 1.1.1.1.10.2 tls
123 1.1.1.1.10.2 tls
124 1.1.1.1.10.2 tls if (!Length)
125 1.1.1.1.10.2 tls {
126 1.1.1.1.10.2 tls return;
127 1.1.1.1.10.2 tls }
128 1.1.1.1.10.2 tls
129 1.1.1.1.10.2 tls AcpiOsPrintf ("RawDataBuffer (0x%.2X) // Vendor Data", Length);
130 1.1.1.1.10.2 tls
131 1.1.1.1.10.2 tls AcpiOsPrintf ("\n");
132 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
133 1.1.1.1.10.2 tls AcpiOsPrintf ("{\n");
134 1.1.1.1.10.2 tls AcpiDmIndent (Level + 2);
135 1.1.1.1.10.2 tls
136 1.1.1.1.10.2 tls for (i = 0; i < Length;)
137 1.1.1.1.10.2 tls {
138 1.1.1.1.10.2 tls for (j = 0; j < 8; j++)
139 1.1.1.1.10.2 tls {
140 1.1.1.1.10.2 tls Index = i + j;
141 1.1.1.1.10.2 tls if (Index >= Length)
142 1.1.1.1.10.2 tls {
143 1.1.1.1.10.2 tls goto Finish;
144 1.1.1.1.10.2 tls }
145 1.1.1.1.10.2 tls
146 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X", Buffer[Index]);
147 1.1.1.1.10.2 tls if ((Index + 1) >= Length)
148 1.1.1.1.10.2 tls {
149 1.1.1.1.10.2 tls goto Finish;
150 1.1.1.1.10.2 tls }
151 1.1.1.1.10.2 tls
152 1.1.1.1.10.2 tls AcpiOsPrintf (", ");
153 1.1.1.1.10.2 tls }
154 1.1.1.1.10.2 tls AcpiOsPrintf ("\n");
155 1.1.1.1.10.2 tls AcpiDmIndent (Level + 2);
156 1.1.1.1.10.2 tls
157 1.1.1.1.10.2 tls i += 8;
158 1.1.1.1.10.2 tls }
159 1.1.1.1.10.2 tls
160 1.1.1.1.10.2 tls Finish:
161 1.1.1.1.10.2 tls AcpiOsPrintf ("\n");
162 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
163 1.1.1.1.10.2 tls AcpiOsPrintf ("}");
164 1.1.1.1.10.2 tls }
165 1.1.1.1.10.2 tls
166 1.1.1.1.10.2 tls
167 1.1.1.1.10.2 tls /*******************************************************************************
168 1.1.1.1.10.2 tls *
169 1.1.1.1.10.2 tls * FUNCTION: AcpiDmGpioCommon
170 1.1.1.1.10.2 tls *
171 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
172 1.1.1.1.10.2 tls * Level - Current source code indentation level
173 1.1.1.1.10.2 tls *
174 1.1.1.1.10.2 tls * RETURN: None
175 1.1.1.1.10.2 tls *
176 1.1.1.1.10.2 tls * DESCRIPTION: Decode common parts of a GPIO Interrupt descriptor
177 1.1.1.1.10.2 tls *
178 1.1.1.1.10.2 tls ******************************************************************************/
179 1.1.1.1.10.2 tls
180 1.1.1.1.10.2 tls static void
181 1.1.1.1.10.2 tls AcpiDmGpioCommon (
182 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
183 1.1.1.1.10.2 tls UINT32 Level)
184 1.1.1.1.10.2 tls {
185 1.1.1.1.10.2 tls UINT32 PinCount;
186 1.1.1.1.10.2 tls UINT16 *PinList;
187 1.1.1.1.10.2 tls UINT8 *VendorData;
188 1.1.1.1.10.2 tls UINT32 i;
189 1.1.1.1.10.2 tls
190 1.1.1.1.10.2 tls
191 1.1.1.1.10.2 tls /* ResourceSource, ResourceSourceIndex, ResourceType */
192 1.1.1.1.10.2 tls
193 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
194 1.1.1.1.10.2 tls if (Resource->Gpio.ResSourceOffset)
195 1.1.1.1.10.2 tls {
196 1.1.1.1.10.2 tls AcpiUtPrintString (
197 1.1.1.1.10.2 tls ACPI_ADD_PTR (char, Resource, Resource->Gpio.ResSourceOffset),
198 1.1.1.1.10.2 tls ACPI_UINT16_MAX);
199 1.1.1.1.10.2 tls }
200 1.1.1.1.10.2 tls
201 1.1.1.1.10.2 tls AcpiOsPrintf (", ");
202 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.ResSourceIndex);
203 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
204 1.1.1.1.10.2 tls AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->Gpio.Flags)]);
205 1.1.1.1.10.2 tls
206 1.1.1.1.10.2 tls /* Insert a descriptor name */
207 1.1.1.1.10.2 tls
208 1.1.1.1.10.2 tls AcpiDmDescriptorName ();
209 1.1.1.1.10.2 tls AcpiOsPrintf (",");
210 1.1.1.1.10.2 tls
211 1.1.1.1.10.2 tls /* Dump the vendor data */
212 1.1.1.1.10.2 tls
213 1.1.1.1.10.2 tls if (Resource->Gpio.VendorOffset)
214 1.1.1.1.10.2 tls {
215 1.1.1.1.10.2 tls AcpiOsPrintf ("\n");
216 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
217 1.1.1.1.10.2 tls VendorData = ACPI_ADD_PTR (UINT8, Resource,
218 1.1.1.1.10.2 tls Resource->Gpio.VendorOffset);
219 1.1.1.1.10.2 tls
220 1.1.1.1.10.2 tls AcpiDmDumpRawDataBuffer (VendorData,
221 1.1.1.1.10.2 tls Resource->Gpio.VendorLength, Level);
222 1.1.1.1.10.2 tls }
223 1.1.1.1.10.2 tls
224 1.1.1.1.10.2 tls AcpiOsPrintf (")\n");
225 1.1.1.1.10.2 tls
226 1.1.1.1.10.2 tls /* Dump the interrupt list */
227 1.1.1.1.10.2 tls
228 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
229 1.1.1.1.10.2 tls AcpiOsPrintf ("{ // Pin list\n");
230 1.1.1.1.10.2 tls
231 1.1.1.1.10.2 tls PinCount = ((UINT32) (Resource->Gpio.ResSourceOffset -
232 1.1.1.1.10.2 tls Resource->Gpio.PinTableOffset)) /
233 1.1.1.1.10.2 tls sizeof (UINT16);
234 1.1.1.1.10.2 tls
235 1.1.1.1.10.2 tls PinList = (UINT16 *) ACPI_ADD_PTR (char, Resource,
236 1.1.1.1.10.2 tls Resource->Gpio.PinTableOffset);
237 1.1.1.1.10.2 tls
238 1.1.1.1.10.2 tls for (i = 0; i < PinCount; i++)
239 1.1.1.1.10.2 tls {
240 1.1.1.1.10.2 tls AcpiDmIndent (Level + 2);
241 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%4.4X%s\n", PinList[i], ((i + 1) < PinCount) ? "," : "");
242 1.1.1.1.10.2 tls }
243 1.1.1.1.10.2 tls
244 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
245 1.1.1.1.10.2 tls AcpiOsPrintf ("}\n");
246 1.1.1.1.10.2 tls }
247 1.1.1.1.10.2 tls
248 1.1.1.1.10.2 tls
249 1.1.1.1.10.2 tls /*******************************************************************************
250 1.1.1.1.10.2 tls *
251 1.1.1.1.10.2 tls * FUNCTION: AcpiDmGpioIntDescriptor
252 1.1.1.1.10.2 tls *
253 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
254 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
255 1.1.1.1.10.2 tls * Level - Current source code indentation level
256 1.1.1.1.10.2 tls *
257 1.1.1.1.10.2 tls * RETURN: None
258 1.1.1.1.10.2 tls *
259 1.1.1.1.10.2 tls * DESCRIPTION: Decode a GPIO Interrupt descriptor
260 1.1.1.1.10.2 tls *
261 1.1.1.1.10.2 tls ******************************************************************************/
262 1.1.1.1.10.2 tls
263 1.1.1.1.10.2 tls static void
264 1.1.1.1.10.2 tls AcpiDmGpioIntDescriptor (
265 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
266 1.1.1.1.10.2 tls UINT32 Length,
267 1.1.1.1.10.2 tls UINT32 Level)
268 1.1.1.1.10.2 tls {
269 1.1.1.1.10.2 tls
270 1.1.1.1.10.2 tls /* Dump the GpioInt-specific portion of the descriptor */
271 1.1.1.1.10.2 tls
272 1.1.1.1.10.2 tls /* EdgeLevel, ActiveLevel, Shared */
273 1.1.1.1.10.2 tls
274 1.1.1.1.10.2 tls AcpiDmIndent (Level);
275 1.1.1.1.10.2 tls AcpiOsPrintf ("GpioInt (%s, %s, %s, ",
276 1.1.1.1.10.2 tls AcpiGbl_HeDecode [ACPI_GET_1BIT_FLAG (Resource->Gpio.IntFlags)],
277 1.1.1.1.10.2 tls AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Gpio.IntFlags, 1)],
278 1.1.1.1.10.2 tls AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Gpio.IntFlags, 3)]);
279 1.1.1.1.10.2 tls
280 1.1.1.1.10.2 tls /* PinConfig, DebounceTimeout */
281 1.1.1.1.10.2 tls
282 1.1.1.1.10.2 tls if (Resource->Gpio.PinConfig <= 3)
283 1.1.1.1.10.2 tls {
284 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
285 1.1.1.1.10.2 tls AcpiGbl_PpcDecode[Resource->Gpio.PinConfig]);
286 1.1.1.1.10.2 tls }
287 1.1.1.1.10.2 tls else
288 1.1.1.1.10.2 tls {
289 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.PinConfig);
290 1.1.1.1.10.2 tls }
291 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%4.4X,\n", Resource->Gpio.DebounceTimeout);
292 1.1.1.1.10.2 tls
293 1.1.1.1.10.2 tls /* Dump the GpioInt/GpioIo common portion of the descriptor */
294 1.1.1.1.10.2 tls
295 1.1.1.1.10.2 tls AcpiDmGpioCommon (Resource, Level);
296 1.1.1.1.10.2 tls }
297 1.1.1.1.10.2 tls
298 1.1.1.1.10.2 tls
299 1.1.1.1.10.2 tls /*******************************************************************************
300 1.1.1.1.10.2 tls *
301 1.1.1.1.10.2 tls * FUNCTION: AcpiDmGpioIoDescriptor
302 1.1.1.1.10.2 tls *
303 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
304 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
305 1.1.1.1.10.2 tls * Level - Current source code indentation level
306 1.1.1.1.10.2 tls *
307 1.1.1.1.10.2 tls * RETURN: None
308 1.1.1.1.10.2 tls *
309 1.1.1.1.10.2 tls * DESCRIPTION: Decode a GPIO I/O descriptor
310 1.1.1.1.10.2 tls *
311 1.1.1.1.10.2 tls ******************************************************************************/
312 1.1.1.1.10.2 tls
313 1.1.1.1.10.2 tls static void
314 1.1.1.1.10.2 tls AcpiDmGpioIoDescriptor (
315 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
316 1.1.1.1.10.2 tls UINT32 Length,
317 1.1.1.1.10.2 tls UINT32 Level)
318 1.1.1.1.10.2 tls {
319 1.1.1.1.10.2 tls
320 1.1.1.1.10.2 tls /* Dump the GpioIo-specific portion of the descriptor */
321 1.1.1.1.10.2 tls
322 1.1.1.1.10.2 tls /* Shared, PinConfig */
323 1.1.1.1.10.2 tls
324 1.1.1.1.10.2 tls AcpiDmIndent (Level);
325 1.1.1.1.10.2 tls AcpiOsPrintf ("GpioIo (%s, ",
326 1.1.1.1.10.2 tls AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Gpio.IntFlags, 3)]);
327 1.1.1.1.10.2 tls
328 1.1.1.1.10.2 tls if (Resource->Gpio.PinConfig <= 3)
329 1.1.1.1.10.2 tls {
330 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
331 1.1.1.1.10.2 tls AcpiGbl_PpcDecode[Resource->Gpio.PinConfig]);
332 1.1.1.1.10.2 tls }
333 1.1.1.1.10.2 tls else
334 1.1.1.1.10.2 tls {
335 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.PinConfig);
336 1.1.1.1.10.2 tls }
337 1.1.1.1.10.2 tls
338 1.1.1.1.10.2 tls /* DebounceTimeout, DriveStrength, IoRestriction */
339 1.1.1.1.10.2 tls
340 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%4.4X, ", Resource->Gpio.DebounceTimeout);
341 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%4.4X, ", Resource->Gpio.DriveStrength);
342 1.1.1.1.10.2 tls AcpiOsPrintf ("%s,\n",
343 1.1.1.1.10.2 tls AcpiGbl_IorDecode [ACPI_GET_2BIT_FLAG (Resource->Gpio.IntFlags)]);
344 1.1.1.1.10.2 tls
345 1.1.1.1.10.2 tls /* Dump the GpioInt/GpioIo common portion of the descriptor */
346 1.1.1.1.10.2 tls
347 1.1.1.1.10.2 tls AcpiDmGpioCommon (Resource, Level);
348 1.1.1.1.10.2 tls }
349 1.1.1.1.10.2 tls
350 1.1.1.1.10.2 tls
351 1.1.1.1.10.2 tls /*******************************************************************************
352 1.1.1.1.10.2 tls *
353 1.1.1.1.10.2 tls * FUNCTION: AcpiDmGpioDescriptor
354 1.1.1.1.10.2 tls *
355 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
356 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
357 1.1.1.1.10.2 tls * Level - Current source code indentation level
358 1.1.1.1.10.2 tls *
359 1.1.1.1.10.2 tls * RETURN: None
360 1.1.1.1.10.2 tls *
361 1.1.1.1.10.2 tls * DESCRIPTION: Decode a GpioInt/GpioIo GPIO Interrupt/IO descriptor
362 1.1.1.1.10.2 tls *
363 1.1.1.1.10.2 tls ******************************************************************************/
364 1.1.1.1.10.2 tls
365 1.1.1.1.10.2 tls void
366 1.1.1.1.10.2 tls AcpiDmGpioDescriptor (
367 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
368 1.1.1.1.10.2 tls UINT32 Length,
369 1.1.1.1.10.2 tls UINT32 Level)
370 1.1.1.1.10.2 tls {
371 1.1.1.1.10.2 tls UINT8 ConnectionType;
372 1.1.1.1.10.2 tls
373 1.1.1.1.10.2 tls
374 1.1.1.1.10.2 tls ConnectionType = Resource->Gpio.ConnectionType;
375 1.1.1.1.10.2 tls
376 1.1.1.1.10.2 tls switch (ConnectionType)
377 1.1.1.1.10.2 tls {
378 1.1.1.1.10.2 tls case AML_RESOURCE_GPIO_TYPE_INT:
379 1.1.1.1.10.2 tls
380 1.1.1.1.10.2 tls AcpiDmGpioIntDescriptor (Resource, Length, Level);
381 1.1.1.1.10.2 tls break;
382 1.1.1.1.10.2 tls
383 1.1.1.1.10.2 tls case AML_RESOURCE_GPIO_TYPE_IO:
384 1.1.1.1.10.2 tls
385 1.1.1.1.10.2 tls AcpiDmGpioIoDescriptor (Resource, Length, Level);
386 1.1.1.1.10.2 tls break;
387 1.1.1.1.10.2 tls
388 1.1.1.1.10.2 tls default:
389 1.1.1.1.10.2 tls
390 1.1.1.1.10.2 tls AcpiOsPrintf ("Unknown GPIO type\n");
391 1.1.1.1.10.2 tls break;
392 1.1.1.1.10.2 tls }
393 1.1.1.1.10.2 tls }
394 1.1.1.1.10.2 tls
395 1.1.1.1.10.2 tls
396 1.1.1.1.10.2 tls /*******************************************************************************
397 1.1.1.1.10.2 tls *
398 1.1.1.1.10.2 tls * FUNCTION: AcpiDmDumpSerialBusVendorData
399 1.1.1.1.10.2 tls *
400 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
401 1.1.1.1.10.2 tls *
402 1.1.1.1.10.2 tls * RETURN: None
403 1.1.1.1.10.2 tls *
404 1.1.1.1.10.2 tls * DESCRIPTION: Dump optional serial bus vendor data
405 1.1.1.1.10.2 tls *
406 1.1.1.1.10.2 tls ******************************************************************************/
407 1.1.1.1.10.2 tls
408 1.1.1.1.10.2 tls static void
409 1.1.1.1.10.2 tls AcpiDmDumpSerialBusVendorData (
410 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
411 1.1.1.1.10.2 tls UINT32 Level)
412 1.1.1.1.10.2 tls {
413 1.1.1.1.10.2 tls UINT8 *VendorData;
414 1.1.1.1.10.2 tls UINT32 VendorLength;
415 1.1.1.1.10.2 tls
416 1.1.1.1.10.2 tls
417 1.1.1.1.10.2 tls /* Get the (optional) vendor data and length */
418 1.1.1.1.10.2 tls
419 1.1.1.1.10.2 tls switch (Resource->CommonSerialBus.Type)
420 1.1.1.1.10.2 tls {
421 1.1.1.1.10.2 tls case AML_RESOURCE_I2C_SERIALBUSTYPE:
422 1.1.1.1.10.2 tls
423 1.1.1.1.10.2 tls VendorLength = Resource->CommonSerialBus.TypeDataLength -
424 1.1.1.1.10.2 tls AML_RESOURCE_I2C_MIN_DATA_LEN;
425 1.1.1.1.10.2 tls
426 1.1.1.1.10.2 tls VendorData = ACPI_ADD_PTR (UINT8, Resource,
427 1.1.1.1.10.2 tls sizeof (AML_RESOURCE_I2C_SERIALBUS));
428 1.1.1.1.10.2 tls break;
429 1.1.1.1.10.2 tls
430 1.1.1.1.10.2 tls case AML_RESOURCE_SPI_SERIALBUSTYPE:
431 1.1.1.1.10.2 tls
432 1.1.1.1.10.2 tls VendorLength = Resource->CommonSerialBus.TypeDataLength -
433 1.1.1.1.10.2 tls AML_RESOURCE_SPI_MIN_DATA_LEN;
434 1.1.1.1.10.2 tls
435 1.1.1.1.10.2 tls VendorData = ACPI_ADD_PTR (UINT8, Resource,
436 1.1.1.1.10.2 tls sizeof (AML_RESOURCE_SPI_SERIALBUS));
437 1.1.1.1.10.2 tls break;
438 1.1.1.1.10.2 tls
439 1.1.1.1.10.2 tls case AML_RESOURCE_UART_SERIALBUSTYPE:
440 1.1.1.1.10.2 tls
441 1.1.1.1.10.2 tls VendorLength = Resource->CommonSerialBus.TypeDataLength -
442 1.1.1.1.10.2 tls AML_RESOURCE_UART_MIN_DATA_LEN;
443 1.1.1.1.10.2 tls
444 1.1.1.1.10.2 tls VendorData = ACPI_ADD_PTR (UINT8, Resource,
445 1.1.1.1.10.2 tls sizeof (AML_RESOURCE_UART_SERIALBUS));
446 1.1.1.1.10.2 tls break;
447 1.1.1.1.10.2 tls
448 1.1.1.1.10.2 tls default:
449 1.1.1.1.10.2 tls
450 1.1.1.1.10.2 tls return;
451 1.1.1.1.10.2 tls }
452 1.1.1.1.10.2 tls
453 1.1.1.1.10.2 tls /* Dump the vendor bytes as a RawDataBuffer object */
454 1.1.1.1.10.2 tls
455 1.1.1.1.10.2 tls AcpiDmDumpRawDataBuffer (VendorData, VendorLength, Level);
456 1.1.1.1.10.2 tls }
457 1.1.1.1.10.2 tls
458 1.1.1.1.10.2 tls
459 1.1.1.1.10.2 tls /*******************************************************************************
460 1.1.1.1.10.2 tls *
461 1.1.1.1.10.2 tls * FUNCTION: AcpiDmI2cSerialBusDescriptor
462 1.1.1.1.10.2 tls *
463 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
464 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
465 1.1.1.1.10.2 tls * Level - Current source code indentation level
466 1.1.1.1.10.2 tls *
467 1.1.1.1.10.2 tls * RETURN: None
468 1.1.1.1.10.2 tls *
469 1.1.1.1.10.2 tls * DESCRIPTION: Decode a I2C serial bus descriptor
470 1.1.1.1.10.2 tls *
471 1.1.1.1.10.2 tls ******************************************************************************/
472 1.1.1.1.10.2 tls
473 1.1.1.1.10.2 tls static void
474 1.1.1.1.10.2 tls AcpiDmI2cSerialBusDescriptor (
475 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
476 1.1.1.1.10.2 tls UINT32 Length,
477 1.1.1.1.10.2 tls UINT32 Level)
478 1.1.1.1.10.2 tls {
479 1.1.1.1.10.2 tls UINT32 ResourceSourceOffset;
480 1.1.1.1.10.2 tls
481 1.1.1.1.10.2 tls
482 1.1.1.1.10.2 tls /* SlaveAddress, SlaveMode, ConnectionSpeed, AddressingMode */
483 1.1.1.1.10.2 tls
484 1.1.1.1.10.2 tls AcpiDmIndent (Level);
485 1.1.1.1.10.2 tls AcpiOsPrintf ("I2cSerialBus (0x%4.4X, %s, 0x%8.8X,\n",
486 1.1.1.1.10.2 tls Resource->I2cSerialBus.SlaveAddress,
487 1.1.1.1.10.2 tls AcpiGbl_SmDecode [ACPI_GET_1BIT_FLAG (Resource->I2cSerialBus.Flags)],
488 1.1.1.1.10.2 tls Resource->I2cSerialBus.ConnectionSpeed);
489 1.1.1.1.10.2 tls
490 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
491 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
492 1.1.1.1.10.2 tls AcpiGbl_AmDecode [ACPI_GET_1BIT_FLAG (Resource->I2cSerialBus.TypeSpecificFlags)]);
493 1.1.1.1.10.2 tls
494 1.1.1.1.10.2 tls /* ResourceSource is a required field */
495 1.1.1.1.10.2 tls
496 1.1.1.1.10.2 tls ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) +
497 1.1.1.1.10.2 tls Resource->CommonSerialBus.TypeDataLength;
498 1.1.1.1.10.2 tls
499 1.1.1.1.10.2 tls AcpiUtPrintString (
500 1.1.1.1.10.2 tls ACPI_ADD_PTR (char, Resource, ResourceSourceOffset),
501 1.1.1.1.10.2 tls ACPI_UINT16_MAX);
502 1.1.1.1.10.2 tls
503 1.1.1.1.10.2 tls /* ResourceSourceIndex, ResourceUsage */
504 1.1.1.1.10.2 tls
505 1.1.1.1.10.2 tls AcpiOsPrintf (",\n");
506 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
507 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, ", Resource->I2cSerialBus.ResSourceIndex);
508 1.1.1.1.10.2 tls
509 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
510 1.1.1.1.10.2 tls AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->I2cSerialBus.Flags, 1)]);
511 1.1.1.1.10.2 tls
512 1.1.1.1.10.2 tls /* Insert a descriptor name */
513 1.1.1.1.10.2 tls
514 1.1.1.1.10.2 tls AcpiDmDescriptorName ();
515 1.1.1.1.10.2 tls AcpiOsPrintf (",\n");
516 1.1.1.1.10.2 tls
517 1.1.1.1.10.2 tls /* Dump the vendor data */
518 1.1.1.1.10.2 tls
519 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
520 1.1.1.1.10.2 tls AcpiDmDumpSerialBusVendorData (Resource, Level);
521 1.1.1.1.10.2 tls AcpiOsPrintf (")\n");
522 1.1.1.1.10.2 tls }
523 1.1.1.1.10.2 tls
524 1.1.1.1.10.2 tls
525 1.1.1.1.10.2 tls /*******************************************************************************
526 1.1.1.1.10.2 tls *
527 1.1.1.1.10.2 tls * FUNCTION: AcpiDmSpiSerialBusDescriptor
528 1.1.1.1.10.2 tls *
529 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
530 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
531 1.1.1.1.10.2 tls * Level - Current source code indentation level
532 1.1.1.1.10.2 tls *
533 1.1.1.1.10.2 tls * RETURN: None
534 1.1.1.1.10.2 tls *
535 1.1.1.1.10.2 tls * DESCRIPTION: Decode a SPI serial bus descriptor
536 1.1.1.1.10.2 tls *
537 1.1.1.1.10.2 tls ******************************************************************************/
538 1.1.1.1.10.2 tls
539 1.1.1.1.10.2 tls static void
540 1.1.1.1.10.2 tls AcpiDmSpiSerialBusDescriptor (
541 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
542 1.1.1.1.10.2 tls UINT32 Length,
543 1.1.1.1.10.2 tls UINT32 Level)
544 1.1.1.1.10.2 tls {
545 1.1.1.1.10.2 tls UINT32 ResourceSourceOffset;
546 1.1.1.1.10.2 tls
547 1.1.1.1.10.2 tls
548 1.1.1.1.10.2 tls /* DeviceSelection, DeviceSelectionPolarity, WireMode, DataBitLength */
549 1.1.1.1.10.2 tls
550 1.1.1.1.10.2 tls AcpiDmIndent (Level);
551 1.1.1.1.10.2 tls AcpiOsPrintf ("SpiSerialBus (0x%4.4X, %s, %s, 0x%2.2X,\n",
552 1.1.1.1.10.2 tls Resource->SpiSerialBus.DeviceSelection,
553 1.1.1.1.10.2 tls AcpiGbl_DpDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->SpiSerialBus.TypeSpecificFlags, 1)],
554 1.1.1.1.10.2 tls AcpiGbl_WmDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.TypeSpecificFlags)],
555 1.1.1.1.10.2 tls Resource->SpiSerialBus.DataBitLength);
556 1.1.1.1.10.2 tls
557 1.1.1.1.10.2 tls /* SlaveMode, ConnectionSpeed, ClockPolarity, ClockPhase */
558 1.1.1.1.10.2 tls
559 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
560 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, 0x%8.8X, %s,\n",
561 1.1.1.1.10.2 tls AcpiGbl_SmDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.Flags)],
562 1.1.1.1.10.2 tls Resource->SpiSerialBus.ConnectionSpeed,
563 1.1.1.1.10.2 tls AcpiGbl_CpoDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.ClockPolarity)]);
564 1.1.1.1.10.2 tls
565 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
566 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
567 1.1.1.1.10.2 tls AcpiGbl_CphDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.ClockPhase)]);
568 1.1.1.1.10.2 tls
569 1.1.1.1.10.2 tls /* ResourceSource is a required field */
570 1.1.1.1.10.2 tls
571 1.1.1.1.10.2 tls ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) +
572 1.1.1.1.10.2 tls Resource->CommonSerialBus.TypeDataLength;
573 1.1.1.1.10.2 tls
574 1.1.1.1.10.2 tls AcpiUtPrintString (
575 1.1.1.1.10.2 tls ACPI_ADD_PTR (char, Resource, ResourceSourceOffset),
576 1.1.1.1.10.2 tls ACPI_UINT16_MAX);
577 1.1.1.1.10.2 tls
578 1.1.1.1.10.2 tls /* ResourceSourceIndex, ResourceUsage */
579 1.1.1.1.10.2 tls
580 1.1.1.1.10.2 tls AcpiOsPrintf (",\n");
581 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
582 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, ", Resource->SpiSerialBus.ResSourceIndex);
583 1.1.1.1.10.2 tls
584 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
585 1.1.1.1.10.2 tls AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->SpiSerialBus.Flags, 1)]);
586 1.1.1.1.10.2 tls
587 1.1.1.1.10.2 tls /* Insert a descriptor name */
588 1.1.1.1.10.2 tls
589 1.1.1.1.10.2 tls AcpiDmDescriptorName ();
590 1.1.1.1.10.2 tls AcpiOsPrintf (",\n");
591 1.1.1.1.10.2 tls
592 1.1.1.1.10.2 tls /* Dump the vendor data */
593 1.1.1.1.10.2 tls
594 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
595 1.1.1.1.10.2 tls AcpiDmDumpSerialBusVendorData (Resource, Level);
596 1.1.1.1.10.2 tls AcpiOsPrintf (")\n");
597 1.1.1.1.10.2 tls }
598 1.1.1.1.10.2 tls
599 1.1.1.1.10.2 tls
600 1.1.1.1.10.2 tls /*******************************************************************************
601 1.1.1.1.10.2 tls *
602 1.1.1.1.10.2 tls * FUNCTION: AcpiDmUartSerialBusDescriptor
603 1.1.1.1.10.2 tls *
604 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
605 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
606 1.1.1.1.10.2 tls * Level - Current source code indentation level
607 1.1.1.1.10.2 tls *
608 1.1.1.1.10.2 tls * RETURN: None
609 1.1.1.1.10.2 tls *
610 1.1.1.1.10.2 tls * DESCRIPTION: Decode a UART serial bus descriptor
611 1.1.1.1.10.2 tls *
612 1.1.1.1.10.2 tls ******************************************************************************/
613 1.1.1.1.10.2 tls
614 1.1.1.1.10.2 tls static void
615 1.1.1.1.10.2 tls AcpiDmUartSerialBusDescriptor (
616 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
617 1.1.1.1.10.2 tls UINT32 Length,
618 1.1.1.1.10.2 tls UINT32 Level)
619 1.1.1.1.10.2 tls {
620 1.1.1.1.10.2 tls UINT32 ResourceSourceOffset;
621 1.1.1.1.10.2 tls
622 1.1.1.1.10.2 tls
623 1.1.1.1.10.2 tls /* ConnectionSpeed, BitsPerByte, StopBits */
624 1.1.1.1.10.2 tls
625 1.1.1.1.10.2 tls AcpiDmIndent (Level);
626 1.1.1.1.10.2 tls AcpiOsPrintf ("UartSerialBus (0x%8.8X, %s, %s,\n",
627 1.1.1.1.10.2 tls Resource->UartSerialBus.DefaultBaudRate,
628 1.1.1.1.10.2 tls AcpiGbl_BpbDecode [ACPI_EXTRACT_3BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 4)],
629 1.1.1.1.10.2 tls AcpiGbl_SbDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 2)]);
630 1.1.1.1.10.2 tls
631 1.1.1.1.10.2 tls /* LinesInUse, IsBigEndian, Parity, FlowControl */
632 1.1.1.1.10.2 tls
633 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
634 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, %s, %s, %s,\n",
635 1.1.1.1.10.2 tls Resource->UartSerialBus.LinesEnabled,
636 1.1.1.1.10.2 tls AcpiGbl_EdDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 7)],
637 1.1.1.1.10.2 tls AcpiGbl_PtDecode [ACPI_GET_3BIT_FLAG (Resource->UartSerialBus.Parity)],
638 1.1.1.1.10.2 tls AcpiGbl_FcDecode [ACPI_GET_2BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags)]);
639 1.1.1.1.10.2 tls
640 1.1.1.1.10.2 tls /* ReceiveBufferSize, TransmitBufferSize */
641 1.1.1.1.10.2 tls
642 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
643 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%4.4X, 0x%4.4X, ",
644 1.1.1.1.10.2 tls Resource->UartSerialBus.RxFifoSize,
645 1.1.1.1.10.2 tls Resource->UartSerialBus.TxFifoSize);
646 1.1.1.1.10.2 tls
647 1.1.1.1.10.2 tls /* ResourceSource is a required field */
648 1.1.1.1.10.2 tls
649 1.1.1.1.10.2 tls ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) +
650 1.1.1.1.10.2 tls Resource->CommonSerialBus.TypeDataLength;
651 1.1.1.1.10.2 tls
652 1.1.1.1.10.2 tls AcpiUtPrintString (
653 1.1.1.1.10.2 tls ACPI_ADD_PTR (char, Resource, ResourceSourceOffset),
654 1.1.1.1.10.2 tls ACPI_UINT16_MAX);
655 1.1.1.1.10.2 tls
656 1.1.1.1.10.2 tls /* ResourceSourceIndex, ResourceUsage */
657 1.1.1.1.10.2 tls
658 1.1.1.1.10.2 tls AcpiOsPrintf (",\n");
659 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
660 1.1.1.1.10.2 tls AcpiOsPrintf ("0x%2.2X, ", Resource->UartSerialBus.ResSourceIndex);
661 1.1.1.1.10.2 tls
662 1.1.1.1.10.2 tls AcpiOsPrintf ("%s, ",
663 1.1.1.1.10.2 tls AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.Flags, 1)]);
664 1.1.1.1.10.2 tls
665 1.1.1.1.10.2 tls /* Insert a descriptor name */
666 1.1.1.1.10.2 tls
667 1.1.1.1.10.2 tls AcpiDmDescriptorName ();
668 1.1.1.1.10.2 tls AcpiOsPrintf (",\n");
669 1.1.1.1.10.2 tls
670 1.1.1.1.10.2 tls /* Dump the vendor data */
671 1.1.1.1.10.2 tls
672 1.1.1.1.10.2 tls AcpiDmIndent (Level + 1);
673 1.1.1.1.10.2 tls AcpiDmDumpSerialBusVendorData (Resource, Level);
674 1.1.1.1.10.2 tls AcpiOsPrintf (")\n");
675 1.1.1.1.10.2 tls }
676 1.1.1.1.10.2 tls
677 1.1.1.1.10.2 tls
678 1.1.1.1.10.2 tls /*******************************************************************************
679 1.1.1.1.10.2 tls *
680 1.1.1.1.10.2 tls * FUNCTION: AcpiDmSerialBusDescriptor
681 1.1.1.1.10.2 tls *
682 1.1.1.1.10.2 tls * PARAMETERS: Resource - Pointer to the resource descriptor
683 1.1.1.1.10.2 tls * Length - Length of the descriptor in bytes
684 1.1.1.1.10.2 tls * Level - Current source code indentation level
685 1.1.1.1.10.2 tls *
686 1.1.1.1.10.2 tls * RETURN: None
687 1.1.1.1.10.2 tls *
688 1.1.1.1.10.2 tls * DESCRIPTION: Decode a I2C/SPI/UART serial bus descriptor
689 1.1.1.1.10.2 tls *
690 1.1.1.1.10.2 tls ******************************************************************************/
691 1.1.1.1.10.2 tls
692 1.1.1.1.10.2 tls void
693 1.1.1.1.10.2 tls AcpiDmSerialBusDescriptor (
694 1.1.1.1.10.2 tls AML_RESOURCE *Resource,
695 1.1.1.1.10.2 tls UINT32 Length,
696 1.1.1.1.10.2 tls UINT32 Level)
697 1.1.1.1.10.2 tls {
698 1.1.1.1.10.2 tls
699 1.1.1.1.10.2 tls SerialBusResourceDispatch [Resource->CommonSerialBus.Type] (
700 1.1.1.1.10.2 tls Resource, Length, Level);
701 1.1.1.1.10.2 tls }
702 1.1.1.1.10.2 tls
703 1.1.1.1.10.2 tls #endif
704