Dateien
android_kernel_samsung_sm86…/include/smci/interface/smci_opener.h
Ujjawal Sankhwar f090258a21 securemsm-kernel: Add support for snake case smci headers
Add new smci headers that support snake case APIs, structures and macros.
Tests Done: scipp_test

Change-Id: Ie0e9529929722529ffe112f9ceadc667e58a0dd0
Signed-off-by: Ujjawal Sankhwar <quic_usankhwa@quicinc.com>
2024-06-06 04:21:04 -07:00

41 Zeilen
875 B
C

/* SPDX-License-Identifier: GPL-2.0-only
*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __SMCI_OPENER_H
#define __SMCI_OPENER_H
#include "smci_object.h"
#include "IOpener.h"
/** 0 is not a valid service ID. */
#define SMCI_OPENER_INVALID_ID UINT32_C(0)
#define SMCI_OPENER_ERROR_NOT_FOUND INT32_C(10)
#define SMCI_OPENER_ERROR_PRIVILEGE INT32_C(11)
#define SMCI_OPENER_ERROR_NOT_SUPPORTED INT32_C(12)
#define SMCI_OPENER_OP_OPEN 0
static inline int32_t
smci_opener_release(struct smci_object self)
{
return IOpener_release(self);
}
static inline int32_t
smci_opener_retain(struct smci_object self)
{
return IOpener_retain(self);
}
static inline int32_t
smci_opener_open(struct smci_object self, uint32_t id_val, struct smci_object *obj_ptr)
{
return IOpener_open(self, id_val, obj_ptr);
}
#endif /* __SMCI_OPENER_H */