dbnames.c (249112) | dbnames.c (249663) |
---|---|
1/******************************************************************************* 2 * 3 * Module Name: dbnames - Debugger commands for the acpi namespace 4 * 5 ******************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2013, Intel Corp. --- 421 unchanged lines hidden (view full) --- 430 void *Context, 431 void **ReturnValue) 432{ 433 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; 434 UINT32 *Count = (UINT32 *) Context; 435 const ACPI_PREDEFINED_INFO *Predefined; 436 const ACPI_PREDEFINED_INFO *Package = NULL; 437 char *Pathname; | 1/******************************************************************************* 2 * 3 * Module Name: dbnames - Debugger commands for the acpi namespace 4 * 5 ******************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2013, Intel Corp. --- 421 unchanged lines hidden (view full) --- 430 void *Context, 431 void **ReturnValue) 432{ 433 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; 434 UINT32 *Count = (UINT32 *) Context; 435 const ACPI_PREDEFINED_INFO *Predefined; 436 const ACPI_PREDEFINED_INFO *Package = NULL; 437 char *Pathname; |
438 char StringBuffer[48]; |
|
438 439 440 Predefined = AcpiUtMatchPredefinedMethod (Node->Name.Ascii); 441 if (!Predefined) 442 { 443 return (AE_OK); 444 } 445 --- 5 unchanged lines hidden (view full) --- 451 452 /* If method returns a package, the info is in the next table entry */ 453 454 if (Predefined->Info.ExpectedBtypes & ACPI_RTYPE_PACKAGE) 455 { 456 Package = Predefined + 1; 457 } 458 | 439 440 441 Predefined = AcpiUtMatchPredefinedMethod (Node->Name.Ascii); 442 if (!Predefined) 443 { 444 return (AE_OK); 445 } 446 --- 5 unchanged lines hidden (view full) --- 452 453 /* If method returns a package, the info is in the next table entry */ 454 455 if (Predefined->Info.ExpectedBtypes & ACPI_RTYPE_PACKAGE) 456 { 457 Package = Predefined + 1; 458 } 459 |
459 AcpiOsPrintf ("%-32s arg %X ret %2.2X", Pathname, 460 (Predefined->Info.ArgumentList & METHOD_ARG_MASK), | 460 AcpiUtGetExpectedReturnTypes (StringBuffer, |
461 Predefined->Info.ExpectedBtypes); 462 | 461 Predefined->Info.ExpectedBtypes); 462 |
463 AcpiOsPrintf ("%-32s Arguments %X, Return Types: %s", Pathname, 464 METHOD_GET_ARG_COUNT (Predefined->Info.ArgumentList), 465 StringBuffer); 466 |
|
463 if (Package) 464 { | 467 if (Package) 468 { |
465 AcpiOsPrintf (" PkgType %2.2X ObjType %2.2X Count %2.2X", | 469 AcpiOsPrintf (" (PkgType %2.2X, ObjType %2.2X, Count %2.2X)", |
466 Package->RetInfo.Type, Package->RetInfo.ObjectType1, 467 Package->RetInfo.Count1); 468 } 469 470 AcpiOsPrintf("\n"); 471 | 470 Package->RetInfo.Type, Package->RetInfo.ObjectType1, 471 Package->RetInfo.Count1); 472 } 473 474 AcpiOsPrintf("\n"); 475 |
472 AcpiNsCheckParameterCount (Pathname, Node, ACPI_UINT32_MAX, Predefined); | 476 /* Check that the declared argument count matches the ACPI spec */ 477 478 AcpiNsCheckAcpiCompliance (Pathname, Node, Predefined); 479 |
473 ACPI_FREE (Pathname); 474 (*Count)++; | 480 ACPI_FREE (Pathname); 481 (*Count)++; |
475 | |
476 return (AE_OK); 477} 478 479 480/******************************************************************************* 481 * 482 * FUNCTION: AcpiDbCheckPredefinedNames 483 * --- 453 unchanged lines hidden --- | 482 return (AE_OK); 483} 484 485 486/******************************************************************************* 487 * 488 * FUNCTION: AcpiDbCheckPredefinedNames 489 * --- 453 unchanged lines hidden --- |