c2216007ed95e63fdf671cb7e814ad9bf357a734
1 /*******************************************************************************
3 * Module Name: utresdecode - Resource descriptor keyword strings
5 ******************************************************************************/
8 * Copyright (C) 2000 - 2017, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
49 #define _COMPONENT ACPI_UTILITIES
50 ACPI_MODULE_NAME ("utresdecode")
53 #if defined (ACPI_DEBUG_OUTPUT) || \
54 defined (ACPI_DISASSEMBLER) || \
55 defined (ACPI_DEBUGGER)
58 * Strings used to decode resource descriptors.
59 * Used by both the disassembler and the debugger resource dump routines
61 const char *AcpiGbl_BmDecode
[] =
67 const char *AcpiGbl_ConfigDecode
[] =
69 "0 - Good Configuration",
70 "1 - Acceptable Configuration",
71 "2 - Suboptimal Configuration",
72 "3 - ***Invalid Configuration***",
75 const char *AcpiGbl_ConsumeDecode
[] =
81 const char *AcpiGbl_DecDecode
[] =
87 const char *AcpiGbl_HeDecode
[] =
93 const char *AcpiGbl_IoDecode
[] =
99 const char *AcpiGbl_LlDecode
[] =
107 const char *AcpiGbl_MaxDecode
[] =
113 const char *AcpiGbl_MemDecode
[] =
121 const char *AcpiGbl_MinDecode
[] =
127 const char *AcpiGbl_MtpDecode
[] =
129 "AddressRangeMemory",
130 "AddressRangeReserved",
135 const char *AcpiGbl_RngDecode
[] =
143 const char *AcpiGbl_RwDecode
[] =
149 const char *AcpiGbl_ShrDecode
[] =
153 "ExclusiveAndWake", /* ACPI 5.0 */
154 "SharedAndWake" /* ACPI 5.0 */
157 const char *AcpiGbl_SizDecode
[] =
165 const char *AcpiGbl_TrsDecode
[] =
171 const char *AcpiGbl_TtpDecode
[] =
177 const char *AcpiGbl_TypDecode
[] =
185 const char *AcpiGbl_PpcDecode
[] =
193 const char *AcpiGbl_IorDecode
[] =
196 "IoRestrictionInputOnly",
197 "IoRestrictionOutputOnly",
198 "IoRestrictionNoneAndPreserve"
201 const char *AcpiGbl_DtsDecode
[] =
211 /* GPIO connection type */
213 const char *AcpiGbl_CtDecode
[] =
219 /* Serial bus type */
221 const char *AcpiGbl_SbtDecode
[] =
223 "/* UNKNOWN serial bus type */",
229 /* I2C serial bus access mode */
231 const char *AcpiGbl_AmDecode
[] =
233 "AddressingMode7Bit",
234 "AddressingMode10Bit"
237 /* I2C serial bus slave mode */
239 const char *AcpiGbl_SmDecode
[] =
241 "ControllerInitiated",
245 /* SPI serial bus wire mode */
247 const char *AcpiGbl_WmDecode
[] =
253 /* SPI serial clock phase */
255 const char *AcpiGbl_CphDecode
[] =
261 /* SPI serial bus clock polarity */
263 const char *AcpiGbl_CpoDecode
[] =
269 /* SPI serial bus device polarity */
271 const char *AcpiGbl_DpDecode
[] =
277 /* UART serial bus endian */
279 const char *AcpiGbl_EdDecode
[] =
285 /* UART serial bus bits per byte */
287 const char *AcpiGbl_BpbDecode
[] =
294 "/* UNKNOWN Bits per byte */",
295 "/* UNKNOWN Bits per byte */",
296 "/* UNKNOWN Bits per byte */"
299 /* UART serial bus stop bits */
301 const char *AcpiGbl_SbDecode
[] =
305 "StopBitsOnePlusHalf",
309 /* UART serial bus flow control */
311 const char *AcpiGbl_FcDecode
[] =
314 "FlowControlHardware",
316 "/* UNKNOWN flow control keyword */"
319 /* UART serial bus parity type */
321 const char *AcpiGbl_PtDecode
[] =
328 "/* UNKNOWN parity keyword */",
329 "/* UNKNOWN parity keyword */",
330 "/* UNKNOWN parity keyword */"
335 const char *AcpiGbl_PtypDecode
[] =
342 "Bias High Impedance",
350 "Input Schmitt Trigger",