Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenrsmisc.c
Go to the documentation of this file.
00001 /******************************************************************************* 00002 * 00003 * Module Name: rsmisc - Miscellaneous resource descriptors 00004 * 00005 ******************************************************************************/ 00006 00007 /****************************************************************************** 00008 * 00009 * 1. Copyright Notice 00010 * 00011 * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. 00012 * All rights reserved. 00013 * 00014 * 2. License 00015 * 00016 * 2.1. This is your license from Intel Corp. under its intellectual property 00017 * rights. You may have additional license terms from the party that provided 00018 * you this software, covering your right to use that party's intellectual 00019 * property rights. 00020 * 00021 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 00022 * copy of the source code appearing in this file ("Covered Code") an 00023 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 00024 * base code distributed originally by Intel ("Original Intel Code") to copy, 00025 * make derivatives, distribute, use and display any portion of the Covered 00026 * Code in any form, with the right to sublicense such rights; and 00027 * 00028 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 00029 * license (with the right to sublicense), under only those claims of Intel 00030 * patents that are infringed by the Original Intel Code, to make, use, sell, 00031 * offer to sell, and import the Covered Code and derivative works thereof 00032 * solely to the minimum extent necessary to exercise the above copyright 00033 * license, and in no event shall the patent license extend to any additions 00034 * to or modifications of the Original Intel Code. No other license or right 00035 * is granted directly or by implication, estoppel or otherwise; 00036 * 00037 * The above copyright and patent license is granted only if the following 00038 * conditions are met: 00039 * 00040 * 3. Conditions 00041 * 00042 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 00043 * Redistribution of source code of any substantial portion of the Covered 00044 * Code or modification with rights to further distribute source must include 00045 * the above Copyright Notice, the above License, this list of Conditions, 00046 * and the following Disclaimer and Export Compliance provision. In addition, 00047 * Licensee must cause all Covered Code to which Licensee contributes to 00048 * contain a file documenting the changes Licensee made to create that Covered 00049 * Code and the date of any change. Licensee must include in that file the 00050 * documentation of any changes made by any predecessor Licensee. Licensee 00051 * must include a prominent statement that the modification is derived, 00052 * directly or indirectly, from Original Intel Code. 00053 * 00054 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 00055 * Redistribution of source code of any substantial portion of the Covered 00056 * Code or modification without rights to further distribute source must 00057 * include the following Disclaimer and Export Compliance provision in the 00058 * documentation and/or other materials provided with distribution. In 00059 * addition, Licensee may not authorize further sublicense of source of any 00060 * portion of the Covered Code, and must include terms to the effect that the 00061 * license from Licensee to its licensee is limited to the intellectual 00062 * property embodied in the software Licensee provides to its licensee, and 00063 * not to intellectual property embodied in modifications its licensee may 00064 * make. 00065 * 00066 * 3.3. Redistribution of Executable. Redistribution in executable form of any 00067 * substantial portion of the Covered Code or modification must reproduce the 00068 * above Copyright Notice, and the following Disclaimer and Export Compliance 00069 * provision in the documentation and/or other materials provided with the 00070 * distribution. 00071 * 00072 * 3.4. Intel retains all right, title, and interest in and to the Original 00073 * Intel Code. 00074 * 00075 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 00076 * Intel shall be used in advertising or otherwise to promote the sale, use or 00077 * other dealings in products derived from or relating to the Covered Code 00078 * without prior written authorization from Intel. 00079 * 00080 * 4. Disclaimer and Export Compliance 00081 * 00082 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 00083 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 00084 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 00085 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 00086 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 00087 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 00088 * PARTICULAR PURPOSE. 00089 * 00090 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 00091 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 00092 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 00093 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 00094 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 00095 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 00096 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 00097 * LIMITED REMEDY. 00098 * 00099 * 4.3. Licensee shall not export, either directly or indirectly, any of this 00100 * software or system incorporating such software without first obtaining any 00101 * required license or other approval from the U. S. Department of Commerce or 00102 * any other agency or department of the United States Government. In the 00103 * event Licensee exports any such software from the United States or 00104 * re-exports any such software from a foreign destination, Licensee shall 00105 * ensure that the distribution and export/re-export of the software is in 00106 * compliance with all laws, regulations, orders, or other restrictions of the 00107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 00108 * any of its subsidiaries will export/re-export any technical data, process, 00109 * software, or service, directly or indirectly, to any country for which the 00110 * United States government or any agency thereof requires an export license, 00111 * other governmental approval, or letter of assurance, without first obtaining 00112 * such license, approval or letter. 00113 * 00114 *****************************************************************************/ 00115 00116 #define __RSMISC_C__ 00117 00118 #include "acpi.h" 00119 #include "accommon.h" 00120 #include "acresrc.h" 00121 00122 #define _COMPONENT ACPI_RESOURCES 00123 ACPI_MODULE_NAME ("rsmisc") 00124 00125 00126 #define INIT_RESOURCE_TYPE(i) i->ResourceOffset 00127 #define INIT_RESOURCE_LENGTH(i) i->AmlOffset 00128 #define INIT_TABLE_LENGTH(i) i->Value 00129 00130 #define COMPARE_OPCODE(i) i->ResourceOffset 00131 #define COMPARE_TARGET(i) i->AmlOffset 00132 #define COMPARE_VALUE(i) i->Value 00133 00134 00135 /******************************************************************************* 00136 * 00137 * FUNCTION: AcpiRsConvertAmlToResource 00138 * 00139 * PARAMETERS: Resource - Pointer to the resource descriptor 00140 * Aml - Where the AML descriptor is returned 00141 * Info - Pointer to appropriate conversion table 00142 * 00143 * RETURN: Status 00144 * 00145 * DESCRIPTION: Convert an external AML resource descriptor to the corresponding 00146 * internal resource descriptor 00147 * 00148 ******************************************************************************/ 00149 00150 ACPI_STATUS 00151 AcpiRsConvertAmlToResource ( 00152 ACPI_RESOURCE *Resource, 00153 AML_RESOURCE *Aml, 00154 ACPI_RSCONVERT_INFO *Info) 00155 { 00156 ACPI_RS_LENGTH AmlResourceLength; 00157 void *Source; 00158 void *Destination; 00159 char *Target; 00160 UINT8 Count; 00161 UINT8 FlagsMode = FALSE; 00162 UINT16 ItemCount = 0; 00163 UINT16 Temp16 = 0; 00164 00165 00166 ACPI_FUNCTION_TRACE (RsConvertAmlToResource); 00167 00168 00169 if (((ACPI_SIZE) Resource) & 0x3) 00170 { 00171 /* Each internal resource struct is expected to be 32-bit aligned */ 00172 00173 ACPI_WARNING ((AE_INFO, 00174 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", 00175 Resource, Resource->Type, Resource->Length)); 00176 } 00177 00178 /* Extract the resource Length field (does not include header length) */ 00179 00180 AmlResourceLength = AcpiUtGetResourceLength (Aml); 00181 00182 /* 00183 * First table entry must be ACPI_RSC_INITxxx and must contain the 00184 * table length (# of table entries) 00185 */ 00186 Count = INIT_TABLE_LENGTH (Info); 00187 00188 while (Count) 00189 { 00190 /* 00191 * Source is the external AML byte stream buffer, 00192 * destination is the internal resource descriptor 00193 */ 00194 Source = ACPI_ADD_PTR (void, Aml, Info->AmlOffset); 00195 Destination = ACPI_ADD_PTR (void, Resource, Info->ResourceOffset); 00196 00197 switch (Info->Opcode) 00198 { 00199 case ACPI_RSC_INITGET: 00200 /* 00201 * Get the resource type and the initial (minimum) length 00202 */ 00203 ACPI_MEMSET (Resource, 0, INIT_RESOURCE_LENGTH (Info)); 00204 Resource->Type = INIT_RESOURCE_TYPE (Info); 00205 Resource->Length = INIT_RESOURCE_LENGTH (Info); 00206 break; 00207 00208 00209 case ACPI_RSC_INITSET: 00210 break; 00211 00212 00213 case ACPI_RSC_FLAGINIT: 00214 00215 FlagsMode = TRUE; 00216 break; 00217 00218 00219 case ACPI_RSC_1BITFLAG: 00220 /* 00221 * Mask and shift the flag bit 00222 */ 00223 ACPI_SET8 (Destination) = (UINT8) 00224 ((ACPI_GET8 (Source) >> Info->Value) & 0x01); 00225 break; 00226 00227 00228 case ACPI_RSC_2BITFLAG: 00229 /* 00230 * Mask and shift the flag bits 00231 */ 00232 ACPI_SET8 (Destination) = (UINT8) 00233 ((ACPI_GET8 (Source) >> Info->Value) & 0x03); 00234 break; 00235 00236 00237 case ACPI_RSC_COUNT: 00238 00239 ItemCount = ACPI_GET8 (Source); 00240 ACPI_SET8 (Destination) = (UINT8) ItemCount; 00241 00242 Resource->Length = Resource->Length + 00243 (Info->Value * (ItemCount - 1)); 00244 break; 00245 00246 00247 case ACPI_RSC_COUNT16: 00248 00249 ItemCount = AmlResourceLength; 00250 ACPI_SET16 (Destination) = ItemCount; 00251 00252 Resource->Length = Resource->Length + 00253 (Info->Value * (ItemCount - 1)); 00254 break; 00255 00256 00257 case ACPI_RSC_LENGTH: 00258 00259 Resource->Length = Resource->Length + Info->Value; 00260 break; 00261 00262 00263 case ACPI_RSC_MOVE8: 00264 case ACPI_RSC_MOVE16: 00265 case ACPI_RSC_MOVE32: 00266 case ACPI_RSC_MOVE64: 00267 /* 00268 * Raw data move. Use the Info value field unless ItemCount has 00269 * been previously initialized via a COUNT opcode 00270 */ 00271 if (Info->Value) 00272 { 00273 ItemCount = Info->Value; 00274 } 00275 AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); 00276 break; 00277 00278 00279 case ACPI_RSC_SET8: 00280 00281 ACPI_MEMSET (Destination, Info->AmlOffset, Info->Value); 00282 break; 00283 00284 00285 case ACPI_RSC_DATA8: 00286 00287 Target = ACPI_ADD_PTR (char, Resource, Info->Value); 00288 ACPI_MEMCPY (Destination, Source, ACPI_GET16 (Target)); 00289 break; 00290 00291 00292 case ACPI_RSC_ADDRESS: 00293 /* 00294 * Common handler for address descriptor flags 00295 */ 00296 if (!AcpiRsGetAddressCommon (Resource, Aml)) 00297 { 00298 return_ACPI_STATUS (AE_AML_INVALID_RESOURCE_TYPE); 00299 } 00300 break; 00301 00302 00303 case ACPI_RSC_SOURCE: 00304 /* 00305 * Optional ResourceSource (Index and String) 00306 */ 00307 Resource->Length += 00308 AcpiRsGetResourceSource (AmlResourceLength, Info->Value, 00309 Destination, Aml, NULL); 00310 break; 00311 00312 00313 case ACPI_RSC_SOURCEX: 00314 /* 00315 * Optional ResourceSource (Index and String). This is the more 00316 * complicated case used by the Interrupt() macro 00317 */ 00318 Target = ACPI_ADD_PTR (char, Resource, Info->AmlOffset + (ItemCount * 4)); 00319 00320 Resource->Length += 00321 AcpiRsGetResourceSource (AmlResourceLength, 00322 (ACPI_RS_LENGTH) (((ItemCount - 1) * sizeof (UINT32)) + Info->Value), 00323 Destination, Aml, Target); 00324 break; 00325 00326 00327 case ACPI_RSC_BITMASK: 00328 /* 00329 * 8-bit encoded bitmask (DMA macro) 00330 */ 00331 ItemCount = AcpiRsDecodeBitmask (ACPI_GET8 (Source), Destination); 00332 if (ItemCount) 00333 { 00334 Resource->Length += (ItemCount - 1); 00335 } 00336 00337 Target = ACPI_ADD_PTR (char, Resource, Info->Value); 00338 ACPI_SET8 (Target) = (UINT8) ItemCount; 00339 break; 00340 00341 00342 case ACPI_RSC_BITMASK16: 00343 /* 00344 * 16-bit encoded bitmask (IRQ macro) 00345 */ 00346 ACPI_MOVE_16_TO_16 (&Temp16, Source); 00347 00348 ItemCount = AcpiRsDecodeBitmask (Temp16, Destination); 00349 if (ItemCount) 00350 { 00351 Resource->Length += (ItemCount - 1); 00352 } 00353 00354 Target = ACPI_ADD_PTR (char, Resource, Info->Value); 00355 ACPI_SET8 (Target) = (UINT8) ItemCount; 00356 break; 00357 00358 00359 case ACPI_RSC_EXIT_NE: 00360 /* 00361 * Control - Exit conversion if not equal 00362 */ 00363 switch (Info->ResourceOffset) 00364 { 00365 case ACPI_RSC_COMPARE_AML_LENGTH: 00366 if (AmlResourceLength != Info->Value) 00367 { 00368 goto Exit; 00369 } 00370 break; 00371 00372 case ACPI_RSC_COMPARE_VALUE: 00373 if (ACPI_GET8 (Source) != Info->Value) 00374 { 00375 goto Exit; 00376 } 00377 break; 00378 00379 default: 00380 00381 ACPI_ERROR ((AE_INFO, "Invalid conversion sub-opcode")); 00382 return_ACPI_STATUS (AE_BAD_PARAMETER); 00383 } 00384 break; 00385 00386 00387 default: 00388 00389 ACPI_ERROR ((AE_INFO, "Invalid conversion opcode")); 00390 return_ACPI_STATUS (AE_BAD_PARAMETER); 00391 } 00392 00393 Count--; 00394 Info++; 00395 } 00396 00397 Exit: 00398 if (!FlagsMode) 00399 { 00400 /* Round the resource struct length up to the next boundary (32 or 64) */ 00401 00402 Resource->Length = (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (Resource->Length); 00403 } 00404 return_ACPI_STATUS (AE_OK); 00405 } 00406 00407 00408 /******************************************************************************* 00409 * 00410 * FUNCTION: AcpiRsConvertResourceToAml 00411 * 00412 * PARAMETERS: Resource - Pointer to the resource descriptor 00413 * Aml - Where the AML descriptor is returned 00414 * Info - Pointer to appropriate conversion table 00415 * 00416 * RETURN: Status 00417 * 00418 * DESCRIPTION: Convert an internal resource descriptor to the corresponding 00419 * external AML resource descriptor. 00420 * 00421 ******************************************************************************/ 00422 00423 ACPI_STATUS 00424 AcpiRsConvertResourceToAml ( 00425 ACPI_RESOURCE *Resource, 00426 AML_RESOURCE *Aml, 00427 ACPI_RSCONVERT_INFO *Info) 00428 { 00429 void *Source = NULL; 00430 void *Destination; 00431 ACPI_RSDESC_SIZE AmlLength = 0; 00432 UINT8 Count; 00433 UINT16 Temp16 = 0; 00434 UINT16 ItemCount = 0; 00435 00436 00437 ACPI_FUNCTION_TRACE (RsConvertResourceToAml); 00438 00439 00440 /* 00441 * First table entry must be ACPI_RSC_INITxxx and must contain the 00442 * table length (# of table entries) 00443 */ 00444 Count = INIT_TABLE_LENGTH (Info); 00445 00446 while (Count) 00447 { 00448 /* 00449 * Source is the internal resource descriptor, 00450 * destination is the external AML byte stream buffer 00451 */ 00452 Source = ACPI_ADD_PTR (void, Resource, Info->ResourceOffset); 00453 Destination = ACPI_ADD_PTR (void, Aml, Info->AmlOffset); 00454 00455 switch (Info->Opcode) 00456 { 00457 case ACPI_RSC_INITSET: 00458 00459 ACPI_MEMSET (Aml, 0, INIT_RESOURCE_LENGTH (Info)); 00460 AmlLength = INIT_RESOURCE_LENGTH (Info); 00461 AcpiRsSetResourceHeader (INIT_RESOURCE_TYPE (Info), AmlLength, Aml); 00462 break; 00463 00464 00465 case ACPI_RSC_INITGET: 00466 break; 00467 00468 00469 case ACPI_RSC_FLAGINIT: 00470 /* 00471 * Clear the flag byte 00472 */ 00473 ACPI_SET8 (Destination) = 0; 00474 break; 00475 00476 00477 case ACPI_RSC_1BITFLAG: 00478 /* 00479 * Mask and shift the flag bit 00480 */ 00481 ACPI_SET8 (Destination) |= (UINT8) 00482 ((ACPI_GET8 (Source) & 0x01) << Info->Value); 00483 break; 00484 00485 00486 case ACPI_RSC_2BITFLAG: 00487 /* 00488 * Mask and shift the flag bits 00489 */ 00490 ACPI_SET8 (Destination) |= (UINT8) 00491 ((ACPI_GET8 (Source) & 0x03) << Info->Value); 00492 break; 00493 00494 00495 case ACPI_RSC_COUNT: 00496 00497 ItemCount = ACPI_GET8 (Source); 00498 ACPI_SET8 (Destination) = (UINT8) ItemCount; 00499 00500 AmlLength = (UINT16) (AmlLength + (Info->Value * (ItemCount - 1))); 00501 break; 00502 00503 00504 case ACPI_RSC_COUNT16: 00505 00506 ItemCount = ACPI_GET16 (Source); 00507 AmlLength = (UINT16) (AmlLength + ItemCount); 00508 AcpiRsSetResourceLength (AmlLength, Aml); 00509 break; 00510 00511 00512 case ACPI_RSC_LENGTH: 00513 00514 AcpiRsSetResourceLength (Info->Value, Aml); 00515 break; 00516 00517 00518 case ACPI_RSC_MOVE8: 00519 case ACPI_RSC_MOVE16: 00520 case ACPI_RSC_MOVE32: 00521 case ACPI_RSC_MOVE64: 00522 00523 if (Info->Value) 00524 { 00525 ItemCount = Info->Value; 00526 } 00527 AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); 00528 break; 00529 00530 00531 case ACPI_RSC_ADDRESS: 00532 00533 /* Set the Resource Type, General Flags, and Type-Specific Flags */ 00534 00535 AcpiRsSetAddressCommon (Aml, Resource); 00536 break; 00537 00538 00539 case ACPI_RSC_SOURCEX: 00540 /* 00541 * Optional ResourceSource (Index and String) 00542 */ 00543 AmlLength = AcpiRsSetResourceSource ( 00544 Aml, (ACPI_RS_LENGTH) AmlLength, Source); 00545 AcpiRsSetResourceLength (AmlLength, Aml); 00546 break; 00547 00548 00549 case ACPI_RSC_SOURCE: 00550 /* 00551 * Optional ResourceSource (Index and String). This is the more 00552 * complicated case used by the Interrupt() macro 00553 */ 00554 AmlLength = AcpiRsSetResourceSource (Aml, Info->Value, Source); 00555 AcpiRsSetResourceLength (AmlLength, Aml); 00556 break; 00557 00558 00559 case ACPI_RSC_BITMASK: 00560 /* 00561 * 8-bit encoded bitmask (DMA macro) 00562 */ 00563 ACPI_SET8 (Destination) = (UINT8) 00564 AcpiRsEncodeBitmask (Source, 00565 *ACPI_ADD_PTR (UINT8, Resource, Info->Value)); 00566 break; 00567 00568 00569 case ACPI_RSC_BITMASK16: 00570 /* 00571 * 16-bit encoded bitmask (IRQ macro) 00572 */ 00573 Temp16 = AcpiRsEncodeBitmask (Source, 00574 *ACPI_ADD_PTR (UINT8, Resource, Info->Value)); 00575 ACPI_MOVE_16_TO_16 (Destination, &Temp16); 00576 break; 00577 00578 00579 case ACPI_RSC_EXIT_LE: 00580 /* 00581 * Control - Exit conversion if less than or equal 00582 */ 00583 if (ItemCount <= Info->Value) 00584 { 00585 goto Exit; 00586 } 00587 break; 00588 00589 00590 case ACPI_RSC_EXIT_NE: 00591 /* 00592 * Control - Exit conversion if not equal 00593 */ 00594 switch (COMPARE_OPCODE (Info)) 00595 { 00596 case ACPI_RSC_COMPARE_VALUE: 00597 00598 if (*ACPI_ADD_PTR (UINT8, Resource, 00599 COMPARE_TARGET (Info)) != COMPARE_VALUE (Info)) 00600 { 00601 goto Exit; 00602 } 00603 break; 00604 00605 default: 00606 00607 ACPI_ERROR ((AE_INFO, "Invalid conversion sub-opcode")); 00608 return_ACPI_STATUS (AE_BAD_PARAMETER); 00609 } 00610 break; 00611 00612 00613 case ACPI_RSC_EXIT_EQ: 00614 /* 00615 * Control - Exit conversion if equal 00616 */ 00617 if (*ACPI_ADD_PTR (UINT8, Resource, 00618 COMPARE_TARGET (Info)) == COMPARE_VALUE (Info)) 00619 { 00620 goto Exit; 00621 } 00622 break; 00623 00624 00625 default: 00626 00627 ACPI_ERROR ((AE_INFO, "Invalid conversion opcode")); 00628 return_ACPI_STATUS (AE_BAD_PARAMETER); 00629 } 00630 00631 Count--; 00632 Info++; 00633 } 00634 00635 Exit: 00636 return_ACPI_STATUS (AE_OK); 00637 } 00638 00639 00640 #if 0 00641 /* Previous resource validations */ 00642 00643 if (Aml->ExtAddress64.RevisionID != AML_RESOURCE_EXTENDED_ADDRESS_REVISION) 00644 { 00645 return_ACPI_STATUS (AE_SUPPORT); 00646 } 00647 00648 if (Resource->Data.StartDpf.PerformanceRobustness >= 3) 00649 { 00650 return_ACPI_STATUS (AE_AML_BAD_RESOURCE_VALUE); 00651 } 00652 00653 if (((Aml->Irq.Flags & 0x09) == 0x00) || 00654 ((Aml->Irq.Flags & 0x09) == 0x09)) 00655 { 00656 /* 00657 * Only [ActiveHigh, EdgeSensitive] or [ActiveLow, LevelSensitive] 00658 * polarity/trigger interrupts are allowed (ACPI spec, section 00659 * "IRQ Format"), so 0x00 and 0x09 are illegal. 00660 */ 00661 ACPI_ERROR ((AE_INFO, 00662 "Invalid interrupt polarity/trigger in resource list, 0x%X", 00663 Aml->Irq.Flags)); 00664 return_ACPI_STATUS (AE_BAD_DATA); 00665 } 00666 00667 Resource->Data.ExtendedIrq.InterruptCount = Temp8; 00668 if (Temp8 < 1) 00669 { 00670 /* Must have at least one IRQ */ 00671 00672 return_ACPI_STATUS (AE_AML_BAD_RESOURCE_LENGTH); 00673 } 00674 00675 if (Resource->Data.Dma.Transfer == 0x03) 00676 { 00677 ACPI_ERROR ((AE_INFO, 00678 "Invalid DMA.Transfer preference (3)")); 00679 return_ACPI_STATUS (AE_BAD_DATA); 00680 } 00681 #endif 00682 00683 Generated on Sun May 27 2012 04:27:22 for ReactOS by
1.7.6.1
|