1a159c266SJung-uk Kim /******************************************************************************* 2a159c266SJung-uk Kim * 3a159c266SJung-uk Kim * Module Name: rsserial - GPIO/SerialBus resource descriptors 4a159c266SJung-uk Kim * 5a159c266SJung-uk Kim ******************************************************************************/ 6a159c266SJung-uk Kim 70d84335fSJung-uk Kim /****************************************************************************** 80d84335fSJung-uk Kim * 90d84335fSJung-uk Kim * 1. Copyright Notice 100d84335fSJung-uk Kim * 11*722b1667SJung-uk Kim * Some or all of this work - Copyright (c) 1999 - 2023, Intel Corp. 12a159c266SJung-uk Kim * All rights reserved. 13a159c266SJung-uk Kim * 140d84335fSJung-uk Kim * 2. License 150d84335fSJung-uk Kim * 160d84335fSJung-uk Kim * 2.1. This is your license from Intel Corp. under its intellectual property 170d84335fSJung-uk Kim * rights. You may have additional license terms from the party that provided 180d84335fSJung-uk Kim * you this software, covering your right to use that party's intellectual 190d84335fSJung-uk Kim * property rights. 200d84335fSJung-uk Kim * 210d84335fSJung-uk Kim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 220d84335fSJung-uk Kim * copy of the source code appearing in this file ("Covered Code") an 230d84335fSJung-uk Kim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 240d84335fSJung-uk Kim * base code distributed originally by Intel ("Original Intel Code") to copy, 250d84335fSJung-uk Kim * make derivatives, distribute, use and display any portion of the Covered 260d84335fSJung-uk Kim * Code in any form, with the right to sublicense such rights; and 270d84335fSJung-uk Kim * 280d84335fSJung-uk Kim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 290d84335fSJung-uk Kim * license (with the right to sublicense), under only those claims of Intel 300d84335fSJung-uk Kim * patents that are infringed by the Original Intel Code, to make, use, sell, 310d84335fSJung-uk Kim * offer to sell, and import the Covered Code and derivative works thereof 320d84335fSJung-uk Kim * solely to the minimum extent necessary to exercise the above copyright 330d84335fSJung-uk Kim * license, and in no event shall the patent license extend to any additions 340d84335fSJung-uk Kim * to or modifications of the Original Intel Code. No other license or right 350d84335fSJung-uk Kim * is granted directly or by implication, estoppel or otherwise; 360d84335fSJung-uk Kim * 370d84335fSJung-uk Kim * The above copyright and patent license is granted only if the following 380d84335fSJung-uk Kim * conditions are met: 390d84335fSJung-uk Kim * 400d84335fSJung-uk Kim * 3. Conditions 410d84335fSJung-uk Kim * 420d84335fSJung-uk Kim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 430d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 440d84335fSJung-uk Kim * Code or modification with rights to further distribute source must include 450d84335fSJung-uk Kim * the above Copyright Notice, the above License, this list of Conditions, 460d84335fSJung-uk Kim * and the following Disclaimer and Export Compliance provision. In addition, 470d84335fSJung-uk Kim * Licensee must cause all Covered Code to which Licensee contributes to 480d84335fSJung-uk Kim * contain a file documenting the changes Licensee made to create that Covered 490d84335fSJung-uk Kim * Code and the date of any change. Licensee must include in that file the 500d84335fSJung-uk Kim * documentation of any changes made by any predecessor Licensee. Licensee 510d84335fSJung-uk Kim * must include a prominent statement that the modification is derived, 520d84335fSJung-uk Kim * directly or indirectly, from Original Intel Code. 530d84335fSJung-uk Kim * 540d84335fSJung-uk Kim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 550d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 560d84335fSJung-uk Kim * Code or modification without rights to further distribute source must 570d84335fSJung-uk Kim * include the following Disclaimer and Export Compliance provision in the 580d84335fSJung-uk Kim * documentation and/or other materials provided with distribution. In 590d84335fSJung-uk Kim * addition, Licensee may not authorize further sublicense of source of any 600d84335fSJung-uk Kim * portion of the Covered Code, and must include terms to the effect that the 610d84335fSJung-uk Kim * license from Licensee to its licensee is limited to the intellectual 620d84335fSJung-uk Kim * property embodied in the software Licensee provides to its licensee, and 630d84335fSJung-uk Kim * not to intellectual property embodied in modifications its licensee may 640d84335fSJung-uk Kim * make. 650d84335fSJung-uk Kim * 660d84335fSJung-uk Kim * 3.3. Redistribution of Executable. Redistribution in executable form of any 670d84335fSJung-uk Kim * substantial portion of the Covered Code or modification must reproduce the 680d84335fSJung-uk Kim * above Copyright Notice, and the following Disclaimer and Export Compliance 690d84335fSJung-uk Kim * provision in the documentation and/or other materials provided with the 700d84335fSJung-uk Kim * distribution. 710d84335fSJung-uk Kim * 720d84335fSJung-uk Kim * 3.4. Intel retains all right, title, and interest in and to the Original 730d84335fSJung-uk Kim * Intel Code. 740d84335fSJung-uk Kim * 750d84335fSJung-uk Kim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 760d84335fSJung-uk Kim * Intel shall be used in advertising or otherwise to promote the sale, use or 770d84335fSJung-uk Kim * other dealings in products derived from or relating to the Covered Code 780d84335fSJung-uk Kim * without prior written authorization from Intel. 790d84335fSJung-uk Kim * 800d84335fSJung-uk Kim * 4. Disclaimer and Export Compliance 810d84335fSJung-uk Kim * 820d84335fSJung-uk Kim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 830d84335fSJung-uk Kim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 840d84335fSJung-uk Kim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 850d84335fSJung-uk Kim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 860d84335fSJung-uk Kim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 870d84335fSJung-uk Kim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 880d84335fSJung-uk Kim * PARTICULAR PURPOSE. 890d84335fSJung-uk Kim * 900d84335fSJung-uk Kim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 910d84335fSJung-uk Kim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 920d84335fSJung-uk Kim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 930d84335fSJung-uk Kim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 940d84335fSJung-uk Kim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 950d84335fSJung-uk Kim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 960d84335fSJung-uk Kim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 970d84335fSJung-uk Kim * LIMITED REMEDY. 980d84335fSJung-uk Kim * 990d84335fSJung-uk Kim * 4.3. Licensee shall not export, either directly or indirectly, any of this 1000d84335fSJung-uk Kim * software or system incorporating such software without first obtaining any 1010d84335fSJung-uk Kim * required license or other approval from the U. S. Department of Commerce or 1020d84335fSJung-uk Kim * any other agency or department of the United States Government. In the 1030d84335fSJung-uk Kim * event Licensee exports any such software from the United States or 1040d84335fSJung-uk Kim * re-exports any such software from a foreign destination, Licensee shall 1050d84335fSJung-uk Kim * ensure that the distribution and export/re-export of the software is in 1060d84335fSJung-uk Kim * compliance with all laws, regulations, orders, or other restrictions of the 1070d84335fSJung-uk Kim * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1080d84335fSJung-uk Kim * any of its subsidiaries will export/re-export any technical data, process, 1090d84335fSJung-uk Kim * software, or service, directly or indirectly, to any country for which the 1100d84335fSJung-uk Kim * United States government or any agency thereof requires an export license, 1110d84335fSJung-uk Kim * other governmental approval, or letter of assurance, without first obtaining 1120d84335fSJung-uk Kim * such license, approval or letter. 1130d84335fSJung-uk Kim * 1140d84335fSJung-uk Kim ***************************************************************************** 1150d84335fSJung-uk Kim * 1160d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 1170d84335fSJung-uk Kim * following license: 1180d84335fSJung-uk Kim * 119a159c266SJung-uk Kim * Redistribution and use in source and binary forms, with or without 120a159c266SJung-uk Kim * modification, are permitted provided that the following conditions 121a159c266SJung-uk Kim * are met: 122a159c266SJung-uk Kim * 1. Redistributions of source code must retain the above copyright 123a159c266SJung-uk Kim * notice, this list of conditions, and the following disclaimer, 124a159c266SJung-uk Kim * without modification. 125a159c266SJung-uk Kim * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126a159c266SJung-uk Kim * substantially similar to the "NO WARRANTY" disclaimer below 127a159c266SJung-uk Kim * ("Disclaimer") and any redistribution must be conditioned upon 128a159c266SJung-uk Kim * including a substantially similar Disclaimer requirement for further 129a159c266SJung-uk Kim * binary redistribution. 130a159c266SJung-uk Kim * 3. Neither the names of the above-listed copyright holders nor the names 131a159c266SJung-uk Kim * of any contributors may be used to endorse or promote products derived 132a159c266SJung-uk Kim * from this software without specific prior written permission. 133a159c266SJung-uk Kim * 1340d84335fSJung-uk Kim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1350d84335fSJung-uk Kim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1360d84335fSJung-uk Kim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1370d84335fSJung-uk Kim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1380d84335fSJung-uk Kim * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1390d84335fSJung-uk Kim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1400d84335fSJung-uk Kim * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1410d84335fSJung-uk Kim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1420d84335fSJung-uk Kim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1430d84335fSJung-uk Kim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1440d84335fSJung-uk Kim * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1450d84335fSJung-uk Kim * 1460d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 147a159c266SJung-uk Kim * GNU General Public License ("GPL") version 2 as published by the Free 148a159c266SJung-uk Kim * Software Foundation. 149a159c266SJung-uk Kim * 1500d84335fSJung-uk Kim *****************************************************************************/ 151a159c266SJung-uk Kim 152a159c266SJung-uk Kim #include <contrib/dev/acpica/include/acpi.h> 153a159c266SJung-uk Kim #include <contrib/dev/acpica/include/accommon.h> 154a159c266SJung-uk Kim #include <contrib/dev/acpica/include/acresrc.h> 155a159c266SJung-uk Kim 156a159c266SJung-uk Kim #define _COMPONENT ACPI_RESOURCES 157a159c266SJung-uk Kim ACPI_MODULE_NAME ("rsserial") 158a159c266SJung-uk Kim 159a159c266SJung-uk Kim 160a159c266SJung-uk Kim /******************************************************************************* 161a159c266SJung-uk Kim * 162a159c266SJung-uk Kim * AcpiRsConvertGpio 163a159c266SJung-uk Kim * 164a159c266SJung-uk Kim ******************************************************************************/ 165a159c266SJung-uk Kim 166efcc2a30SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertGpio[18] = 167a159c266SJung-uk Kim { 168a159c266SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_GPIO, 169a159c266SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_GPIO), 170a159c266SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertGpio)}, 171a159c266SJung-uk Kim 172a159c266SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_GPIO, 173a159c266SJung-uk Kim sizeof (AML_RESOURCE_GPIO), 174a159c266SJung-uk Kim 0}, 175a159c266SJung-uk Kim 176a159c266SJung-uk Kim /* 177a159c266SJung-uk Kim * These fields are contiguous in both the source and destination: 178a159c266SJung-uk Kim * RevisionId 179a159c266SJung-uk Kim * ConnectionType 180a159c266SJung-uk Kim */ 181a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Gpio.RevisionId), 182a159c266SJung-uk Kim AML_OFFSET (Gpio.RevisionId), 183a159c266SJung-uk Kim 2}, 184a159c266SJung-uk Kim 185a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.ProducerConsumer), 186a159c266SJung-uk Kim AML_OFFSET (Gpio.Flags), 187a159c266SJung-uk Kim 0}, 188a159c266SJung-uk Kim 189cd6518c7SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.Shareable), 190a159c266SJung-uk Kim AML_OFFSET (Gpio.IntFlags), 191a159c266SJung-uk Kim 3}, 192a159c266SJung-uk Kim 193efcc2a30SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.WakeCapable), 194efcc2a30SJung-uk Kim AML_OFFSET (Gpio.IntFlags), 195efcc2a30SJung-uk Kim 4}, 196efcc2a30SJung-uk Kim 197a159c266SJung-uk Kim {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Gpio.IoRestriction), 198a159c266SJung-uk Kim AML_OFFSET (Gpio.IntFlags), 199a159c266SJung-uk Kim 0}, 200a159c266SJung-uk Kim 201a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.Triggering), 202a159c266SJung-uk Kim AML_OFFSET (Gpio.IntFlags), 203a159c266SJung-uk Kim 0}, 204a159c266SJung-uk Kim 205a159c266SJung-uk Kim {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Gpio.Polarity), 206a159c266SJung-uk Kim AML_OFFSET (Gpio.IntFlags), 207a159c266SJung-uk Kim 1}, 208a159c266SJung-uk Kim 209a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Gpio.PinConfig), 210a159c266SJung-uk Kim AML_OFFSET (Gpio.PinConfig), 211a159c266SJung-uk Kim 1}, 212a159c266SJung-uk Kim 213a159c266SJung-uk Kim /* 214a159c266SJung-uk Kim * These fields are contiguous in both the source and destination: 215a159c266SJung-uk Kim * DriveStrength 216a159c266SJung-uk Kim * DebounceTimeout 217a159c266SJung-uk Kim */ 218a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.Gpio.DriveStrength), 219a159c266SJung-uk Kim AML_OFFSET (Gpio.DriveStrength), 220a159c266SJung-uk Kim 2}, 221a159c266SJung-uk Kim 222a159c266SJung-uk Kim /* Pin Table */ 223a159c266SJung-uk Kim 224a159c266SJung-uk Kim {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.Gpio.PinTableLength), 225a159c266SJung-uk Kim AML_OFFSET (Gpio.PinTableOffset), 226a159c266SJung-uk Kim AML_OFFSET (Gpio.ResSourceOffset)}, 227a159c266SJung-uk Kim 228a159c266SJung-uk Kim {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.Gpio.PinTable), 229a159c266SJung-uk Kim AML_OFFSET (Gpio.PinTableOffset), 230a159c266SJung-uk Kim 0}, 231a159c266SJung-uk Kim 232a159c266SJung-uk Kim /* Resource Source */ 233a159c266SJung-uk Kim 234a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Gpio.ResourceSource.Index), 235a159c266SJung-uk Kim AML_OFFSET (Gpio.ResSourceIndex), 236a159c266SJung-uk Kim 1}, 237a159c266SJung-uk Kim 238a159c266SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.Gpio.ResourceSource.StringLength), 239a159c266SJung-uk Kim AML_OFFSET (Gpio.ResSourceOffset), 240a159c266SJung-uk Kim AML_OFFSET (Gpio.VendorOffset)}, 241a159c266SJung-uk Kim 242a159c266SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.Gpio.ResourceSource.StringPtr), 243a159c266SJung-uk Kim AML_OFFSET (Gpio.ResSourceOffset), 244a159c266SJung-uk Kim 0}, 245a159c266SJung-uk Kim 246a159c266SJung-uk Kim /* Vendor Data */ 247a159c266SJung-uk Kim 248a159c266SJung-uk Kim {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.Gpio.VendorLength), 249a159c266SJung-uk Kim AML_OFFSET (Gpio.VendorLength), 250a159c266SJung-uk Kim 1}, 251a159c266SJung-uk Kim 252a159c266SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.Gpio.VendorData), 253a159c266SJung-uk Kim AML_OFFSET (Gpio.VendorOffset), 254a159c266SJung-uk Kim 0}, 255a159c266SJung-uk Kim }; 256a159c266SJung-uk Kim 257af051161SJung-uk Kim /******************************************************************************* 258af051161SJung-uk Kim * 259*722b1667SJung-uk Kim * AcpiRsConvertClockInput 260*722b1667SJung-uk Kim * 261*722b1667SJung-uk Kim ******************************************************************************/ 262*722b1667SJung-uk Kim 263*722b1667SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertClockInput[8] = 264*722b1667SJung-uk Kim { 265*722b1667SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_CLOCK_INPUT, 266*722b1667SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_CLOCK_INPUT), 267*722b1667SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertClockInput)}, 268*722b1667SJung-uk Kim 269*722b1667SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_CLOCK_INPUT, 270*722b1667SJung-uk Kim sizeof (AML_RESOURCE_CLOCK_INPUT), 271*722b1667SJung-uk Kim 0}, 272*722b1667SJung-uk Kim 273*722b1667SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.ClockInput.RevisionId), 274*722b1667SJung-uk Kim AML_OFFSET (ClockInput.RevisionId), 275*722b1667SJung-uk Kim 1}, 276*722b1667SJung-uk Kim 277*722b1667SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ClockInput.Mode), 278*722b1667SJung-uk Kim AML_OFFSET (ClockInput.Flags), 279*722b1667SJung-uk Kim 0}, 280*722b1667SJung-uk Kim 281*722b1667SJung-uk Kim {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.ClockInput.Scale), 282*722b1667SJung-uk Kim AML_OFFSET (ClockInput.Flags), 283*722b1667SJung-uk Kim 1}, 284*722b1667SJung-uk Kim 285*722b1667SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.ClockInput.FrequencyDivisor), 286*722b1667SJung-uk Kim AML_OFFSET (ClockInput.FrequencyDivisor), 287*722b1667SJung-uk Kim 2}, 288*722b1667SJung-uk Kim 289*722b1667SJung-uk Kim {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.ClockInput.FrequencyNumerator), 290*722b1667SJung-uk Kim AML_OFFSET (ClockInput.FrequencyNumerator), 291*722b1667SJung-uk Kim 4}, 292*722b1667SJung-uk Kim 293*722b1667SJung-uk Kim /* Resource Source */ 294*722b1667SJung-uk Kim {ACPI_RSC_SOURCE, ACPI_RS_OFFSET (Data.ClockInput.ResourceSource), 295*722b1667SJung-uk Kim 0, 296*722b1667SJung-uk Kim sizeof(AML_RESOURCE_CLOCK_INPUT)}, 297*722b1667SJung-uk Kim 298*722b1667SJung-uk Kim }; 299*722b1667SJung-uk Kim 300*722b1667SJung-uk Kim 301*722b1667SJung-uk Kim /******************************************************************************* 302*722b1667SJung-uk Kim * 303af051161SJung-uk Kim * AcpiRsConvertPinfunction 304af051161SJung-uk Kim * 305af051161SJung-uk Kim ******************************************************************************/ 306af051161SJung-uk Kim 307af051161SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertPinFunction[13] = 308af051161SJung-uk Kim { 309af051161SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_FUNCTION, 310af051161SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_PIN_FUNCTION), 311af051161SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinFunction)}, 312af051161SJung-uk Kim 313af051161SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_FUNCTION, 314af051161SJung-uk Kim sizeof (AML_RESOURCE_PIN_FUNCTION), 315af051161SJung-uk Kim 0}, 316af051161SJung-uk Kim 317af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinFunction.RevisionId), 318af051161SJung-uk Kim AML_OFFSET (PinFunction.RevisionId), 319af051161SJung-uk Kim 1}, 320af051161SJung-uk Kim 321cd6518c7SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinFunction.Shareable), 322af051161SJung-uk Kim AML_OFFSET (PinFunction.Flags), 323af051161SJung-uk Kim 0}, 324af051161SJung-uk Kim 325af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinFunction.PinConfig), 326af051161SJung-uk Kim AML_OFFSET (PinFunction.PinConfig), 327af051161SJung-uk Kim 1}, 328af051161SJung-uk Kim 329af051161SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.PinFunction.FunctionNumber), 330af051161SJung-uk Kim AML_OFFSET (PinFunction.FunctionNumber), 331af051161SJung-uk Kim 2}, 332af051161SJung-uk Kim 333af051161SJung-uk Kim /* Pin Table */ 334af051161SJung-uk Kim 335af051161SJung-uk Kim /* 336af051161SJung-uk Kim * It is OK to use GPIO operations here because none of them refer GPIO 337af051161SJung-uk Kim * structures directly but instead use offsets given here. 338af051161SJung-uk Kim */ 339af051161SJung-uk Kim 340af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.PinFunction.PinTableLength), 341af051161SJung-uk Kim AML_OFFSET (PinFunction.PinTableOffset), 342af051161SJung-uk Kim AML_OFFSET (PinFunction.ResSourceOffset)}, 343af051161SJung-uk Kim 344af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.PinFunction.PinTable), 345af051161SJung-uk Kim AML_OFFSET (PinFunction.PinTableOffset), 346af051161SJung-uk Kim 0}, 347af051161SJung-uk Kim 348af051161SJung-uk Kim /* Resource Source */ 349af051161SJung-uk Kim 350af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinFunction.ResourceSource.Index), 351af051161SJung-uk Kim AML_OFFSET (PinFunction.ResSourceIndex), 352af051161SJung-uk Kim 1}, 353af051161SJung-uk Kim 354af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinFunction.ResourceSource.StringLength), 355af051161SJung-uk Kim AML_OFFSET (PinFunction.ResSourceOffset), 356af051161SJung-uk Kim AML_OFFSET (PinFunction.VendorOffset)}, 357af051161SJung-uk Kim 358af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinFunction.ResourceSource.StringPtr), 359af051161SJung-uk Kim AML_OFFSET (PinFunction.ResSourceOffset), 360af051161SJung-uk Kim 0}, 361af051161SJung-uk Kim 362af051161SJung-uk Kim /* Vendor Data */ 363af051161SJung-uk Kim 364af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinFunction.VendorLength), 365af051161SJung-uk Kim AML_OFFSET (PinFunction.VendorLength), 366af051161SJung-uk Kim 1}, 367af051161SJung-uk Kim 368af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinFunction.VendorData), 369af051161SJung-uk Kim AML_OFFSET (PinFunction.VendorOffset), 370af051161SJung-uk Kim 0}, 371af051161SJung-uk Kim }; 372af051161SJung-uk Kim 373a159c266SJung-uk Kim 374a159c266SJung-uk Kim /******************************************************************************* 375a159c266SJung-uk Kim * 376cfd1ed46SJung-uk Kim * AcpiRsConvertCsi2SerialBus 377cfd1ed46SJung-uk Kim * 378cfd1ed46SJung-uk Kim ******************************************************************************/ 379cfd1ed46SJung-uk Kim 380cfd1ed46SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertCsi2SerialBus[14] = 381cfd1ed46SJung-uk Kim { 382cfd1ed46SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, 383cfd1ed46SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_CSI2_SERIALBUS), 384cfd1ed46SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertCsi2SerialBus)}, 385cfd1ed46SJung-uk Kim 386cfd1ed46SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, 387cfd1ed46SJung-uk Kim sizeof (AML_RESOURCE_CSI2_SERIALBUS), 388cfd1ed46SJung-uk Kim 0}, 389cfd1ed46SJung-uk Kim 390cfd1ed46SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), 391cfd1ed46SJung-uk Kim AML_OFFSET (CommonSerialBus.RevisionId), 392cfd1ed46SJung-uk Kim 1}, 393cfd1ed46SJung-uk Kim 394cfd1ed46SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Csi2SerialBus.Type), 395cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.Type), 396cfd1ed46SJung-uk Kim 1}, 397cfd1ed46SJung-uk Kim 398cfd1ed46SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.ProducerConsumer), 399cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.Flags), 400cfd1ed46SJung-uk Kim 1}, 401cfd1ed46SJung-uk Kim 402cfd1ed46SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.SlaveMode), 403cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.Flags), 404cfd1ed46SJung-uk Kim 0}, 405cfd1ed46SJung-uk Kim 406cfd1ed46SJung-uk Kim {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.PhyType), 407cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.TypeSpecificFlags), 408cfd1ed46SJung-uk Kim 0}, 409cfd1ed46SJung-uk Kim 410cfd1ed46SJung-uk Kim {ACPI_RSC_6BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.LocalPortInstance), 411cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.TypeSpecificFlags), 412cfd1ed46SJung-uk Kim 2}, 413cfd1ed46SJung-uk Kim 414cfd1ed46SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Csi2SerialBus.TypeRevisionId), 415cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.TypeRevisionId), 416cfd1ed46SJung-uk Kim 1}, 417cfd1ed46SJung-uk Kim 418cfd1ed46SJung-uk Kim /* Vendor data */ 419cfd1ed46SJung-uk Kim 420cfd1ed46SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.Csi2SerialBus.VendorLength), 421cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.TypeDataLength), 422cfd1ed46SJung-uk Kim AML_RESOURCE_CSI2_MIN_DATA_LEN}, 423cfd1ed46SJung-uk Kim 424cfd1ed46SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.Csi2SerialBus.VendorData), 425cfd1ed46SJung-uk Kim 0, 426cfd1ed46SJung-uk Kim sizeof (AML_RESOURCE_CSI2_SERIALBUS)}, 427cfd1ed46SJung-uk Kim 428cfd1ed46SJung-uk Kim /* Resource Source */ 429cfd1ed46SJung-uk Kim 430cfd1ed46SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Csi2SerialBus.ResourceSource.Index), 431cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.ResSourceIndex), 432cfd1ed46SJung-uk Kim 1}, 433cfd1ed46SJung-uk Kim 434cfd1ed46SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.Csi2SerialBus.ResourceSource.StringLength), 435cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.TypeDataLength), 436cfd1ed46SJung-uk Kim sizeof (AML_RESOURCE_CSI2_SERIALBUS)}, 437cfd1ed46SJung-uk Kim 438cfd1ed46SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.Csi2SerialBus.ResourceSource.StringPtr), 439cfd1ed46SJung-uk Kim AML_OFFSET (Csi2SerialBus.TypeDataLength), 440cfd1ed46SJung-uk Kim sizeof (AML_RESOURCE_CSI2_SERIALBUS)}, 441cfd1ed46SJung-uk Kim }; 442cfd1ed46SJung-uk Kim 443cfd1ed46SJung-uk Kim 444cfd1ed46SJung-uk Kim /******************************************************************************* 445cfd1ed46SJung-uk Kim * 446a159c266SJung-uk Kim * AcpiRsConvertI2cSerialBus 447a159c266SJung-uk Kim * 448a159c266SJung-uk Kim ******************************************************************************/ 449a159c266SJung-uk Kim 450f8146b88SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertI2cSerialBus[17] = 451a159c266SJung-uk Kim { 452a159c266SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, 453a159c266SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_I2C_SERIALBUS), 454a159c266SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertI2cSerialBus)}, 455a159c266SJung-uk Kim 456a159c266SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, 457a159c266SJung-uk Kim sizeof (AML_RESOURCE_I2C_SERIALBUS), 458a159c266SJung-uk Kim 0}, 459a159c266SJung-uk Kim 460a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), 461a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.RevisionId), 462a159c266SJung-uk Kim 1}, 463a159c266SJung-uk Kim 464a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.Type), 465a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Type), 466a159c266SJung-uk Kim 1}, 467a159c266SJung-uk Kim 468a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.SlaveMode), 469a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 470a159c266SJung-uk Kim 0}, 471a159c266SJung-uk Kim 472a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ProducerConsumer), 473a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 474a159c266SJung-uk Kim 1}, 475a159c266SJung-uk Kim 476f8146b88SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ConnectionSharing), 477f8146b88SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 478f8146b88SJung-uk Kim 2}, 479f8146b88SJung-uk Kim 480a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeRevisionId), 481a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeRevisionId), 482a159c266SJung-uk Kim 1}, 483a159c266SJung-uk Kim 484a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeDataLength), 485a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 486a159c266SJung-uk Kim 1}, 487a159c266SJung-uk Kim 488a159c266SJung-uk Kim /* Vendor data */ 489a159c266SJung-uk Kim 490a159c266SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorLength), 491a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 492a159c266SJung-uk Kim AML_RESOURCE_I2C_MIN_DATA_LEN}, 493a159c266SJung-uk Kim 494a159c266SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorData), 495a159c266SJung-uk Kim 0, 496a159c266SJung-uk Kim sizeof (AML_RESOURCE_I2C_SERIALBUS)}, 497a159c266SJung-uk Kim 498a159c266SJung-uk Kim /* Resource Source */ 499a159c266SJung-uk Kim 500a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.Index), 501a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.ResSourceIndex), 502a159c266SJung-uk Kim 1}, 503a159c266SJung-uk Kim 504a159c266SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringLength), 505a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 506a159c266SJung-uk Kim sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, 507a159c266SJung-uk Kim 508a159c266SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringPtr), 509a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 510a159c266SJung-uk Kim sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, 511a159c266SJung-uk Kim 512a159c266SJung-uk Kim /* I2C bus type specific */ 513a159c266SJung-uk Kim 514a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.I2cSerialBus.AccessMode), 515a159c266SJung-uk Kim AML_OFFSET (I2cSerialBus.TypeSpecificFlags), 516a159c266SJung-uk Kim 0}, 517a159c266SJung-uk Kim 518a159c266SJung-uk Kim {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.I2cSerialBus.ConnectionSpeed), 519a159c266SJung-uk Kim AML_OFFSET (I2cSerialBus.ConnectionSpeed), 520a159c266SJung-uk Kim 1}, 521a159c266SJung-uk Kim 522a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.I2cSerialBus.SlaveAddress), 523a159c266SJung-uk Kim AML_OFFSET (I2cSerialBus.SlaveAddress), 524a159c266SJung-uk Kim 1}, 525a159c266SJung-uk Kim }; 526a159c266SJung-uk Kim 527a159c266SJung-uk Kim 528a159c266SJung-uk Kim /******************************************************************************* 529a159c266SJung-uk Kim * 530a159c266SJung-uk Kim * AcpiRsConvertSpiSerialBus 531a159c266SJung-uk Kim * 532a159c266SJung-uk Kim ******************************************************************************/ 533a159c266SJung-uk Kim 534f8146b88SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertSpiSerialBus[21] = 535a159c266SJung-uk Kim { 536a159c266SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, 537a159c266SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_SPI_SERIALBUS), 538a159c266SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertSpiSerialBus)}, 539a159c266SJung-uk Kim 540a159c266SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, 541a159c266SJung-uk Kim sizeof (AML_RESOURCE_SPI_SERIALBUS), 542a159c266SJung-uk Kim 0}, 543a159c266SJung-uk Kim 544a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), 545a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.RevisionId), 546a159c266SJung-uk Kim 1}, 547a159c266SJung-uk Kim 548a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.Type), 549a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Type), 550a159c266SJung-uk Kim 1}, 551a159c266SJung-uk Kim 552a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.SlaveMode), 553a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 554a159c266SJung-uk Kim 0}, 555a159c266SJung-uk Kim 556a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ProducerConsumer), 557a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 558a159c266SJung-uk Kim 1}, 559a159c266SJung-uk Kim 560f8146b88SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ConnectionSharing), 561f8146b88SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 562f8146b88SJung-uk Kim 2}, 563f8146b88SJung-uk Kim 564a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeRevisionId), 565a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeRevisionId), 566a159c266SJung-uk Kim 1}, 567a159c266SJung-uk Kim 568a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeDataLength), 569a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 570a159c266SJung-uk Kim 1}, 571a159c266SJung-uk Kim 572a159c266SJung-uk Kim /* Vendor data */ 573a159c266SJung-uk Kim 574a159c266SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorLength), 575a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 576a159c266SJung-uk Kim AML_RESOURCE_SPI_MIN_DATA_LEN}, 577a159c266SJung-uk Kim 578a159c266SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorData), 579a159c266SJung-uk Kim 0, 580a159c266SJung-uk Kim sizeof (AML_RESOURCE_SPI_SERIALBUS)}, 581a159c266SJung-uk Kim 582a159c266SJung-uk Kim /* Resource Source */ 583a159c266SJung-uk Kim 584a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.Index), 585a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.ResSourceIndex), 586a159c266SJung-uk Kim 1}, 587a159c266SJung-uk Kim 588a159c266SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringLength), 589a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 590a159c266SJung-uk Kim sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, 591a159c266SJung-uk Kim 592a159c266SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringPtr), 593a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 594a159c266SJung-uk Kim sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, 595a159c266SJung-uk Kim 596a159c266SJung-uk Kim /* Spi bus type specific */ 597a159c266SJung-uk Kim 598a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.SpiSerialBus.WireMode), 599a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.TypeSpecificFlags), 600a159c266SJung-uk Kim 0}, 601a159c266SJung-uk Kim 602a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.SpiSerialBus.DevicePolarity), 603a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.TypeSpecificFlags), 604a159c266SJung-uk Kim 1}, 605a159c266SJung-uk Kim 606a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.SpiSerialBus.DataBitLength), 607a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.DataBitLength), 608a159c266SJung-uk Kim 1}, 609a159c266SJung-uk Kim 610a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.SpiSerialBus.ClockPhase), 611a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.ClockPhase), 612a159c266SJung-uk Kim 1}, 613a159c266SJung-uk Kim 614a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.SpiSerialBus.ClockPolarity), 615a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.ClockPolarity), 616a159c266SJung-uk Kim 1}, 617a159c266SJung-uk Kim 618a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.SpiSerialBus.DeviceSelection), 619a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.DeviceSelection), 620a159c266SJung-uk Kim 1}, 621a159c266SJung-uk Kim 622a159c266SJung-uk Kim {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.SpiSerialBus.ConnectionSpeed), 623a159c266SJung-uk Kim AML_OFFSET (SpiSerialBus.ConnectionSpeed), 624a159c266SJung-uk Kim 1}, 625a159c266SJung-uk Kim }; 626a159c266SJung-uk Kim 627a159c266SJung-uk Kim 628a159c266SJung-uk Kim /******************************************************************************* 629a159c266SJung-uk Kim * 630a159c266SJung-uk Kim * AcpiRsConvertUartSerialBus 631a159c266SJung-uk Kim * 632a159c266SJung-uk Kim ******************************************************************************/ 633a159c266SJung-uk Kim 634f8146b88SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertUartSerialBus[23] = 635a159c266SJung-uk Kim { 636a159c266SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, 637a159c266SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_UART_SERIALBUS), 638a159c266SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertUartSerialBus)}, 639a159c266SJung-uk Kim 640a159c266SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, 641a159c266SJung-uk Kim sizeof (AML_RESOURCE_UART_SERIALBUS), 642a159c266SJung-uk Kim 0}, 643a159c266SJung-uk Kim 644a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), 645a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.RevisionId), 646a159c266SJung-uk Kim 1}, 647a159c266SJung-uk Kim 648a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.Type), 649a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Type), 650a159c266SJung-uk Kim 1}, 651a159c266SJung-uk Kim 652a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.SlaveMode), 653a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 654a159c266SJung-uk Kim 0}, 655a159c266SJung-uk Kim 656a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ProducerConsumer), 657a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 658a159c266SJung-uk Kim 1}, 659a159c266SJung-uk Kim 660f8146b88SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ConnectionSharing), 661f8146b88SJung-uk Kim AML_OFFSET (CommonSerialBus.Flags), 662f8146b88SJung-uk Kim 2}, 663f8146b88SJung-uk Kim 664a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeRevisionId), 665a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeRevisionId), 666a159c266SJung-uk Kim 1}, 667a159c266SJung-uk Kim 668a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeDataLength), 669a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 670a159c266SJung-uk Kim 1}, 671a159c266SJung-uk Kim 672a159c266SJung-uk Kim /* Vendor data */ 673a159c266SJung-uk Kim 674a159c266SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorLength), 675a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 676a159c266SJung-uk Kim AML_RESOURCE_UART_MIN_DATA_LEN}, 677a159c266SJung-uk Kim 678a159c266SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorData), 679a159c266SJung-uk Kim 0, 680a159c266SJung-uk Kim sizeof (AML_RESOURCE_UART_SERIALBUS)}, 681a159c266SJung-uk Kim 682a159c266SJung-uk Kim /* Resource Source */ 683a159c266SJung-uk Kim 684a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.Index), 685a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.ResSourceIndex), 686a159c266SJung-uk Kim 1}, 687a159c266SJung-uk Kim 688a159c266SJung-uk Kim {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringLength), 689a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 690a159c266SJung-uk Kim sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, 691a159c266SJung-uk Kim 692a159c266SJung-uk Kim {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringPtr), 693a159c266SJung-uk Kim AML_OFFSET (CommonSerialBus.TypeDataLength), 694a159c266SJung-uk Kim sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, 695a159c266SJung-uk Kim 696a159c266SJung-uk Kim /* Uart bus type specific */ 697a159c266SJung-uk Kim 698a159c266SJung-uk Kim {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.FlowControl), 699a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.TypeSpecificFlags), 700a159c266SJung-uk Kim 0}, 701a159c266SJung-uk Kim 702a159c266SJung-uk Kim {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.StopBits), 703a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.TypeSpecificFlags), 704a159c266SJung-uk Kim 2}, 705a159c266SJung-uk Kim 706a159c266SJung-uk Kim {ACPI_RSC_3BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.DataBits), 707a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.TypeSpecificFlags), 708a159c266SJung-uk Kim 4}, 709a159c266SJung-uk Kim 710a159c266SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.Endian), 711a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.TypeSpecificFlags), 712a159c266SJung-uk Kim 7}, 713a159c266SJung-uk Kim 714a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.UartSerialBus.Parity), 715a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.Parity), 716a159c266SJung-uk Kim 1}, 717a159c266SJung-uk Kim 718a159c266SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.UartSerialBus.LinesEnabled), 719a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.LinesEnabled), 720a159c266SJung-uk Kim 1}, 721a159c266SJung-uk Kim 722a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.UartSerialBus.RxFifoSize), 723a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.RxFifoSize), 724a159c266SJung-uk Kim 1}, 725a159c266SJung-uk Kim 726a159c266SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.UartSerialBus.TxFifoSize), 727a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.TxFifoSize), 728a159c266SJung-uk Kim 1}, 729a159c266SJung-uk Kim 730a159c266SJung-uk Kim {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.UartSerialBus.DefaultBaudRate), 731a159c266SJung-uk Kim AML_OFFSET (UartSerialBus.DefaultBaudRate), 732a159c266SJung-uk Kim 1}, 733a159c266SJung-uk Kim }; 734af051161SJung-uk Kim 735af051161SJung-uk Kim 736af051161SJung-uk Kim /******************************************************************************* 737af051161SJung-uk Kim * 738af051161SJung-uk Kim * AcpiRsConvertPinConfig 739af051161SJung-uk Kim * 740af051161SJung-uk Kim ******************************************************************************/ 741af051161SJung-uk Kim 742af051161SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertPinConfig[14] = 743af051161SJung-uk Kim { 744af051161SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_CONFIG, 745af051161SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_PIN_CONFIG), 746af051161SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinConfig)}, 747af051161SJung-uk Kim 748af051161SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_CONFIG, 749af051161SJung-uk Kim sizeof (AML_RESOURCE_PIN_CONFIG), 750af051161SJung-uk Kim 0}, 751af051161SJung-uk Kim 752af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinConfig.RevisionId), 753af051161SJung-uk Kim AML_OFFSET (PinConfig.RevisionId), 754af051161SJung-uk Kim 1}, 755af051161SJung-uk Kim 756cd6518c7SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinConfig.Shareable), 757af051161SJung-uk Kim AML_OFFSET (PinConfig.Flags), 758af051161SJung-uk Kim 0}, 759af051161SJung-uk Kim 760af051161SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinConfig.ProducerConsumer), 761af051161SJung-uk Kim AML_OFFSET (PinConfig.Flags), 762af051161SJung-uk Kim 1}, 763af051161SJung-uk Kim 764af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinConfig.PinConfigType), 765af051161SJung-uk Kim AML_OFFSET (PinConfig.PinConfigType), 766af051161SJung-uk Kim 1}, 767af051161SJung-uk Kim 768af051161SJung-uk Kim {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.PinConfig.PinConfigValue), 769af051161SJung-uk Kim AML_OFFSET (PinConfig.PinConfigValue), 770af051161SJung-uk Kim 1}, 771af051161SJung-uk Kim 772af051161SJung-uk Kim /* Pin Table */ 773af051161SJung-uk Kim 774af051161SJung-uk Kim /* 775af051161SJung-uk Kim * It is OK to use GPIO operations here because none of them refer GPIO 776af051161SJung-uk Kim * structures directly but instead use offsets given here. 777af051161SJung-uk Kim */ 778af051161SJung-uk Kim 779af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.PinConfig.PinTableLength), 780af051161SJung-uk Kim AML_OFFSET (PinConfig.PinTableOffset), 781af051161SJung-uk Kim AML_OFFSET (PinConfig.ResSourceOffset)}, 782af051161SJung-uk Kim 783af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.PinConfig.PinTable), 784af051161SJung-uk Kim AML_OFFSET (PinConfig.PinTableOffset), 785af051161SJung-uk Kim 0}, 786af051161SJung-uk Kim 787af051161SJung-uk Kim /* Resource Source */ 788af051161SJung-uk Kim 789af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinConfig.ResourceSource.Index), 790af051161SJung-uk Kim AML_OFFSET (PinConfig.ResSourceIndex), 791af051161SJung-uk Kim 1}, 792af051161SJung-uk Kim 793af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinConfig.ResourceSource.StringLength), 794af051161SJung-uk Kim AML_OFFSET (PinConfig.ResSourceOffset), 795af051161SJung-uk Kim AML_OFFSET (PinConfig.VendorOffset)}, 796af051161SJung-uk Kim 797af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinConfig.ResourceSource.StringPtr), 798af051161SJung-uk Kim AML_OFFSET (PinConfig.ResSourceOffset), 799af051161SJung-uk Kim 0}, 800af051161SJung-uk Kim 801af051161SJung-uk Kim /* Vendor Data */ 802af051161SJung-uk Kim 803af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinConfig.VendorLength), 804af051161SJung-uk Kim AML_OFFSET (PinConfig.VendorLength), 805af051161SJung-uk Kim 1}, 806af051161SJung-uk Kim 807af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinConfig.VendorData), 808af051161SJung-uk Kim AML_OFFSET (PinConfig.VendorOffset), 809af051161SJung-uk Kim 0}, 810af051161SJung-uk Kim }; 811af051161SJung-uk Kim 812af051161SJung-uk Kim /******************************************************************************* 813af051161SJung-uk Kim * 814af051161SJung-uk Kim * AcpiRsConvertPinGroup 815af051161SJung-uk Kim * 816af051161SJung-uk Kim ******************************************************************************/ 817af051161SJung-uk Kim 818af051161SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertPinGroup[10] = 819af051161SJung-uk Kim { 820af051161SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_GROUP, 821af051161SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP), 822af051161SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinGroup)}, 823af051161SJung-uk Kim 824af051161SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_GROUP, 825af051161SJung-uk Kim sizeof (AML_RESOURCE_PIN_GROUP), 826af051161SJung-uk Kim 0}, 827af051161SJung-uk Kim 828af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroup.RevisionId), 829af051161SJung-uk Kim AML_OFFSET (PinGroup.RevisionId), 830af051161SJung-uk Kim 1}, 831af051161SJung-uk Kim 832af051161SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroup.ProducerConsumer), 833af051161SJung-uk Kim AML_OFFSET (PinGroup.Flags), 834af051161SJung-uk Kim 0}, 835af051161SJung-uk Kim 836af051161SJung-uk Kim /* Pin Table */ 837af051161SJung-uk Kim 838af051161SJung-uk Kim /* 839af051161SJung-uk Kim * It is OK to use GPIO operations here because none of them refer GPIO 840af051161SJung-uk Kim * structures directly but instead use offsets given here. 841af051161SJung-uk Kim */ 842af051161SJung-uk Kim 843af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.PinGroup.PinTableLength), 844af051161SJung-uk Kim AML_OFFSET (PinGroup.PinTableOffset), 845af051161SJung-uk Kim AML_OFFSET (PinGroup.LabelOffset)}, 846af051161SJung-uk Kim 847af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.PinGroup.PinTable), 848af051161SJung-uk Kim AML_OFFSET (PinGroup.PinTableOffset), 849af051161SJung-uk Kim 0}, 850af051161SJung-uk Kim 851af051161SJung-uk Kim /* Resource Label */ 852af051161SJung-uk Kim 853af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroup.ResourceLabel.StringLength), 854af051161SJung-uk Kim AML_OFFSET (PinGroup.LabelOffset), 855af051161SJung-uk Kim AML_OFFSET (PinGroup.VendorOffset)}, 856af051161SJung-uk Kim 857af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroup.ResourceLabel.StringPtr), 858af051161SJung-uk Kim AML_OFFSET (PinGroup.LabelOffset), 859af051161SJung-uk Kim 0}, 860af051161SJung-uk Kim 861af051161SJung-uk Kim /* Vendor Data */ 862af051161SJung-uk Kim 863af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinGroup.VendorLength), 864af051161SJung-uk Kim AML_OFFSET (PinGroup.VendorLength), 865af051161SJung-uk Kim 1}, 866af051161SJung-uk Kim 867af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroup.VendorData), 868af051161SJung-uk Kim AML_OFFSET (PinGroup.VendorOffset), 869af051161SJung-uk Kim 0}, 870af051161SJung-uk Kim }; 871af051161SJung-uk Kim 872af051161SJung-uk Kim /******************************************************************************* 873af051161SJung-uk Kim * 874af051161SJung-uk Kim * AcpiRsConvertPinGroupFunction 875af051161SJung-uk Kim * 876af051161SJung-uk Kim ******************************************************************************/ 877af051161SJung-uk Kim 878af051161SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertPinGroupFunction[13] = 879af051161SJung-uk Kim { 880af051161SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION, 881af051161SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP_FUNCTION), 882af051161SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinGroupFunction)}, 883af051161SJung-uk Kim 884af051161SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION, 885af051161SJung-uk Kim sizeof (AML_RESOURCE_PIN_GROUP_FUNCTION), 886af051161SJung-uk Kim 0}, 887af051161SJung-uk Kim 888af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupFunction.RevisionId), 889af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.RevisionId), 890af051161SJung-uk Kim 1}, 891af051161SJung-uk Kim 892cd6518c7SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupFunction.Shareable), 893af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.Flags), 894af051161SJung-uk Kim 0}, 895af051161SJung-uk Kim 896af051161SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupFunction.ProducerConsumer), 897af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.Flags), 898af051161SJung-uk Kim 1}, 899af051161SJung-uk Kim 900af051161SJung-uk Kim {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.PinGroupFunction.FunctionNumber), 901af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.FunctionNumber), 902af051161SJung-uk Kim 1}, 903af051161SJung-uk Kim 904af051161SJung-uk Kim /* Resource Source */ 905af051161SJung-uk Kim 906af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSource.Index), 907af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.ResSourceIndex), 908af051161SJung-uk Kim 1}, 909af051161SJung-uk Kim 910af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSource.StringLength), 911af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.ResSourceOffset), 912af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.ResSourceLabelOffset)}, 913af051161SJung-uk Kim 914af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSource.StringPtr), 915af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.ResSourceOffset), 916af051161SJung-uk Kim 0}, 917af051161SJung-uk Kim 918af051161SJung-uk Kim /* Resource Source Label */ 919af051161SJung-uk Kim 920af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSourceLabel.StringLength), 921af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.ResSourceLabelOffset), 922af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.VendorOffset)}, 923af051161SJung-uk Kim 924af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSourceLabel.StringPtr), 925af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.ResSourceLabelOffset), 926af051161SJung-uk Kim 0}, 927af051161SJung-uk Kim 928af051161SJung-uk Kim /* Vendor Data */ 929af051161SJung-uk Kim 930af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinGroupFunction.VendorLength), 931af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.VendorLength), 932af051161SJung-uk Kim 1}, 933af051161SJung-uk Kim 934af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.VendorData), 935af051161SJung-uk Kim AML_OFFSET (PinGroupFunction.VendorOffset), 936af051161SJung-uk Kim 0}, 937af051161SJung-uk Kim }; 938af051161SJung-uk Kim 939af051161SJung-uk Kim /******************************************************************************* 940af051161SJung-uk Kim * 941af051161SJung-uk Kim * AcpiRsConvertPinGroupConfig 942af051161SJung-uk Kim * 943af051161SJung-uk Kim ******************************************************************************/ 944af051161SJung-uk Kim 945af051161SJung-uk Kim ACPI_RSCONVERT_INFO AcpiRsConvertPinGroupConfig[14] = 946af051161SJung-uk Kim { 947af051161SJung-uk Kim {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG, 948af051161SJung-uk Kim ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP_CONFIG), 949af051161SJung-uk Kim ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinGroupConfig)}, 950af051161SJung-uk Kim 951af051161SJung-uk Kim {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG, 952af051161SJung-uk Kim sizeof (AML_RESOURCE_PIN_GROUP_CONFIG), 953af051161SJung-uk Kim 0}, 954af051161SJung-uk Kim 955af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupConfig.RevisionId), 956af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.RevisionId), 957af051161SJung-uk Kim 1}, 958af051161SJung-uk Kim 959cd6518c7SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupConfig.Shareable), 960af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.Flags), 961af051161SJung-uk Kim 0}, 962af051161SJung-uk Kim 963af051161SJung-uk Kim {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupConfig.ProducerConsumer), 964af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.Flags), 965af051161SJung-uk Kim 1}, 966af051161SJung-uk Kim 967af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupConfig.PinConfigType), 968af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.PinConfigType), 969af051161SJung-uk Kim 1}, 970af051161SJung-uk Kim 971af051161SJung-uk Kim {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.PinGroupConfig.PinConfigValue), 972af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.PinConfigValue), 973af051161SJung-uk Kim 1}, 974af051161SJung-uk Kim 975af051161SJung-uk Kim /* Resource Source */ 976af051161SJung-uk Kim 977af051161SJung-uk Kim {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSource.Index), 978af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.ResSourceIndex), 979af051161SJung-uk Kim 1}, 980af051161SJung-uk Kim 981af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSource.StringLength), 982af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.ResSourceOffset), 983af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.ResSourceLabelOffset)}, 984af051161SJung-uk Kim 985af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSource.StringPtr), 986af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.ResSourceOffset), 987af051161SJung-uk Kim 0}, 988af051161SJung-uk Kim 989af051161SJung-uk Kim /* Resource Source Label */ 990af051161SJung-uk Kim 991af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSourceLabel.StringLength), 992af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.ResSourceLabelOffset), 993af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.VendorOffset)}, 994af051161SJung-uk Kim 995af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSourceLabel.StringPtr), 996af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.ResSourceLabelOffset), 997af051161SJung-uk Kim 0}, 998af051161SJung-uk Kim 999af051161SJung-uk Kim /* Vendor Data */ 1000af051161SJung-uk Kim 1001af051161SJung-uk Kim {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinGroupConfig.VendorLength), 1002af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.VendorLength), 1003af051161SJung-uk Kim 1}, 1004af051161SJung-uk Kim 1005af051161SJung-uk Kim {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.VendorData), 1006af051161SJung-uk Kim AML_OFFSET (PinGroupConfig.VendorOffset), 1007af051161SJung-uk Kim 0}, 1008af051161SJung-uk Kim }; 1009