2018-08-06 06:17:01 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-02-12 03:29:58 +03:00
|
|
|
/*
|
|
|
|
* rcar-fcp.h -- R-Car Frame Compression Processor Driver
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Renesas Electronics Corporation
|
|
|
|
*
|
|
|
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
|
|
*/
|
|
|
|
#ifndef __MEDIA_RCAR_FCP_H__
|
|
|
|
#define __MEDIA_RCAR_FCP_H__
|
|
|
|
|
|
|
|
struct device_node;
|
|
|
|
struct rcar_fcp_device;
|
|
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_VIDEO_RENESAS_FCP)
|
|
|
|
struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np);
|
|
|
|
void rcar_fcp_put(struct rcar_fcp_device *fcp);
|
2017-05-17 02:20:04 +03:00
|
|
|
struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp);
|
2016-02-12 03:29:58 +03:00
|
|
|
int rcar_fcp_enable(struct rcar_fcp_device *fcp);
|
|
|
|
void rcar_fcp_disable(struct rcar_fcp_device *fcp);
|
|
|
|
#else
|
|
|
|
static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np)
|
|
|
|
{
|
|
|
|
return ERR_PTR(-ENOENT);
|
|
|
|
}
|
|
|
|
static inline void rcar_fcp_put(struct rcar_fcp_device *fcp) { }
|
2017-05-17 02:20:04 +03:00
|
|
|
static inline struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2016-02-12 03:29:58 +03:00
|
|
|
static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp)
|
|
|
|
{
|
2016-08-17 15:57:37 +03:00
|
|
|
return 0;
|
2016-02-12 03:29:58 +03:00
|
|
|
}
|
|
|
|
static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __MEDIA_RCAR_FCP_H__ */
|