Misc: hdcp : Add smcinvoke support for hdcp driver
Change-Id: I76b0e8f24df7f3e36288b1383fc7203bb295c181 Signed-off-by:Sarthak Patidar <quic_spatidar@quicinc.com>
This commit is contained in:
48
include/smci/interface/IAppClient.h
Normal file
48
include/smci/interface/IAppClient.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only
|
||||
*
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
/** @cond */
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "smcinvoke_object.h"
|
||||
|
||||
|
||||
#define IAppClient_ERROR_APP_NOT_FOUND INT32_C(10)
|
||||
#define IAppClient_ERROR_APP_RESTART_FAILED INT32_C(11)
|
||||
#define IAppClient_ERROR_APP_UNTRUSTED_CLIENT INT32_C(12)
|
||||
#define IAppClient_ERROR_CLIENT_CRED_PARSING_FAILURE INT32_C(13)
|
||||
#define IAppClient_ERROR_APP_LOAD_FAILED INT32_C(14)
|
||||
|
||||
#define IAppClient_OP_getAppObject 0
|
||||
|
||||
static inline int32_t
|
||||
IAppClient_release(struct Object self)
|
||||
{
|
||||
return Object_invoke(self, Object_OP_release, 0, 0);
|
||||
}
|
||||
|
||||
static inline int32_t
|
||||
IAppClient_retain(struct Object self)
|
||||
{
|
||||
return Object_invoke(self, Object_OP_retain, 0, 0);
|
||||
}
|
||||
|
||||
static inline int32_t
|
||||
IAppClient_getAppObject(struct Object self, const void *appDistName_ptr, size_t appDistName_len,struct Object *obj_ptr)
|
||||
{
|
||||
int32_t result;
|
||||
union ObjectArg a[2];
|
||||
a[0].bi = (struct ObjectBufIn) { appDistName_ptr, appDistName_len * 1 };
|
||||
|
||||
result = Object_invoke(self, IAppClient_OP_getAppObject, a, ObjectCounts_pack(1, 0, 0, 1));
|
||||
|
||||
*obj_ptr = a[1].o;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user