dbcmds.c (234623) | dbcmds.c (238381) |
---|---|
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 | 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 |
|
257 /* Walk the entire root table list */ 258 259 for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) 260 { 261 TableDesc = &AcpiGbl_RootTableList.Tables[i]; | 261 /* Walk the entire root table list */ 262 263 for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) 264 { 265 TableDesc = &AcpiGbl_RootTableList.Tables[i]; |
262 AcpiOsPrintf ("%u ", i); | |
263 | 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 |
|
264 /* Make sure that the table is mapped */ 265 266 Status = AcpiTbVerifyTable (TableDesc); 267 if (ACPI_FAILURE (Status)) 268 { 269 return; 270 } 271 --- 13 unchanged lines hidden (view full) --- 285 } 286} 287 288 289/******************************************************************************* 290 * 291 * FUNCTION: AcpiDbUnloadAcpiTable 292 * | 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 * |
293 * PARAMETERS: TableArg - Name of the table to be unloaded 294 * InstanceArg - Which instance of the table to unload (if 295 * there are multiple tables of the same type) | 334 * PARAMETERS: ObjectName - Namespace pathname for an object that 335 * is owned by the table to be unloaded |
296 * | 336 * |
297 * RETURN: Nonde | 337 * RETURN: None |
298 * | 338 * |
299 * DESCRIPTION: Unload an ACPI table. 300 * Instance is not implemented | 339 * DESCRIPTION: Unload an ACPI table, via any namespace node that is owned 340 * by the table. |
301 * 302 ******************************************************************************/ 303 304void 305AcpiDbUnloadAcpiTable ( | 341 * 342 ******************************************************************************/ 343 344void 345AcpiDbUnloadAcpiTable ( |
306 char *TableArg, 307 char *InstanceArg) | 346 char *ObjectName) |
308{ | 347{ |
309/* TBD: Need to reimplement for new data structures */ 310 311#if 0 312 UINT32 i; | 348 ACPI_NAMESPACE_NODE *Node; |
313 ACPI_STATUS Status; 314 315 | 349 ACPI_STATUS Status; 350 351 |
316 /* Search all tables for the target type */ | 352 /* Translate name to an Named object */ |
317 | 353 |
318 for (i = 0; i < (ACPI_TABLE_ID_MAX+1); i++) | 354 Node = AcpiDbConvertToNode (ObjectName); 355 if (!Node) |
319 { | 356 { |
320 if (!ACPI_STRNCMP (TableArg, AcpiGbl_TableData[i].Signature, 321 AcpiGbl_TableData[i].SigLength)) 322 { 323 /* Found the table, unload it */ 324 325 Status = AcpiUnloadTable (i); 326 if (ACPI_SUCCESS (Status)) 327 { 328 AcpiOsPrintf ("[%s] unloaded and uninstalled\n", TableArg); 329 } 330 else 331 { 332 AcpiOsPrintf ("%s, while unloading [%s]\n", 333 AcpiFormatException (Status), TableArg); 334 } 335 336 return; 337 } | 357 AcpiOsPrintf ("Could not find [%s] in namespace\n", 358 ObjectName); 359 return; |
338 } 339 | 360 } 361 |
340 AcpiOsPrintf ("Unknown table type [%s]\n", TableArg); 341#endif | 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 } |
342} 343 344 345/******************************************************************************* 346 * 347 * FUNCTION: AcpiDbSendNotify 348 * 349 * PARAMETERS: Name - Name of ACPI object to send the notify to --- 730 unchanged lines hidden --- | 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 --- |