evxfregn.c (77424) | evxfregn.c (82367) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: evxfregn - External Interfaces, ACPI Operation Regions and 4 * Address Spaces. | 1/****************************************************************************** 2 * 3 * Module Name: evxfregn - External Interfaces, ACPI Operation Regions and 4 * Address Spaces. |
5 * $Revision: 34 $ | 5 * $Revision: 35 $ |
6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. --- 259 unchanged lines hidden (view full) --- 273 * Move through the linked list of handlers 274 */ 275 HandlerObj = HandlerObj->AddrHandler.Next; 276 } 277 } 278 279 else 280 { | 6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. --- 259 unchanged lines hidden (view full) --- 273 * Move through the linked list of handlers 274 */ 275 HandlerObj = HandlerObj->AddrHandler.Next; 276 } 277 } 278 279 else 280 { |
281 DEBUG_PRINTP (TRACE_OPREGION, 282 ("Creating object on Device %p while installing handler\n", Node)); | 281 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, 282 "Creating object on Device %p while installing handler\n", Node)); |
283 284 /* ObjDesc does not exist, create one */ 285 286 if (Node->Type == ACPI_TYPE_ANY) 287 { 288 Type = ACPI_TYPE_DEVICE; 289 } 290 --- 18 unchanged lines hidden (view full) --- 309 Status = AcpiNsAttachObject (Node, ObjDesc, (UINT8) Type); 310 if (ACPI_FAILURE (Status)) 311 { 312 AcpiUtRemoveReference (ObjDesc); 313 goto UnlockAndExit; 314 } 315 } 316 | 283 284 /* ObjDesc does not exist, create one */ 285 286 if (Node->Type == ACPI_TYPE_ANY) 287 { 288 Type = ACPI_TYPE_DEVICE; 289 } 290 --- 18 unchanged lines hidden (view full) --- 309 Status = AcpiNsAttachObject (Node, ObjDesc, (UINT8) Type); 310 if (ACPI_FAILURE (Status)) 311 { 312 AcpiUtRemoveReference (ObjDesc); 313 goto UnlockAndExit; 314 } 315 } 316 |
317 DEBUG_PRINTP (TRACE_OPREGION, 318 ("Installing address handler for region %s(%X) on Device %p(%p)\n", | 317 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, 318 "Installing address handler for region %s(%X) on Device %p(%p)\n", |
319 AcpiUtGetRegionName (SpaceId), SpaceId, Node, ObjDesc)); 320 321 /* 322 * Now we can install the handler 323 * 324 * At this point we know that there is no existing handler. 325 * So, we just allocate the object for the handler and link it 326 * into the list. --- 130 unchanged lines hidden (view full) --- 457 * We have a handler, see if user requested this one 458 */ 459 460 if(HandlerObj->AddrHandler.SpaceId == SpaceId) 461 { 462 /* 463 * Got it, first dereference this in the Regions 464 */ | 319 AcpiUtGetRegionName (SpaceId), SpaceId, Node, ObjDesc)); 320 321 /* 322 * Now we can install the handler 323 * 324 * At this point we know that there is no existing handler. 325 * So, we just allocate the object for the handler and link it 326 * into the list. --- 130 unchanged lines hidden (view full) --- 457 * We have a handler, see if user requested this one 458 */ 459 460 if(HandlerObj->AddrHandler.SpaceId == SpaceId) 461 { 462 /* 463 * Got it, first dereference this in the Regions 464 */ |
465 DEBUG_PRINTP (TRACE_OPREGION, 466 ("Removing address handler %p(%p) for region %s on Device %p(%p)\n", | 465 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, 466 "Removing address handler %p(%p) for region %s on Device %p(%p)\n", |
467 HandlerObj, Handler, AcpiUtGetRegionName (SpaceId), 468 Node, ObjDesc)); 469 470 RegionObj = HandlerObj->AddrHandler.RegionList; 471 472 /* Walk the handler's region list */ 473 474 while (RegionObj) --- 36 unchanged lines hidden (view full) --- 511 LastObjPtr = &HandlerObj->AddrHandler.Next; 512 HandlerObj = HandlerObj->AddrHandler.Next; 513 } 514 515 516 /* 517 * The handler does not exist 518 */ | 467 HandlerObj, Handler, AcpiUtGetRegionName (SpaceId), 468 Node, ObjDesc)); 469 470 RegionObj = HandlerObj->AddrHandler.RegionList; 471 472 /* Walk the handler's region list */ 473 474 while (RegionObj) --- 36 unchanged lines hidden (view full) --- 511 LastObjPtr = &HandlerObj->AddrHandler.Next; 512 HandlerObj = HandlerObj->AddrHandler.Next; 513 } 514 515 516 /* 517 * The handler does not exist 518 */ |
519 DEBUG_PRINTP (TRACE_OPREGION, 520 ("Unable to remove address handler %p for %s(%X), DevNode %p, obj %p\n", | 519 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, 520 "Unable to remove address handler %p for %s(%X), DevNode %p, obj %p\n", |
521 Handler, AcpiUtGetRegionName (SpaceId), SpaceId, Node, ObjDesc)); 522 523 Status = AE_NOT_EXIST; 524 525 526UnlockAndExit: 527 AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); 528 return_ACPI_STATUS (Status); 529} 530 531 | 521 Handler, AcpiUtGetRegionName (SpaceId), SpaceId, Node, ObjDesc)); 522 523 Status = AE_NOT_EXIST; 524 525 526UnlockAndExit: 527 AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); 528 return_ACPI_STATUS (Status); 529} 530 531 |