msm: ADSPRPC: Use PD type enums instead of magic numbers
Currently PD type is getting updated with some magic numbers. Add enum with different PD type information and use these types instead of magic numbers for better code readability. Change-Id: I20eb03726cabfcc88589be215c3c967b608a9cdb Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com> Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#ifndef ADSPRPC_SHARED_H
|
||||
#define ADSPRPC_SHARED_H
|
||||
@@ -678,6 +678,13 @@ enum fastrpc_msg_type {
|
||||
KERNEL_MSG_WITH_NONZERO_PID,
|
||||
};
|
||||
|
||||
/* Fastrpc remote pd type */
|
||||
enum fastrpc_remote_pd_type {
|
||||
FASTRPC_ROOT_PD = 0,
|
||||
FASTRPC_USER_PD,
|
||||
FASTRPC_SENSORS_PD,
|
||||
};
|
||||
|
||||
#define DSPSIGNAL_TIMEOUT_NONE 0xffffffff
|
||||
#define DSPSIGNAL_NUM_SIGNALS 1024
|
||||
|
||||
|
Reference in New Issue
Block a user