/*! ****************************************************************************** @Function PVRSRVDevicePostPowerStateKM @Description Perform device-specific processing required after a power transition @Input bAllDevices : IMG_TRUE - All devices IMG_FALSE - Use ui32DeviceIndex @Input ui32DeviceIndex : device index @Input eNewPowerState : New power state @Return PVRSRV_ERROR ******************************************************************************/ static PVRSRV_ERROR PVRSRVDevicePostPowerStateKM(IMG_BOOL bAllDevices, IMG_UINT32 ui32DeviceIndex, PVRSRV_DEV_POWER_STATE eNewPowerState, IMG_BOOL bForced) { PVRSRV_ERROR eError; PVRSRV_DATA *psPVRSRVData = PVRSRVGetPVRSRVData(); /* Loop through the power devices. */ eError = List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va(psPVRSRVData->psPowerDeviceList, &PVRSRVDevicePostPowerStateKM_AnyVaCb, bAllDevices, ui32DeviceIndex, eNewPowerState, bForced); return eError; }
static PVRSRV_ERROR PVRSRVDevicePostPowerStateKM(IMG_BOOL bAllDevices, IMG_UINT32 ui32DeviceIndex, PVRSRV_DEV_POWER_STATE eNewPowerState) { PVRSRV_ERROR eError; SYS_DATA *psSysData; SysAcquireData(&psSysData); eError = List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va(psSysData->psPowerDeviceList, PVRSRVDevicePostPowerStateKM_AnyVaCb, bAllDevices, ui32DeviceIndex, eNewPowerState); return eError; }