evregion.c (198237) | evregion.c (199337) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: evregion - ACPI AddressSpace (OpRegion) handler dispatch 4 * 5 *****************************************************************************/ 6 7/****************************************************************************** 8 * --- 386 unchanged lines hidden (view full) --- 395 * 396 * Arg0 - Integer: 397 * Operation region space ID Same value as RegionObj->Region.SpaceId 398 * 399 * Arg1 - Integer: 400 * connection status 1 for connecting the handler, 0 for disconnecting 401 * the handler (Passed as a parameter) 402 */ | 1/****************************************************************************** 2 * 3 * Module Name: evregion - ACPI AddressSpace (OpRegion) handler dispatch 4 * 5 *****************************************************************************/ 6 7/****************************************************************************** 8 * --- 386 unchanged lines hidden (view full) --- 395 * 396 * Arg0 - Integer: 397 * Operation region space ID Same value as RegionObj->Region.SpaceId 398 * 399 * Arg1 - Integer: 400 * connection status 1 for connecting the handler, 0 for disconnecting 401 * the handler (Passed as a parameter) 402 */ |
403 Args[0] = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); | 403 Args[0] = AcpiUtCreateIntegerObject ((UINT64) RegionObj->Region.SpaceId); |
404 if (!Args[0]) 405 { 406 Status = AE_NO_MEMORY; 407 goto Cleanup1; 408 } 409 | 404 if (!Args[0]) 405 { 406 Status = AE_NO_MEMORY; 407 goto Cleanup1; 408 } 409 |
410 Args[1] = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); | 410 Args[1] = AcpiUtCreateIntegerObject ((UINT64) Function); |
411 if (!Args[1]) 412 { 413 Status = AE_NO_MEMORY; 414 goto Cleanup2; 415 } 416 | 411 if (!Args[1]) 412 { 413 Status = AE_NO_MEMORY; 414 goto Cleanup2; 415 } 416 |
417 /* Setup the parameter objects */ | 417 Args[2] = NULL; /* Terminate list */ |
418 | 418 |
419 Args[0]->Integer.Value = RegionObj->Region.SpaceId; 420 Args[1]->Integer.Value = Function; 421 Args[2] = NULL; 422 | |
423 /* Execute the method, no return value */ 424 425 ACPI_DEBUG_EXEC ( 426 AcpiUtDisplayInitPathname (ACPI_TYPE_METHOD, Info->PrefixNode, NULL)); 427 428 Status = AcpiNsEvaluate (Info); 429 AcpiUtRemoveReference (Args[1]); 430 --- 737 unchanged lines hidden (view full) --- 1168 * the leaf nodes until either the leaf is encountered or 1169 * a device is detected that has an address handler of the 1170 * same type. 1171 * 1172 * In either case, back up and search down the remainder 1173 * of the branch 1174 */ 1175 Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, | 419 /* Execute the method, no return value */ 420 421 ACPI_DEBUG_EXEC ( 422 AcpiUtDisplayInitPathname (ACPI_TYPE_METHOD, Info->PrefixNode, NULL)); 423 424 Status = AcpiNsEvaluate (Info); 425 AcpiUtRemoveReference (Args[1]); 426 --- 737 unchanged lines hidden (view full) --- 1164 * the leaf nodes until either the leaf is encountered or 1165 * a device is detected that has an address handler of the 1166 * same type. 1167 * 1168 * In either case, back up and search down the remainder 1169 * of the branch 1170 */ 1171 Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, |
1176 ACPI_NS_WALK_UNLOCK, AcpiEvInstallHandler, | 1172 ACPI_NS_WALK_UNLOCK, AcpiEvInstallHandler, NULL, |
1177 HandlerObj, NULL); 1178 1179UnlockAndExit: 1180 return_ACPI_STATUS (Status); 1181} 1182 1183 1184/******************************************************************************* --- 23 unchanged lines hidden (view full) --- 1208 1209 /* 1210 * Run all _REG methods for all Operation Regions for this space ID. This 1211 * is a separate walk in order to handle any interdependencies between 1212 * regions and _REG methods. (i.e. handlers must be installed for all 1213 * regions of this Space ID before we can run any _REG methods) 1214 */ 1215 Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, | 1173 HandlerObj, NULL); 1174 1175UnlockAndExit: 1176 return_ACPI_STATUS (Status); 1177} 1178 1179 1180/******************************************************************************* --- 23 unchanged lines hidden (view full) --- 1204 1205 /* 1206 * Run all _REG methods for all Operation Regions for this space ID. This 1207 * is a separate walk in order to handle any interdependencies between 1208 * regions and _REG methods. (i.e. handlers must be installed for all 1209 * regions of this Space ID before we can run any _REG methods) 1210 */ 1211 Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, |
1216 ACPI_NS_WALK_UNLOCK, AcpiEvRegRun, | 1212 ACPI_NS_WALK_UNLOCK, AcpiEvRegRun, NULL, |
1217 &SpaceId, NULL); 1218 1219 return_ACPI_STATUS (Status); 1220} 1221 1222 1223/******************************************************************************* 1224 * --- 64 unchanged lines hidden --- | 1213 &SpaceId, NULL); 1214 1215 return_ACPI_STATUS (Status); 1216} 1217 1218 1219/******************************************************************************* 1220 * --- 64 unchanged lines hidden --- |