3709853456
This change brings msm display driver including sde, dp, dsi, rotator, dsi pll and dp pll from base 4.19 kernel project. It is first source code snapshot from base kernel project. Change-Id: Iec864c064ce5ea04e170f24414c728684002f284 Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
108 lines
2.2 KiB
C
108 lines
2.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef SDE_ROTATOR_SYNC_H
|
|
#define SDE_ROTATOR_SYNC_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
|
|
struct sde_rot_sync_fence;
|
|
struct sde_rot_timeline;
|
|
|
|
#if defined(CONFIG_SYNC_FILE)
|
|
struct sde_rot_timeline *sde_rotator_create_timeline(const char *name);
|
|
|
|
void sde_rotator_destroy_timeline(struct sde_rot_timeline *tl);
|
|
|
|
struct sde_rot_sync_fence *sde_rotator_get_sync_fence(
|
|
struct sde_rot_timeline *tl, int *fence_fd, u32 *timestamp);
|
|
|
|
void sde_rotator_resync_timeline(struct sde_rot_timeline *tl);
|
|
|
|
u32 sde_rotator_get_timeline_commit_ts(struct sde_rot_timeline *tl);
|
|
|
|
u32 sde_rotator_get_timeline_retire_ts(struct sde_rot_timeline *tl);
|
|
|
|
int sde_rotator_inc_timeline(struct sde_rot_timeline *tl, int increment);
|
|
|
|
void sde_rotator_put_sync_fence(struct sde_rot_sync_fence *fence);
|
|
|
|
int sde_rotator_wait_sync_fence(struct sde_rot_sync_fence *fence,
|
|
long timeout);
|
|
|
|
struct sde_rot_sync_fence *sde_rotator_get_fd_sync_fence(int fd);
|
|
|
|
int sde_rotator_get_sync_fence_fd(struct sde_rot_sync_fence *fence);
|
|
|
|
#else
|
|
static inline
|
|
struct sde_rot_timeline *sde_rotator_create_timeline(const char *name)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline
|
|
void sde_rotator_destroy_timeline(struct sde_rot_timeline *tl)
|
|
{
|
|
}
|
|
|
|
static inline
|
|
struct sde_rot_sync_fence *sde_rotator_get_sync_fence(
|
|
struct sde_rot_timeline *tl, int *fence_fd, u32 *timestamp)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline
|
|
void sde_rotator_resync_timeline(struct sde_rot_timeline *tl)
|
|
{
|
|
}
|
|
|
|
static inline
|
|
int sde_rotator_inc_timeline(struct sde_rot_timeline *tl, int increment)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline
|
|
u32 sde_rotator_get_timeline_commit_ts(struct sde_rot_timeline *tl)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline
|
|
u32 sde_rotator_get_timeline_retire_ts(struct sde_rot_timeline *tl)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline
|
|
void sde_rotator_put_sync_fence(struct sde_rot_sync_fence *fence)
|
|
{
|
|
}
|
|
|
|
static inline
|
|
int sde_rotator_wait_sync_fence(struct sde_rot_sync_fence *fence,
|
|
long timeout)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline
|
|
struct sde_rot_sync_fence *sde_rotator_get_fd_sync_fence(int fd)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline
|
|
int sde_rotator_get_sync_fence_fd(struct sde_rot_sync_fence *fence)
|
|
{
|
|
return -EBADF;
|
|
}
|
|
#endif
|
|
|
|
#endif /* SDE_ROTATOR_SYNC_H */
|