mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
fastcvpd_video_suspend() is defined multiple times resulting in compilation error if fastcvpd.h is included. Fix the error by removing multiple definition in fastcvpd.h Change-Id: I187aa8c0e346bac855e0c7e1360f15aefc8d2016 Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
90 lines
2.1 KiB
C
90 lines
2.1 KiB
C
/*
|
|
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
#ifndef FASTCVPD_H
|
|
#define FASTCVPD_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define FASTCVPD_GLINK_GUID "fastcvpd-glink-apps-dsp"
|
|
#define FASTCVPD_SMD_GUID "fastcvpd-smd-apps-dsp"
|
|
#define FASTCVPD_DEVICE_NAME "fastcvpd-smd"
|
|
|
|
#ifdef CONFIG_MSM_FASTCVPD
|
|
/*
|
|
* API for Video driver to send physical address to FastCVP driver
|
|
* @param phys_addr
|
|
* Physical address of command message queue
|
|
* that needs to be mapped to CDSP.
|
|
* It should be allocated from CMA adsp_mem region.
|
|
*
|
|
* @param size_in_bytes
|
|
* Size in bytes of command message queue
|
|
*/
|
|
int fastcvpd_video_send_cmd_hfi_queue(phys_addr_t *phys_addr,
|
|
uint32_t size_in_bytes);
|
|
|
|
/*
|
|
* API for Video driver to suspend CVP session during
|
|
* power collapse
|
|
*
|
|
* @param session_flag
|
|
* Flag to share details of session.
|
|
*/
|
|
int fastcvpd_video_suspend(uint32_t session_flag);
|
|
|
|
/*
|
|
* API for Video driver to resume CVP session during
|
|
* power collapse
|
|
*
|
|
* @param session_flag
|
|
* Flag to share details of session.
|
|
*/
|
|
int fastcvpd_video_resume(uint32_t session_flag);
|
|
|
|
/*
|
|
* API for Video driver to shutdown CVP session during
|
|
* video subsystem error.
|
|
*
|
|
* @param session_flag
|
|
* Flag to share details of session.
|
|
*/
|
|
int fastcvpd_video_shutdown(uint32_t session_flag);
|
|
|
|
#else
|
|
|
|
static inline int fastcvpd_video_send_cmd_hfi_queue(
|
|
phys_addr_t *phys_addr,
|
|
uint32_t size_in_bytes)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int fastcvpd_video_shutdown(uint32_t session_flag)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int fastcvpd_video_suspend(uint32_t session_flag)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int fastcvpd_video_resume(uint32_t session_flag)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
#endif // CONFIG_FASTCVPD
|
|
#endif // FASTCVPD_H
|