import old mobicore
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos7580.git] / mobicore / common / MobiCore / inc / DrApi / DrApiMcSystem.h
1 /*
2 * Copyright (c) 2013 TRUSTONIC LIMITED
3 * All rights reserved
4 *
5 * The present software is the confidential and proprietary information of
6 * TRUSTONIC LIMITED. You shall not disclose the present software and shall
7 * use it only in accordance with the terms of the license agreement you
8 * entered into with TRUSTONIC LIMITED. This software may be subject to
9 * export or import laws in certain countries.
10 */
11
12 #ifndef __DRAPIMCSYSTEM_H__
13 #define __DRAPIMCSYSTEM_H__
14
15 #include "DrApiCommon.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /** Get information about the implementation of the MobiCore Driver API version.
22 *
23 * @param drApiVersion pointer to Driver Api version.
24 * @returns DRAPI_OK if version has been set
25 * @returns any combination of DRAPI_ERROR_CREATE(Driver specific error code, MTK error code)
26 */
27 _DRAPI_EXTERN_C drApiResult_t drApiGetVersion(
28 uint32_t *drApiVersion);
29
30 /** Install fastcall handler
31 *
32 * @param entryTable pointer to entry table.
33 * @param fastcallId fastcall ID.
34 * @returns DRAPI_OK if version has been set
35 * @returns any combination of DRAPI_ERROR_CREATE(Driver specific error code, MTK error code)
36 */
37 _DRAPI_EXTERN_C drApiResult_t drApiInstallFc(
38 void *entryTable, uint32_t fastcallId);
39
40
41 _DRAPI_EXTERN_C drApiResult_t drApiFastCall(
42 uint32_t *fastcall_registers,
43 uint32_t size);
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif // __DRAPIMCSYSTEM_H__
49