Deleted Added
sdiff udiff text old ( 80062 ) new ( 82367 )
full compact
1/*******************************************************************************
2 *
3 * Module Name: dbutils - AML debugger utilities
4 * $Revision: 39 $
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

180
181void
182AcpiDbDumpBuffer (
183 UINT32 Address)
184{
185
186 AcpiOsPrintf ("\nLocation %X:\n", Address);
187
188 AcpiDbgLevel |= TRACE_TABLES;
189 AcpiUtDumpBuffer ((UINT8 *) Address, 64, DB_BYTE_DISPLAY, ACPI_UINT32_MAX);
190}
191
192
193/*******************************************************************************
194 *
195 * FUNCTION: AcpiDbDumpObject
196 *

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

221 {
222 AcpiOsPrintf (" ");
223 }
224
225 switch (ObjDesc->Type)
226 {
227 case ACPI_TYPE_ANY:
228
229 AcpiOsPrintf ("[Object Reference] Value: %p\n", ObjDesc->Reference.Handle);
230 break;
231
232
233 case ACPI_TYPE_INTEGER:
234 AcpiOsPrintf ("[Number] Value: %ld (%lX)\n", ObjDesc->Integer.Value, ObjDesc->Integer.Value);
235 break;
236
237
238 case ACPI_TYPE_STRING:
239
240 AcpiOsPrintf ("[String] Value: ");
241 for (i = 0; i < ObjDesc->String.Length; i++)
242 {
243 AcpiOsPrintf ("%c", ObjDesc->String.Pointer[i]);
244 }
245 AcpiOsPrintf ("\n");
246 break;
247
248
249 case ACPI_TYPE_BUFFER:
250
251 AcpiOsPrintf ("[Buffer] Value: ");
252 AcpiUtDumpBuffer ((UINT8 *) ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length, DB_DWORD_DISPLAY, _COMPONENT);
253 break;
254
255
256 case ACPI_TYPE_PACKAGE:
257
258 AcpiOsPrintf ("[Package] Contains %d Elements: \n", ObjDesc->Package.Count);
259
260 for (i = 0; i < ObjDesc->Package.Count; i++)
261 {
262 AcpiDbDumpObject (&ObjDesc->Package.Elements[i], Level+1);
263 }
264 break;
265
266
267 case INTERNAL_TYPE_REFERENCE:
268 AcpiOsPrintf ("[Object Reference] Value: %p\n", ObjDesc->Reference.Handle);
269 break;
270
271 case ACPI_TYPE_PROCESSOR:
272 AcpiOsPrintf ("[Processor]\n");
273 break;
274
275 case ACPI_TYPE_POWER:
276 AcpiOsPrintf ("[Power Resource]\n");
277 break;
278
279 default:
280
281 AcpiOsPrintf ("[Unknown Type] %X \n", ObjDesc->Type);
282 break;
283 }
284}
285
286

--- 179 unchanged lines hidden ---