Deleted Added
full compact
dbcmds.c (71867) dbcmds.c (73561)
1/*******************************************************************************
2 *
3 * Module Name: dbcmds - debug commands and output routines
1/*******************************************************************************
2 *
3 * Module Name: dbcmds - debug commands and output routines
4 * $Revision: 45 $
4 * $Revision: 46 $
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

--- 977 unchanged lines hidden (view full) ---

990 {
991 STRCAT (ScopeBuf, Name);
992 STRCAT (ScopeBuf, "\\");
993 }
994
995 AcpiOsPrintf ("New scope: %s\n", ScopeBuf);
996}
997
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

--- 977 unchanged lines hidden (view full) ---

990 {
991 STRCAT (ScopeBuf, Name);
992 STRCAT (ScopeBuf, "\\");
993 }
994
995 AcpiOsPrintf ("New scope: %s\n", ScopeBuf);
996}
997
998
999/*******************************************************************************
1000 *
1001 * FUNCTION: AcpiDbDisplayResources
1002 *
1003 * PARAMETERS: ObjectArg - String with hex value of the object
1004 *
1005 * RETURN: None
1006 *
1007 * DESCRIPTION:
1008 *
1009 ******************************************************************************/
1010
1011void
1012AcpiDbDisplayResources (
1013 NATIVE_CHAR *ObjectArg)
1014{
1015 ACPI_OPERAND_OBJECT *ObjDesc;
1016 ACPI_STATUS Status;
1017 ACPI_BUFFER ReturnObj;
1018 PCI_ROUTING_TABLE *Prt;
1019 UINT32 i;
1020
1021
1022 AcpiDbSetOutputDestination (DB_REDIRECTABLE_OUTPUT);
1023
1024 /* Convert string to object pointer */
1025
1026 ObjDesc = (ACPI_OPERAND_OBJECT *) STRTOUL (ObjectArg, NULL, 16);
1027
1028 /* Prepare for a return object of arbitrary size */
1029
1030 ReturnObj.Pointer = Buffer;
1031 ReturnObj.Length = BUFFER_SIZE;
1032
1033 Status = AcpiEvaluateObject (ObjDesc, "_PRT", NULL, &ReturnObj);
1034 if (ACPI_FAILURE (Status))
1035 {
1036 AcpiOsPrintf ("Could not obtain _PRT: %s\n", AcpiCmFormatException (Status));
1037 goto Cleanup;
1038 }
1039
1040 ReturnObj.Pointer = Buffer;
1041 ReturnObj.Length = BUFFER_SIZE;
1042
1043 Status = AcpiGetIrqRoutingTable (ObjDesc, &ReturnObj);
1044 if (ACPI_FAILURE (Status))
1045 {
1046 AcpiOsPrintf ("GetIrqRoutingTable failed: %s\n", AcpiCmFormatException (Status));
1047 goto Cleanup;
1048 }
1049
1050 Prt = (PCI_ROUTING_TABLE *) Buffer;
1051 i = 0;
1052 while ((char *) Prt < (Buffer + ReturnObj.Length))
1053 {
1054 AcpiOsPrintf ("Prt[%d] Src=%s: Addr=%X\n", i, Prt->Source, Prt->Address);
1055 i++;
1056 Prt = (PCI_ROUTING_TABLE *) (((char *) Prt) + Prt->Length);
1057 }
1058
1059Cleanup:
1060
1061 AcpiDbSetOutputDestination (DB_CONSOLE_OUTPUT);
1062 return;
1063
1064}
1065
1066
1067
1068
1069
998#endif /* ENABLE_DEBUGGER */
1070#endif /* ENABLE_DEBUGGER */