17c478bd9Sstevel@tonic-gate /****************************************************************************** 27c478bd9Sstevel@tonic-gate * 37c478bd9Sstevel@tonic-gate * Name: acresrc.h - Resource Manager function prototypes 47c478bd9Sstevel@tonic-gate * 57c478bd9Sstevel@tonic-gate *****************************************************************************/ 67c478bd9Sstevel@tonic-gate 726f3cdf0SGordon Ross /* 8*385cc6b4SJerry Jelinek * Copyright (C) 2000 - 2016, Intel Corp. 97c478bd9Sstevel@tonic-gate * All rights reserved. 107c478bd9Sstevel@tonic-gate * 1126f3cdf0SGordon Ross * Redistribution and use in source and binary forms, with or without 1226f3cdf0SGordon Ross * modification, are permitted provided that the following conditions 1326f3cdf0SGordon Ross * are met: 1426f3cdf0SGordon Ross * 1. Redistributions of source code must retain the above copyright 1526f3cdf0SGordon Ross * notice, this list of conditions, and the following disclaimer, 1626f3cdf0SGordon Ross * without modification. 1726f3cdf0SGordon Ross * 2. Redistributions in binary form must reproduce at minimum a disclaimer 1826f3cdf0SGordon Ross * substantially similar to the "NO WARRANTY" disclaimer below 1926f3cdf0SGordon Ross * ("Disclaimer") and any redistribution must be conditioned upon 2026f3cdf0SGordon Ross * including a substantially similar Disclaimer requirement for further 2126f3cdf0SGordon Ross * binary redistribution. 2226f3cdf0SGordon Ross * 3. Neither the names of the above-listed copyright holders nor the names 2326f3cdf0SGordon Ross * of any contributors may be used to endorse or promote products derived 2426f3cdf0SGordon Ross * from this software without specific prior written permission. 257c478bd9Sstevel@tonic-gate * 2626f3cdf0SGordon Ross * Alternatively, this software may be distributed under the terms of the 2726f3cdf0SGordon Ross * GNU General Public License ("GPL") version 2 as published by the Free 2826f3cdf0SGordon Ross * Software Foundation. 297c478bd9Sstevel@tonic-gate * 3026f3cdf0SGordon Ross * NO WARRANTY 3126f3cdf0SGordon Ross * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 3226f3cdf0SGordon Ross * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 3326f3cdf0SGordon Ross * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 3426f3cdf0SGordon Ross * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3526f3cdf0SGordon Ross * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3626f3cdf0SGordon Ross * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3726f3cdf0SGordon Ross * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3826f3cdf0SGordon Ross * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 3926f3cdf0SGordon Ross * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 4026f3cdf0SGordon Ross * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 4126f3cdf0SGordon Ross * POSSIBILITY OF SUCH DAMAGES. 4226f3cdf0SGordon Ross */ 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate #ifndef __ACRESRC_H__ 457c478bd9Sstevel@tonic-gate #define __ACRESRC_H__ 467c478bd9Sstevel@tonic-gate 47186507a7Smyers /* Need the AML resource descriptor structs */ 48186507a7Smyers 49186507a7Smyers #include "amlresrc.h" 50186507a7Smyers 51186507a7Smyers 52186507a7Smyers /* 5330082d0cSmyers * If possible, pack the following structures to byte alignment, since we 5427f7c583Smyers * don't care about performance for debug output. Two cases where we cannot 5527f7c583Smyers * pack the structures: 5627f7c583Smyers * 5727f7c583Smyers * 1) Hardware does not support misaligned memory transfers 5827f7c583Smyers * 2) Compiler does not support pointers within packed structures 59186507a7Smyers */ 6027f7c583Smyers #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED)) 6130082d0cSmyers #pragma pack(1) 6230082d0cSmyers #endif 6330082d0cSmyers 6430082d0cSmyers /* 6530082d0cSmyers * Individual entry for the resource conversion tables 6630082d0cSmyers */ 6730082d0cSmyers typedef const struct acpi_rsconvert_info 68186507a7Smyers { 6930082d0cSmyers UINT8 Opcode; 7030082d0cSmyers UINT8 ResourceOffset; 7130082d0cSmyers UINT8 AmlOffset; 7230082d0cSmyers UINT8 Value; 73186507a7Smyers 7430082d0cSmyers } ACPI_RSCONVERT_INFO; 75186507a7Smyers 7630082d0cSmyers /* Resource conversion opcodes */ 77186507a7Smyers 78*385cc6b4SJerry Jelinek typedef enum 79*385cc6b4SJerry Jelinek { 80*385cc6b4SJerry Jelinek ACPI_RSC_INITGET = 0, 81*385cc6b4SJerry Jelinek ACPI_RSC_INITSET, 82*385cc6b4SJerry Jelinek ACPI_RSC_FLAGINIT, 83*385cc6b4SJerry Jelinek ACPI_RSC_1BITFLAG, 84*385cc6b4SJerry Jelinek ACPI_RSC_2BITFLAG, 85*385cc6b4SJerry Jelinek ACPI_RSC_3BITFLAG, 86*385cc6b4SJerry Jelinek ACPI_RSC_ADDRESS, 87*385cc6b4SJerry Jelinek ACPI_RSC_BITMASK, 88*385cc6b4SJerry Jelinek ACPI_RSC_BITMASK16, 89*385cc6b4SJerry Jelinek ACPI_RSC_COUNT, 90*385cc6b4SJerry Jelinek ACPI_RSC_COUNT16, 91*385cc6b4SJerry Jelinek ACPI_RSC_COUNT_GPIO_PIN, 92*385cc6b4SJerry Jelinek ACPI_RSC_COUNT_GPIO_RES, 93*385cc6b4SJerry Jelinek ACPI_RSC_COUNT_GPIO_VEN, 94*385cc6b4SJerry Jelinek ACPI_RSC_COUNT_SERIAL_RES, 95*385cc6b4SJerry Jelinek ACPI_RSC_COUNT_SERIAL_VEN, 96*385cc6b4SJerry Jelinek ACPI_RSC_DATA8, 97*385cc6b4SJerry Jelinek ACPI_RSC_EXIT_EQ, 98*385cc6b4SJerry Jelinek ACPI_RSC_EXIT_LE, 99*385cc6b4SJerry Jelinek ACPI_RSC_EXIT_NE, 100*385cc6b4SJerry Jelinek ACPI_RSC_LENGTH, 101*385cc6b4SJerry Jelinek ACPI_RSC_MOVE_GPIO_PIN, 102*385cc6b4SJerry Jelinek ACPI_RSC_MOVE_GPIO_RES, 103*385cc6b4SJerry Jelinek ACPI_RSC_MOVE_SERIAL_RES, 104*385cc6b4SJerry Jelinek ACPI_RSC_MOVE_SERIAL_VEN, 105*385cc6b4SJerry Jelinek ACPI_RSC_MOVE8, 106*385cc6b4SJerry Jelinek ACPI_RSC_MOVE16, 107*385cc6b4SJerry Jelinek ACPI_RSC_MOVE32, 108*385cc6b4SJerry Jelinek ACPI_RSC_MOVE64, 109*385cc6b4SJerry Jelinek ACPI_RSC_SET8, 110*385cc6b4SJerry Jelinek ACPI_RSC_SOURCE, 111*385cc6b4SJerry Jelinek ACPI_RSC_SOURCEX 112*385cc6b4SJerry Jelinek 113*385cc6b4SJerry Jelinek } ACPI_RSCONVERT_OPCODES; 114186507a7Smyers 11530082d0cSmyers /* Resource Conversion sub-opcodes */ 116186507a7Smyers 11730082d0cSmyers #define ACPI_RSC_COMPARE_AML_LENGTH 0 11830082d0cSmyers #define ACPI_RSC_COMPARE_VALUE 1 119186507a7Smyers 12030082d0cSmyers #define ACPI_RSC_TABLE_SIZE(d) (sizeof (d) / sizeof (ACPI_RSCONVERT_INFO)) 121186507a7Smyers 12230082d0cSmyers #define ACPI_RS_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_RESOURCE,f) 12330082d0cSmyers #define AML_OFFSET(f) (UINT8) ACPI_OFFSET (AML_RESOURCE,f) 124186507a7Smyers 125186507a7Smyers 126*385cc6b4SJerry Jelinek /* 127*385cc6b4SJerry Jelinek * Individual entry for the resource dump tables 128*385cc6b4SJerry Jelinek */ 12930082d0cSmyers typedef const struct acpi_rsdump_info 13030082d0cSmyers { 13130082d0cSmyers UINT8 Opcode; 13230082d0cSmyers UINT8 Offset; 133*385cc6b4SJerry Jelinek const char *Name; 13430082d0cSmyers const char **Pointer; 135186507a7Smyers 13630082d0cSmyers } ACPI_RSDUMP_INFO; 137186507a7Smyers 13830082d0cSmyers /* Values for the Opcode field above */ 13930082d0cSmyers 140*385cc6b4SJerry Jelinek typedef enum 141*385cc6b4SJerry Jelinek { 142*385cc6b4SJerry Jelinek ACPI_RSD_TITLE = 0, 143*385cc6b4SJerry Jelinek ACPI_RSD_1BITFLAG, 144*385cc6b4SJerry Jelinek ACPI_RSD_2BITFLAG, 145*385cc6b4SJerry Jelinek ACPI_RSD_3BITFLAG, 146*385cc6b4SJerry Jelinek ACPI_RSD_ADDRESS, 147*385cc6b4SJerry Jelinek ACPI_RSD_DWORDLIST, 148*385cc6b4SJerry Jelinek ACPI_RSD_LITERAL, 149*385cc6b4SJerry Jelinek ACPI_RSD_LONGLIST, 150*385cc6b4SJerry Jelinek ACPI_RSD_SHORTLIST, 151*385cc6b4SJerry Jelinek ACPI_RSD_SHORTLISTX, 152*385cc6b4SJerry Jelinek ACPI_RSD_SOURCE, 153*385cc6b4SJerry Jelinek ACPI_RSD_STRING, 154*385cc6b4SJerry Jelinek ACPI_RSD_UINT8, 155*385cc6b4SJerry Jelinek ACPI_RSD_UINT16, 156*385cc6b4SJerry Jelinek ACPI_RSD_UINT32, 157*385cc6b4SJerry Jelinek ACPI_RSD_UINT64, 158*385cc6b4SJerry Jelinek ACPI_RSD_WORDLIST 159*385cc6b4SJerry Jelinek 160*385cc6b4SJerry Jelinek } ACPI_RSDUMP_OPCODES; 16130082d0cSmyers 16230082d0cSmyers /* restore default alignment */ 16330082d0cSmyers 16430082d0cSmyers #pragma pack() 16530082d0cSmyers 16630082d0cSmyers 16730082d0cSmyers /* Resource tables indexed by internal resource type */ 16830082d0cSmyers 16930082d0cSmyers extern const UINT8 AcpiGbl_AmlResourceSizes[]; 170*385cc6b4SJerry Jelinek extern const UINT8 AcpiGbl_AmlResourceSerialBusSizes[]; 17130082d0cSmyers extern ACPI_RSCONVERT_INFO *AcpiGbl_SetResourceDispatch[]; 17230082d0cSmyers 17330082d0cSmyers /* Resource tables indexed by raw AML resource descriptor type */ 17430082d0cSmyers 17530082d0cSmyers extern const UINT8 AcpiGbl_ResourceStructSizes[]; 176*385cc6b4SJerry Jelinek extern const UINT8 AcpiGbl_ResourceStructSerialBusSizes[]; 17730082d0cSmyers extern ACPI_RSCONVERT_INFO *AcpiGbl_GetResourceDispatch[]; 17830082d0cSmyers 179*385cc6b4SJerry Jelinek extern ACPI_RSCONVERT_INFO *AcpiGbl_ConvertResourceSerialBusDispatch[]; 18030082d0cSmyers 18130082d0cSmyers typedef struct acpi_vendor_walk_info 18230082d0cSmyers { 18330082d0cSmyers ACPI_VENDOR_UUID *Uuid; 18430082d0cSmyers ACPI_BUFFER *Buffer; 18530082d0cSmyers ACPI_STATUS Status; 18630082d0cSmyers 18730082d0cSmyers } ACPI_VENDOR_WALK_INFO; 188186507a7Smyers 1897c478bd9Sstevel@tonic-gate 1907c478bd9Sstevel@tonic-gate /* 19130082d0cSmyers * rscreate 19230082d0cSmyers */ 19330082d0cSmyers ACPI_STATUS 19430082d0cSmyers AcpiRsCreateResourceList ( 19530082d0cSmyers ACPI_OPERAND_OBJECT *AmlBuffer, 19630082d0cSmyers ACPI_BUFFER *OutputBuffer); 19730082d0cSmyers 19830082d0cSmyers ACPI_STATUS 19930082d0cSmyers AcpiRsCreateAmlResources ( 200*385cc6b4SJerry Jelinek ACPI_BUFFER *ResourceList, 20130082d0cSmyers ACPI_BUFFER *OutputBuffer); 20230082d0cSmyers 20330082d0cSmyers ACPI_STATUS 20430082d0cSmyers AcpiRsCreatePciRoutingTable ( 20530082d0cSmyers ACPI_OPERAND_OBJECT *PackageObject, 20630082d0cSmyers ACPI_BUFFER *OutputBuffer); 20730082d0cSmyers 20830082d0cSmyers 20930082d0cSmyers /* 21030082d0cSmyers * rsutils 2117c478bd9Sstevel@tonic-gate */ 2127c478bd9Sstevel@tonic-gate ACPI_STATUS 2137c478bd9Sstevel@tonic-gate AcpiRsGetPrtMethodData ( 21427f7c583Smyers ACPI_NAMESPACE_NODE *Node, 2157c478bd9Sstevel@tonic-gate ACPI_BUFFER *RetBuffer); 2167c478bd9Sstevel@tonic-gate 2177c478bd9Sstevel@tonic-gate ACPI_STATUS 2187c478bd9Sstevel@tonic-gate AcpiRsGetCrsMethodData ( 21927f7c583Smyers ACPI_NAMESPACE_NODE *Node, 2207c478bd9Sstevel@tonic-gate ACPI_BUFFER *RetBuffer); 2217c478bd9Sstevel@tonic-gate 2227c478bd9Sstevel@tonic-gate ACPI_STATUS 2237c478bd9Sstevel@tonic-gate AcpiRsGetPrsMethodData ( 22427f7c583Smyers ACPI_NAMESPACE_NODE *Node, 2257c478bd9Sstevel@tonic-gate ACPI_BUFFER *RetBuffer); 2267c478bd9Sstevel@tonic-gate 2277c478bd9Sstevel@tonic-gate ACPI_STATUS 2287c478bd9Sstevel@tonic-gate AcpiRsGetMethodData ( 2297c478bd9Sstevel@tonic-gate ACPI_HANDLE Handle, 230*385cc6b4SJerry Jelinek const char *Path, 2317c478bd9Sstevel@tonic-gate ACPI_BUFFER *RetBuffer); 2327c478bd9Sstevel@tonic-gate 2337c478bd9Sstevel@tonic-gate ACPI_STATUS 2347c478bd9Sstevel@tonic-gate AcpiRsSetSrsMethodData ( 23527f7c583Smyers ACPI_NAMESPACE_NODE *Node, 2367c478bd9Sstevel@tonic-gate ACPI_BUFFER *RetBuffer); 2377c478bd9Sstevel@tonic-gate 238*385cc6b4SJerry Jelinek ACPI_STATUS 239*385cc6b4SJerry Jelinek AcpiRsGetAeiMethodData ( 240*385cc6b4SJerry Jelinek ACPI_NAMESPACE_NODE *Node, 241*385cc6b4SJerry Jelinek ACPI_BUFFER *RetBuffer); 2427c478bd9Sstevel@tonic-gate 2437c478bd9Sstevel@tonic-gate /* 2447c478bd9Sstevel@tonic-gate * rscalc 2457c478bd9Sstevel@tonic-gate */ 2467c478bd9Sstevel@tonic-gate ACPI_STATUS 2477c478bd9Sstevel@tonic-gate AcpiRsGetListLength ( 248186507a7Smyers UINT8 *AmlBuffer, 249186507a7Smyers UINT32 AmlBufferLength, 2507c478bd9Sstevel@tonic-gate ACPI_SIZE *SizeNeeded); 2517c478bd9Sstevel@tonic-gate 2527c478bd9Sstevel@tonic-gate ACPI_STATUS 253186507a7Smyers AcpiRsGetAmlLength ( 254*385cc6b4SJerry Jelinek ACPI_RESOURCE *ResourceList, 255*385cc6b4SJerry Jelinek ACPI_SIZE ResourceListSize, 2567c478bd9Sstevel@tonic-gate ACPI_SIZE *SizeNeeded); 2577c478bd9Sstevel@tonic-gate 2587c478bd9Sstevel@tonic-gate ACPI_STATUS 2597c478bd9Sstevel@tonic-gate AcpiRsGetPciRoutingTableLength ( 2607c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *PackageObject, 2617c478bd9Sstevel@tonic-gate ACPI_SIZE *BufferSizeNeeded); 2627c478bd9Sstevel@tonic-gate 2637c478bd9Sstevel@tonic-gate ACPI_STATUS 264186507a7Smyers AcpiRsConvertAmlToResources ( 26527f7c583Smyers UINT8 *Aml, 26627f7c583Smyers UINT32 Length, 26727f7c583Smyers UINT32 Offset, 26827f7c583Smyers UINT8 ResourceIndex, 269*385cc6b4SJerry Jelinek void **Context); 2707c478bd9Sstevel@tonic-gate 2717c478bd9Sstevel@tonic-gate ACPI_STATUS 272186507a7Smyers AcpiRsConvertResourcesToAml ( 273186507a7Smyers ACPI_RESOURCE *Resource, 274186507a7Smyers ACPI_SIZE AmlSizeNeeded, 2757c478bd9Sstevel@tonic-gate UINT8 *OutputBuffer); 2767c478bd9Sstevel@tonic-gate 277186507a7Smyers 278186507a7Smyers /* 279186507a7Smyers * rsaddr 280186507a7Smyers */ 28130082d0cSmyers void 28230082d0cSmyers AcpiRsSetAddressCommon ( 283186507a7Smyers AML_RESOURCE *Aml, 284186507a7Smyers ACPI_RESOURCE *Resource); 2857c478bd9Sstevel@tonic-gate 28630082d0cSmyers BOOLEAN 28730082d0cSmyers AcpiRsGetAddressCommon ( 288186507a7Smyers ACPI_RESOURCE *Resource, 289186507a7Smyers AML_RESOURCE *Aml); 290186507a7Smyers 291186507a7Smyers 292186507a7Smyers /* 293186507a7Smyers * rsmisc 294186507a7Smyers */ 295186507a7Smyers ACPI_STATUS 29630082d0cSmyers AcpiRsConvertAmlToResource ( 297186507a7Smyers ACPI_RESOURCE *Resource, 298186507a7Smyers AML_RESOURCE *Aml, 29930082d0cSmyers ACPI_RSCONVERT_INFO *Info); 3007c478bd9Sstevel@tonic-gate 3017c478bd9Sstevel@tonic-gate ACPI_STATUS 30230082d0cSmyers AcpiRsConvertResourceToAml ( 303186507a7Smyers ACPI_RESOURCE *Resource, 304186507a7Smyers AML_RESOURCE *Aml, 30530082d0cSmyers ACPI_RSCONVERT_INFO *Info); 3067c478bd9Sstevel@tonic-gate 307186507a7Smyers 308186507a7Smyers /* 309186507a7Smyers * rsutils 310186507a7Smyers */ 311186507a7Smyers void 312186507a7Smyers AcpiRsMoveData ( 313186507a7Smyers void *Destination, 314186507a7Smyers void *Source, 315186507a7Smyers UINT16 ItemCount, 316186507a7Smyers UINT8 MoveType); 317186507a7Smyers 31830082d0cSmyers UINT8 31930082d0cSmyers AcpiRsDecodeBitmask ( 32030082d0cSmyers UINT16 Mask, 32130082d0cSmyers UINT8 *List); 322186507a7Smyers 323186507a7Smyers UINT16 32430082d0cSmyers AcpiRsEncodeBitmask ( 32530082d0cSmyers UINT8 *List, 32630082d0cSmyers UINT8 Count); 32730082d0cSmyers 32830082d0cSmyers ACPI_RS_LENGTH 329186507a7Smyers AcpiRsGetResourceSource ( 33030082d0cSmyers ACPI_RS_LENGTH ResourceLength, 33130082d0cSmyers ACPI_RS_LENGTH MinimumLength, 332186507a7Smyers ACPI_RESOURCE_SOURCE *ResourceSource, 333186507a7Smyers AML_RESOURCE *Aml, 334186507a7Smyers char *StringPtr); 335186507a7Smyers 33630082d0cSmyers ACPI_RSDESC_SIZE 337186507a7Smyers AcpiRsSetResourceSource ( 338186507a7Smyers AML_RESOURCE *Aml, 33930082d0cSmyers ACPI_RS_LENGTH MinimumLength, 340186507a7Smyers ACPI_RESOURCE_SOURCE *ResourceSource); 3417c478bd9Sstevel@tonic-gate 342186507a7Smyers void 343186507a7Smyers AcpiRsSetResourceHeader ( 344186507a7Smyers UINT8 DescriptorType, 34530082d0cSmyers ACPI_RSDESC_SIZE TotalLength, 346186507a7Smyers AML_RESOURCE *Aml); 347186507a7Smyers 34830082d0cSmyers void 34930082d0cSmyers AcpiRsSetResourceLength ( 35030082d0cSmyers ACPI_RSDESC_SIZE TotalLength, 35130082d0cSmyers AML_RESOURCE *Aml); 352186507a7Smyers 353186507a7Smyers 354186507a7Smyers /* 355*385cc6b4SJerry Jelinek * rsdump - Debugger support 356186507a7Smyers */ 357*385cc6b4SJerry Jelinek #ifdef ACPI_DEBUGGER 358186507a7Smyers void 35930082d0cSmyers AcpiRsDumpResourceList ( 36030082d0cSmyers ACPI_RESOURCE *Resource); 361186507a7Smyers 362186507a7Smyers void 36330082d0cSmyers AcpiRsDumpIrqList ( 36430082d0cSmyers UINT8 *RouteTable); 365*385cc6b4SJerry Jelinek #endif 366186507a7Smyers 367186507a7Smyers 36830082d0cSmyers /* 36930082d0cSmyers * Resource conversion tables 37030082d0cSmyers */ 37130082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertDma[]; 37230082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertEndDpf[]; 37330082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertIo[]; 37430082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertFixedIo[]; 37530082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertEndTag[]; 37630082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertMemory24[]; 37730082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertGenericReg[]; 37830082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertMemory32[]; 37930082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertFixedMemory32[]; 38030082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertAddress32[]; 38130082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertAddress16[]; 38230082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertExtIrq[]; 38330082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertAddress64[]; 38430082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsConvertExtAddress64[]; 385*385cc6b4SJerry Jelinek extern ACPI_RSCONVERT_INFO AcpiRsConvertGpio[]; 386*385cc6b4SJerry Jelinek extern ACPI_RSCONVERT_INFO AcpiRsConvertFixedDma[]; 387*385cc6b4SJerry Jelinek extern ACPI_RSCONVERT_INFO AcpiRsConvertI2cSerialBus[]; 388*385cc6b4SJerry Jelinek extern ACPI_RSCONVERT_INFO AcpiRsConvertSpiSerialBus[]; 389*385cc6b4SJerry Jelinek extern ACPI_RSCONVERT_INFO AcpiRsConvertUartSerialBus[]; 390186507a7Smyers 39130082d0cSmyers /* These resources require separate get/set tables */ 392186507a7Smyers 39330082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsGetIrq[]; 39430082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsGetStartDpf[]; 39530082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsGetVendorSmall[]; 39630082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsGetVendorLarge[]; 397186507a7Smyers 39830082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsSetIrq[]; 39930082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsSetStartDpf[]; 40030082d0cSmyers extern ACPI_RSCONVERT_INFO AcpiRsSetVendor[]; 401186507a7Smyers 402186507a7Smyers 40330082d0cSmyers #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) 40430082d0cSmyers /* 40530082d0cSmyers * rsinfo 40630082d0cSmyers */ 40730082d0cSmyers extern ACPI_RSDUMP_INFO *AcpiGbl_DumpResourceDispatch[]; 408*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO *AcpiGbl_DumpSerialBusDispatch[]; 409186507a7Smyers 41030082d0cSmyers /* 411*385cc6b4SJerry Jelinek * rsdumpinfo 41230082d0cSmyers */ 41330082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpIrq[]; 414*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpPrt[]; 41530082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpDma[]; 41630082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpStartDpf[]; 41730082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpEndDpf[]; 41830082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpIo[]; 419*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpIoFlags[]; 42030082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpFixedIo[]; 42130082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpVendor[]; 42230082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpEndTag[]; 42330082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpMemory24[]; 42430082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpMemory32[]; 425*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[]; 42630082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpFixedMemory32[]; 42730082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpAddress16[]; 42830082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpAddress32[]; 42930082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpAddress64[]; 43030082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpExtAddress64[]; 43130082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpExtIrq[]; 43230082d0cSmyers extern ACPI_RSDUMP_INFO AcpiRsDumpGenericReg[]; 433*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpGpio[]; 434*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpFixedDma[]; 435*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpCommonSerialBus[]; 436*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpI2cSerialBus[]; 437*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpSpiSerialBus[]; 438*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpUartSerialBus[]; 439*385cc6b4SJerry Jelinek extern ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags[]; 440186507a7Smyers #endif 441186507a7Smyers 4427c478bd9Sstevel@tonic-gate #endif /* __ACRESRC_H__ */ 443