Beispiel #1
0
static int PVRSRVDriverResume(LDM_DEV *pDevice)
{
	PVR_TRACE("PVRSRVDriverResume(pDevice=%p)", pDevice);

	if (PVRSRVSetPowerStateKM(PVRSRV_POWER_STATE_D0) != PVRSRV_OK)
		return -EINVAL;
	return 0;
}
Beispiel #2
0
static int PVRSRVDriverSuspend(LDM_DEV *pDevice, pm_message_t state)
{
	PVR_TRACE("PVRSRVDriverSuspend(pDevice=%p)", pDevice);

	if (PVRSRVSetPowerStateKM(PVRSRV_POWER_STATE_D3) != PVRSRV_OK)
		return -EINVAL;
	return 0;
}
int
SYSPVRPostSuspend(struct drm_device *dev)
{
	if (PVRSRVSetPowerStateKM(PVRSRV_SYS_POWER_STATE_D0) != PVRSRV_OK)
	{
		return -EBUSY;
	}

	return 0;
}
int
SYSPVRPreSuspend(struct drm_device *dev)
{
	if (PVRSRVSetPowerStateKM(PVRSRV_SYS_POWER_STATE_D3) != PVRSRV_OK)
	{
		return -EBUSY;
	}

#if defined(DISPLAY_CONTROLLER)
        if (PVR_DRM_MAKENAME(DISPLAY_CONTROLLER, _Suspend)(dev) != 0)
        {
		(void)PVRSRVSetPowerStateKM(PVRSRV_SYS_POWER_STATE_D0);
                return -EBUSY;
        }
#else
	PVR_UNREFERENCED_PARAMETER(dev);
#endif

	return 0;
}
Beispiel #5
0
static void PVRSRVDriverShutdown(LDM_DEV *pDevice)
{
	PVR_TRACE("PVRSRVDriverShutdown(pDevice=%p)", pDevice);

	(void)PVRSRVSetPowerStateKM(PVRSRV_POWER_STATE_D3);
}