Deleted Added
full compact
evrgnini.c (80062) evrgnini.c (82367)
1/******************************************************************************
2 *
3 * Module Name: evrgnini- ACPI AddressSpace (OpRegion) init
1/******************************************************************************
2 *
3 * Module Name: evrgnini- ACPI AddressSpace (OpRegion) init
4 * $Revision: 44 $
4 * $Revision: 45 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

251
252 HandlerObj = RegionObj->Region.AddrHandler;
253 if (!HandlerObj)
254 {
255 /*
256 * No installed handler. This shouldn't happen because the dispatch
257 * routine checks before we get here, but we check again just in case.
258 */
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

251
252 HandlerObj = RegionObj->Region.AddrHandler;
253 if (!HandlerObj)
254 {
255 /*
256 * No installed handler. This shouldn't happen because the dispatch
257 * routine checks before we get here, but we check again just in case.
258 */
259 DEBUG_PRINTP (TRACE_OPREGION,
260 ("Attempting to init a region %X, with no handler\n", RegionObj));
259 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
260 "Attempting to init a region %X, with no handler\n", RegionObj));
261 return_ACPI_STATUS (AE_NOT_EXIST);
262 }
263
264 if (Function == ACPI_REGION_DEACTIVATE)
265 {
266 if (PciId)
267 {
268 ACPI_MEM_FREE (PciId);

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

511 while (HandlerObj)
512 {
513 /*
514 * This guy has at least one address handler
515 * see if it has the type we want
516 */
517 if (HandlerObj->AddrHandler.SpaceId == SpaceId)
518 {
261 return_ACPI_STATUS (AE_NOT_EXIST);
262 }
263
264 if (Function == ACPI_REGION_DEACTIVATE)
265 {
266 if (PciId)
267 {
268 ACPI_MEM_FREE (PciId);

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

511 while (HandlerObj)
512 {
513 /*
514 * This guy has at least one address handler
515 * see if it has the type we want
516 */
517 if (HandlerObj->AddrHandler.SpaceId == SpaceId)
518 {
519 DEBUG_PRINTP (TRACE_OPREGION,
520 ("Found handler %p for region %p in obj %p\n",
519 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
520 "Found handler %p for region %p in obj %p\n",
521 HandlerObj, RegionObj, ObjDesc));
522
523 /*
524 * Found it! Now update the region and the handler
525 */
526 AcpiEvAssociateRegionAndHandler (HandlerObj, RegionObj,
527 AcpiNsLocked);
528 return_ACPI_STATUS (AE_OK);

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

539 */
540 Node = AcpiNsGetParentObject (Node);
541
542 } /* while Node != ROOT */
543
544 /*
545 * If we get here, there is no handler for this region
546 */
521 HandlerObj, RegionObj, ObjDesc));
522
523 /*
524 * Found it! Now update the region and the handler
525 */
526 AcpiEvAssociateRegionAndHandler (HandlerObj, RegionObj,
527 AcpiNsLocked);
528 return_ACPI_STATUS (AE_OK);

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

539 */
540 Node = AcpiNsGetParentObject (Node);
541
542 } /* while Node != ROOT */
543
544 /*
545 * If we get here, there is no handler for this region
546 */
547 DEBUG_PRINTP (TRACE_OPREGION,
548 ("No handler for RegionType %s(%X) (RegionObj %p)\n",
547 ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION,
548 "No handler for RegionType %s(%X) (RegionObj %p)\n",
549 AcpiUtGetRegionName (SpaceId), SpaceId, RegionObj));
550
551 return_ACPI_STATUS (AE_NOT_EXIST);
552}
553
549 AcpiUtGetRegionName (SpaceId), SpaceId, RegionObj));
550
551 return_ACPI_STATUS (AE_NOT_EXIST);
552}
553