Added a simple RegionInit function that gets called just before the

handler is invoked.


date	2000.05.04.15.38.00;	author mwalz;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:39:44 +00:00
parent 6c439a569e
commit befdf88b84

View File

@ -308,6 +308,34 @@ RegionHandler (
}
/******************************************************************************
*
* FUNCTION: RegionInit
*
* PARAMETERS: None
*
* RETURN: Status
*
* DESCRIPTION: Opregion init function.
*
*****************************************************************************/
ACPI_STATUS
RegionInit (
ACPI_HANDLE RegionHandle,
UINT32 Function,
void *HandlerContext,
void **ReturnContext)
{
/*
* Real simple, set the ReturnContext to the RegionHandle
*/
*ReturnContext = RegionHandle;
return AE_OK;
}
/******************************************************************************
*
* FUNCTION: NotifyHandler
@ -406,7 +434,7 @@ AeInstallHandlers (void)
/* Install handler at the root object.
* TBD: all default handlers should be installed here!
*/
Status = AcpiInstallAddressSpaceHandler (Gbl_RootObject, i, RegionHandler, NULL, NULL);
Status = AcpiInstallAddressSpaceHandler (Gbl_RootObject, i, RegionHandler, RegionInit, NULL);
if (ACPI_FAILURE (Status))
{
printf ("Could not install an OpRegion handler\n");
@ -424,8 +452,6 @@ AeInstallHandlers (void)
}
/******************************************************************************
*
* FUNCTION: AdSecondPassParse