1/******************************************************************************* 2 * 3 * Module Name: dbcmds - Miscellaneous debug commands and output routines 4 * 5 ******************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 240 unchanged lines hidden (view full) --- 249AcpiDbDisplayTableInfo ( 250 char *TableArg) 251{ 252 UINT32 i; 253 ACPI_TABLE_DESC *TableDesc; 254 ACPI_STATUS Status; 255 256 |
257 /* Header */ 258 259 AcpiOsPrintf ("Idx ID Status Type Sig Address Len Header\n"); 260 |
261 /* Walk the entire root table list */ 262 263 for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) 264 { 265 TableDesc = &AcpiGbl_RootTableList.Tables[i]; |
266 |
267 /* Index and Table ID */ 268 269 AcpiOsPrintf ("%3u %.2u ", i, TableDesc->OwnerId); 270 271 /* Decode the table flags */ 272 273 if (!(TableDesc->Flags & ACPI_TABLE_IS_LOADED)) 274 { 275 AcpiOsPrintf ("NotLoaded "); 276 } 277 else 278 { 279 AcpiOsPrintf (" Loaded "); 280 } 281 282 switch (TableDesc->Flags & ACPI_TABLE_ORIGIN_MASK) 283 { 284 case ACPI_TABLE_ORIGIN_UNKNOWN: 285 AcpiOsPrintf ("Unknown "); 286 break; 287 288 case ACPI_TABLE_ORIGIN_MAPPED: 289 AcpiOsPrintf ("Mapped "); 290 break; 291 292 case ACPI_TABLE_ORIGIN_ALLOCATED: 293 AcpiOsPrintf ("Allocated "); 294 break; 295 296 case ACPI_TABLE_ORIGIN_OVERRIDE: 297 AcpiOsPrintf ("Override "); 298 break; 299 300 default: 301 AcpiOsPrintf ("INVALID "); 302 break; 303 } 304 |
305 /* Make sure that the table is mapped */ 306 307 Status = AcpiTbVerifyTable (TableDesc); 308 if (ACPI_FAILURE (Status)) 309 { 310 return; 311 } 312 --- 13 unchanged lines hidden (view full) --- 326 } 327} 328 329 330/******************************************************************************* 331 * 332 * FUNCTION: AcpiDbUnloadAcpiTable 333 * |
334 * PARAMETERS: ObjectName - Namespace pathname for an object that 335 * is owned by the table to be unloaded |
336 * |
337 * RETURN: None |
338 * |
339 * DESCRIPTION: Unload an ACPI table, via any namespace node that is owned 340 * by the table. |
341 * 342 ******************************************************************************/ 343 344void 345AcpiDbUnloadAcpiTable ( |
346 char *ObjectName) |
347{ |
348 ACPI_NAMESPACE_NODE *Node; |
349 ACPI_STATUS Status; 350 351 |
352 /* Translate name to an Named object */ |
353 |
354 Node = AcpiDbConvertToNode (ObjectName); 355 if (!Node) |
356 { |
357 AcpiOsPrintf ("Could not find [%s] in namespace\n", 358 ObjectName); 359 return; |
360 } 361 |
362 Status = AcpiUnloadParentTable (ACPI_CAST_PTR (ACPI_HANDLE, Node)); 363 if (ACPI_SUCCESS (Status)) 364 { 365 AcpiOsPrintf ("Parent of [%s] (%p) unloaded and uninstalled\n", 366 ObjectName, Node); 367 } 368 else 369 { 370 AcpiOsPrintf ("%s, while unloading parent table of [%s]\n", 371 AcpiFormatException (Status), ObjectName); 372 } |
373} 374 375 376/******************************************************************************* 377 * 378 * FUNCTION: AcpiDbSendNotify 379 * 380 * PARAMETERS: Name - Name of ACPI object to send the notify to --- 730 unchanged lines hidden --- |