mirror of
https://github.com/acpica/acpica/
synced 2025-01-14 21:39:19 +03:00
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:
parent
6c439a569e
commit
befdf88b84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user