acresrc.h revision 102550
10SN/A/****************************************************************************** 20SN/A * 30SN/A * Name: acresrc.h - Resource Manager function prototypes 40SN/A * $Revision: 34 $ 50SN/A * 67475SN/A *****************************************************************************/ 77475SN/A 80SN/A/****************************************************************************** 90SN/A * 100SN/A * 1. Copyright Notice 110SN/A * 120SN/A * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp. 130SN/A * All rights reserved. 140SN/A * 150SN/A * 2. License 160SN/A * 170SN/A * 2.1. This is your license from Intel Corp. under its intellectual property 180SN/A * rights. You may have additional license terms from the party that provided 190SN/A * you this software, covering your right to use that party's intellectual 200SN/A * property rights. 210SN/A * 220SN/A * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 2310461SN/A * copy of the source code appearing in this file ("Covered Code") an 240SN/A * irrevocable, perpetual, worldwide license under Intel's copyrights in the 250SN/A * base code distributed originally by Intel ("Original Intel Code") to copy, 260SN/A 270SN/A * make derivatives, distribute, use and display any portion of the Covered 280SN/A * Code in any form, with the right to sublicense such rights; and 290SN/A * 300SN/A * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 310SN/A * license (with the right to sublicense), under only those claims of Intel 327475SN/A * patents that are infringed by the Original Intel Code, to make, use, sell, 3310461SN/A * offer to sell, and import the Covered Code and derivative works thereof 347475SN/A * solely to the minimum extent necessary to exercise the above copyright 357475SN/A * license, and in no event shall the patent license extend to any additions 367475SN/A * to or modifications of the Original Intel Code. No other license or right 377475SN/A * is granted directly or by implication, estoppel or otherwise; 387475SN/A * 397475SN/A * The above copyright and patent license is granted only if the following 407475SN/A * conditions are met: 417475SN/A * 427475SN/A * 3. Conditions 437475SN/A * 447475SN/A * 3.1. Redistribution of Source with Rights to Further Distribute Source. 457475SN/A * Redistribution of source code of any substantial portion of the Covered 467475SN/A * Code or modification with rights to further distribute source must include 477475SN/A * the above Copyright Notice, the above License, this list of Conditions, 487475SN/A * and the following Disclaimer and Export Compliance provision. In addition, 497475SN/A * Licensee must cause all Covered Code to which Licensee contributes to 507475SN/A * contain a file documenting the changes Licensee made to create that Covered 517475SN/A * Code and the date of any change. Licensee must include in that file the 527475SN/A * documentation of any changes made by any predecessor Licensee. Licensee 537475SN/A * must include a prominent statement that the modification is derived, 547475SN/A * directly or indirectly, from Original Intel Code. 557475SN/A * 567475SN/A * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 577475SN/A * Redistribution of source code of any substantial portion of the Covered 587475SN/A * Code or modification without rights to further distribute source must 597475SN/A * include the following Disclaimer and Export Compliance provision in the 607475SN/A * documentation and/or other materials provided with distribution. In 617475SN/A * addition, Licensee may not authorize further sublicense of source of any 627475SN/A * portion of the Covered Code, and must include terms to the effect that the 637475SN/A * license from Licensee to its licensee is limited to the intellectual 647475SN/A * property embodied in the software Licensee provides to its licensee, and 657475SN/A * not to intellectual property embodied in modifications its licensee may 667475SN/A * make. 677475SN/A * 687475SN/A * 3.3. Redistribution of Executable. Redistribution in executable form of any 697475SN/A * substantial portion of the Covered Code or modification must reproduce the 707475SN/A * above Copyright Notice, and the following Disclaimer and Export Compliance 717475SN/A * provision in the documentation and/or other materials provided with the 727475SN/A * distribution. 737475SN/A * 747475SN/A * 3.4. Intel retains all right, title, and interest in and to the Original 757475SN/A * Intel Code. 760SN/A * 770SN/A * 3.5. Neither the name Intel nor any other trademark owned or controlled by 780SN/A * Intel shall be used in advertising or otherwise to promote the sale, use or 790SN/A * other dealings in products derived from or relating to the Covered Code 800SN/A * without prior written authorization from Intel. 810SN/A * 820SN/A * 4. Disclaimer and Export Compliance 830SN/A * 840SN/A * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 857475SN/A * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 860SN/A * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 870SN/A * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 887475SN/A * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 890SN/A * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 907475SN/A * PARTICULAR PURPOSE. 917475SN/A * 920SN/A * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 930SN/A * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 940SN/A * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 950SN/A * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 960SN/A * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 970SN/A * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 980SN/A * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 990SN/A * LIMITED REMEDY. 1000SN/A * 1017475SN/A * 4.3. Licensee shall not export, either directly or indirectly, any of this 1027475SN/A * software or system incorporating such software without first obtaining any 1037475SN/A * required license or other approval from the U. S. Department of Commerce or 1040SN/A * any other agency or department of the United States Government. In the 1050SN/A * event Licensee exports any such software from the United States or 1060SN/A * re-exports any such software from a foreign destination, Licensee shall 1070SN/A * ensure that the distribution and export/re-export of the software is in 1080SN/A * compliance with all laws, regulations, orders, or other restrictions of the 1090SN/A * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1107475SN/A * any of its subsidiaries will export/re-export any technical data, process, 1110SN/A * software, or service, directly or indirectly, to any country for which the 1120SN/A * United States government or any agency thereof requires an export license, 11310461SN/A * other governmental approval, or letter of assurance, without first obtaining 1140SN/A * such license, approval or letter. 1150SN/A * 1160SN/A *****************************************************************************/ 1170SN/A 118#ifndef __ACRESRC_H__ 119#define __ACRESRC_H__ 120 121 122/* 123 * Function prototypes called from Acpi* APIs 124 */ 125 126ACPI_STATUS 127AcpiRsGetPrtMethodData ( 128 ACPI_HANDLE Handle, 129 ACPI_BUFFER *RetBuffer); 130 131 132ACPI_STATUS 133AcpiRsGetCrsMethodData ( 134 ACPI_HANDLE Handle, 135 ACPI_BUFFER *RetBuffer); 136 137ACPI_STATUS 138AcpiRsGetPrsMethodData ( 139 ACPI_HANDLE Handle, 140 ACPI_BUFFER *RetBuffer); 141 142ACPI_STATUS 143AcpiRsSetSrsMethodData ( 144 ACPI_HANDLE Handle, 145 ACPI_BUFFER *RetBuffer); 146 147ACPI_STATUS 148AcpiRsCreateResourceList ( 149 ACPI_OPERAND_OBJECT *ByteStreamBuffer, 150 ACPI_BUFFER *OutputBuffer); 151 152ACPI_STATUS 153AcpiRsCreateByteStream ( 154 ACPI_RESOURCE *LinkedListBuffer, 155 ACPI_BUFFER *OutputBuffer); 156 157ACPI_STATUS 158AcpiRsCreatePciRoutingTable ( 159 ACPI_OPERAND_OBJECT *PackageObject, 160 ACPI_BUFFER *OutputBuffer); 161 162 163/* 164 * Function prototypes called from AcpiRsCreate* 165 */ 166void 167AcpiRsDumpIrq ( 168 ACPI_RESOURCE_DATA *Data); 169 170void 171AcpiRsDumpAddress16 ( 172 ACPI_RESOURCE_DATA *Data); 173 174void 175AcpiRsDumpAddress32 ( 176 ACPI_RESOURCE_DATA *Data); 177 178void 179AcpiRsDumpAddress64 ( 180 ACPI_RESOURCE_DATA *Data); 181 182void 183AcpiRsDumpDma ( 184 ACPI_RESOURCE_DATA *Data); 185 186void 187AcpiRsDumpIo ( 188 ACPI_RESOURCE_DATA *Data); 189 190void 191AcpiRsDumpExtendedIrq ( 192 ACPI_RESOURCE_DATA *Data); 193 194void 195AcpiRsDumpFixedIo ( 196 ACPI_RESOURCE_DATA *Data); 197 198void 199AcpiRsDumpFixedMemory32 ( 200 ACPI_RESOURCE_DATA *Data); 201 202void 203AcpiRsDumpMemory24 ( 204 ACPI_RESOURCE_DATA *Data); 205 206void 207AcpiRsDumpMemory32 ( 208 ACPI_RESOURCE_DATA *Data); 209 210void 211AcpiRsDumpStartDependFns ( 212 ACPI_RESOURCE_DATA *Data); 213 214void 215AcpiRsDumpVendorSpecific ( 216 ACPI_RESOURCE_DATA *Data); 217 218void 219AcpiRsDumpResourceList ( 220 ACPI_RESOURCE *Resource); 221 222void 223AcpiRsDumpIrqList ( 224 UINT8 *RouteTable); 225 226ACPI_STATUS 227AcpiRsGetByteStreamStart ( 228 UINT8 *ByteStreamBuffer, 229 UINT8 **ByteStreamStart, 230 UINT32 *Size); 231 232ACPI_STATUS 233AcpiRsGetListLength ( 234 UINT8 *ByteStreamBuffer, 235 UINT32 ByteStreamBufferLength, 236 ACPI_SIZE *SizeNeeded); 237 238ACPI_STATUS 239AcpiRsGetByteStreamLength ( 240 ACPI_RESOURCE *LinkedListBuffer, 241 ACPI_SIZE *SizeNeeded); 242 243ACPI_STATUS 244AcpiRsGetPciRoutingTableLength ( 245 ACPI_OPERAND_OBJECT *PackageObject, 246 ACPI_SIZE *BufferSizeNeeded); 247 248ACPI_STATUS 249AcpiRsByteStreamToList ( 250 UINT8 *ByteStreamBuffer, 251 UINT32 ByteStreamBufferLength, 252 UINT8 *OutputBuffer); 253 254ACPI_STATUS 255AcpiRsListToByteStream ( 256 ACPI_RESOURCE *LinkedList, 257 ACPI_SIZE ByteStreamSizeNeeded, 258 UINT8 *OutputBuffer); 259 260ACPI_STATUS 261AcpiRsIoResource ( 262 UINT8 *ByteStreamBuffer, 263 ACPI_SIZE *BytesConsumed, 264 UINT8 **OutputBuffer, 265 ACPI_SIZE *StructureSize); 266 267ACPI_STATUS 268AcpiRsFixedIoResource ( 269 UINT8 *ByteStreamBuffer, 270 ACPI_SIZE *BytesConsumed, 271 UINT8 **OutputBuffer, 272 ACPI_SIZE *StructureSize); 273 274ACPI_STATUS 275AcpiRsIoStream ( 276 ACPI_RESOURCE *LinkedList, 277 UINT8 **OutputBuffer, 278 ACPI_SIZE *BytesConsumed); 279 280ACPI_STATUS 281AcpiRsFixedIoStream ( 282 ACPI_RESOURCE *LinkedList, 283 UINT8 **OutputBuffer, 284 ACPI_SIZE *BytesConsumed); 285 286ACPI_STATUS 287AcpiRsIrqResource ( 288 UINT8 *ByteStreamBuffer, 289 ACPI_SIZE *BytesConsumed, 290 UINT8 **OutputBuffer, 291 ACPI_SIZE *StructureSize); 292 293ACPI_STATUS 294AcpiRsIrqStream ( 295 ACPI_RESOURCE *LinkedList, 296 UINT8 **OutputBuffer, 297 ACPI_SIZE *BytesConsumed); 298 299ACPI_STATUS 300AcpiRsDmaResource ( 301 UINT8 *ByteStreamBuffer, 302 ACPI_SIZE *BytesConsumed, 303 UINT8 **OutputBuffer, 304 ACPI_SIZE *StructureSize); 305 306ACPI_STATUS 307AcpiRsDmaStream ( 308 ACPI_RESOURCE *LinkedList, 309 UINT8 **OutputBuffer, 310 ACPI_SIZE *BytesConsumed); 311 312ACPI_STATUS 313AcpiRsAddress16Resource ( 314 UINT8 *ByteStreamBuffer, 315 ACPI_SIZE *BytesConsumed, 316 UINT8 **OutputBuffer, 317 ACPI_SIZE *StructureSize); 318 319ACPI_STATUS 320AcpiRsAddress16Stream ( 321 ACPI_RESOURCE *LinkedList, 322 UINT8 **OutputBuffer, 323 ACPI_SIZE *BytesConsumed); 324 325ACPI_STATUS 326AcpiRsAddress32Resource ( 327 UINT8 *ByteStreamBuffer, 328 ACPI_SIZE *BytesConsumed, 329 UINT8 **OutputBuffer, 330 ACPI_SIZE *StructureSize); 331 332ACPI_STATUS 333AcpiRsAddress32Stream ( 334 ACPI_RESOURCE *LinkedList, 335 UINT8 **OutputBuffer, 336 ACPI_SIZE *BytesConsumed); 337 338ACPI_STATUS 339AcpiRsAddress64Resource ( 340 UINT8 *ByteStreamBuffer, 341 ACPI_SIZE *BytesConsumed, 342 UINT8 **OutputBuffer, 343 ACPI_SIZE *StructureSize); 344 345ACPI_STATUS 346AcpiRsAddress64Stream ( 347 ACPI_RESOURCE *LinkedList, 348 UINT8 **OutputBuffer, 349 ACPI_SIZE *BytesConsumed); 350 351ACPI_STATUS 352AcpiRsStartDependFnsResource ( 353 UINT8 *ByteStreamBuffer, 354 ACPI_SIZE *BytesConsumed, 355 UINT8 **OutputBuffer, 356 ACPI_SIZE *StructureSize); 357 358ACPI_STATUS 359AcpiRsEndDependFnsResource ( 360 UINT8 *ByteStreamBuffer, 361 ACPI_SIZE *BytesConsumed, 362 UINT8 **OutputBuffer, 363 ACPI_SIZE *StructureSize); 364 365ACPI_STATUS 366AcpiRsStartDependFnsStream ( 367 ACPI_RESOURCE *LinkedList, 368 UINT8 **OutputBuffer, 369 ACPI_SIZE *BytesConsumed); 370 371ACPI_STATUS 372AcpiRsEndDependFnsStream ( 373 ACPI_RESOURCE *LinkedList, 374 UINT8 **OutputBuffer, 375 ACPI_SIZE *BytesConsumed); 376 377ACPI_STATUS 378AcpiRsMemory24Resource ( 379 UINT8 *ByteStreamBuffer, 380 ACPI_SIZE *BytesConsumed, 381 UINT8 **OutputBuffer, 382 ACPI_SIZE *StructureSize); 383 384ACPI_STATUS 385AcpiRsMemory24Stream ( 386 ACPI_RESOURCE *LinkedList, 387 UINT8 **OutputBuffer, 388 ACPI_SIZE *BytesConsumed); 389 390ACPI_STATUS 391AcpiRsMemory32RangeResource ( 392 UINT8 *ByteStreamBuffer, 393 ACPI_SIZE *BytesConsumed, 394 UINT8 **OutputBuffer, 395 ACPI_SIZE *StructureSize); 396 397ACPI_STATUS 398AcpiRsFixedMemory32Resource ( 399 UINT8 *ByteStreamBuffer, 400 ACPI_SIZE *BytesConsumed, 401 UINT8 **OutputBuffer, 402 ACPI_SIZE *StructureSize); 403 404ACPI_STATUS 405AcpiRsMemory32RangeStream ( 406 ACPI_RESOURCE *LinkedList, 407 UINT8 **OutputBuffer, 408 ACPI_SIZE *BytesConsumed); 409 410ACPI_STATUS 411AcpiRsFixedMemory32Stream ( 412 ACPI_RESOURCE *LinkedList, 413 UINT8 **OutputBuffer, 414 ACPI_SIZE *BytesConsumed); 415 416ACPI_STATUS 417AcpiRsExtendedIrqResource ( 418 UINT8 *ByteStreamBuffer, 419 ACPI_SIZE *BytesConsumed, 420 UINT8 **OutputBuffer, 421 ACPI_SIZE *StructureSize); 422 423ACPI_STATUS 424AcpiRsExtendedIrqStream ( 425 ACPI_RESOURCE *LinkedList, 426 UINT8 **OutputBuffer, 427 ACPI_SIZE *BytesConsumed); 428 429ACPI_STATUS 430AcpiRsEndTagResource ( 431 UINT8 *ByteStreamBuffer, 432 ACPI_SIZE *BytesConsumed, 433 UINT8 **OutputBuffer, 434 ACPI_SIZE *StructureSize); 435 436ACPI_STATUS 437AcpiRsEndTagStream ( 438 ACPI_RESOURCE *LinkedList, 439 UINT8 **OutputBuffer, 440 ACPI_SIZE *BytesConsumed); 441 442ACPI_STATUS 443AcpiRsVendorResource ( 444 UINT8 *ByteStreamBuffer, 445 ACPI_SIZE *BytesConsumed, 446 UINT8 **OutputBuffer, 447 ACPI_SIZE *StructureSize); 448 449ACPI_STATUS 450AcpiRsVendorStream ( 451 ACPI_RESOURCE *LinkedList, 452 UINT8 **OutputBuffer, 453 ACPI_SIZE *BytesConsumed); 454 455UINT8 456AcpiRsGetResourceType ( 457 UINT8 ResourceStartByte); 458 459#endif /* __ACRESRC_H__ */ 460