Simplify code base for future generations of driver. Change-Id: I9ed940184da3b2224c74092ac31163de29c84f64 Signed-off-by: George Shen <quic_sqiao@quicinc.com>
51 rader
868 B
C
51 rader
868 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _MSM_COMM_DEF_H_
|
|
#define _MSM_COMM_DEF_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/gunyah/gh_rm_drv.h>
|
|
|
|
enum op_mode {
|
|
OP_NORMAL,
|
|
OP_DRAINING,
|
|
OP_FLUSH,
|
|
OP_INVALID,
|
|
};
|
|
|
|
enum queue_state {
|
|
QUEUE_INIT,
|
|
QUEUE_ACTIVE = 1,
|
|
QUEUE_START,
|
|
QUEUE_STOP,
|
|
QUEUE_INVALID,
|
|
};
|
|
|
|
#ifdef CONFIG_EVA_TVM
|
|
|
|
#else /* LA target starts here */
|
|
|
|
#ifdef CONFIG_EVA_KALAMA
|
|
#define CVP_SYNX_ENABLED 1
|
|
#define CVP_MMRM_ENABLED 1
|
|
#define CVP_FASTRPC_ENABLED 1
|
|
#endif /* End of CONFIG_EVA_KALAMA */
|
|
|
|
#ifdef CONFIG_EVA_PINEAPPLE
|
|
#define CVP_MMRM_ENABLED 1
|
|
#define CVP_SYNX_ENABLED 1
|
|
#define CVP_FASTRPC_ENABLED 1
|
|
#endif /* End of CONFIG_EVA_PINEAPPLE */
|
|
|
|
|
|
#ifdef CONFIG_EVA_WAIPIO
|
|
#define CVP_MINIDUMP_ENABLED 1
|
|
#endif
|
|
|
|
#endif /* End CONFIG_EVA_TVM */
|
|
|
|
#endif
|