• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright (C) 2018 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *****************************************************************************
18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20 
21 #ifndef IMPD_API_CMD_STANDARDS_H
22 #define IMPD_API_CMD_STANDARDS_H
23 
24 /*****************************************************************************/
25 /* Ittiam standard API commands                                              */
26 /*****************************************************************************/
27 #define IA_API_CMD_GET_LIB_ID_STRINGS 0x0001
28 
29 #define IA_API_CMD_GET_API_SIZE 0x0002
30 #define IA_API_CMD_INIT 0x0003
31 
32 #define IA_API_CMD_SET_CONFIG_PARAM 0x0004
33 #define IA_API_CMD_GET_CONFIG_PARAM 0x0005
34 
35 #define IA_API_CMD_GET_MEMTABS_SIZE 0x0006
36 #define IA_API_CMD_SET_MEMTABS_PTR 0x0007
37 #define IA_API_CMD_GET_N_MEMTABS 0x0008
38 
39 #define IA_API_CMD_EXECUTE 0x0009
40 
41 #define IA_API_CMD_PUT_INPUT_QUERY 0x000A
42 #define IA_API_CMD_GET_CURIDX_INPUT_BUF 0x000B
43 #define IA_API_CMD_SET_INPUT_BYTES 0x000C
44 #define IA_API_CMD_GET_OUTPUT_BYTES 0x000D
45 #define IA_API_CMD_INPUT_OVER 0x000E
46 
47 #define IA_API_CMD_RESET 0x0010
48 
49 #define IA_API_CMD_GET_MEM_INFO_SIZE 0x0011
50 #define IA_API_CMD_GET_MEM_INFO_ALIGNMENT 0x0012
51 #define IA_API_CMD_GET_MEM_INFO_TYPE 0x0013
52 #define IA_API_CMD_GET_MEM_INFO_PLACEMENT 0x0014
53 #define IA_API_CMD_GET_MEM_INFO_PRIORITY 0x0015
54 #define IA_API_CMD_SET_MEM_PTR 0x0016
55 #define IA_API_CMD_SET_MEM_INFO_SIZE 0x0017
56 #define IA_API_CMD_SET_MEM_PLACEMENT 0x0018
57 
58 #define IA_API_CMD_GET_N_TABLES 0x0019
59 #define IA_API_CMD_GET_TABLE_INFO_SIZE 0x001A
60 #define IA_API_CMD_GET_TABLE_INFO_ALIGNMENT 0x001B
61 #define IA_API_CMD_GET_TABLE_INFO_PRIORITY 0x001C
62 #define IA_API_CMD_SET_TABLE_PTR 0x001D
63 #define IA_API_CMD_GET_TABLE_PTR 0x001E
64 
65 #define IA_API_CMD_INPUT_OVER_BS 0x0021
66 #define IA_API_CMD_INPUT_OVER_IC_BS 0x0022
67 #define IA_API_CMD_INPUT_OVER_IG_BS 0x0023
68 #define IA_API_CMD_INPUT_OVER_IL_BS 0x0024
69 #define IA_API_CMD_INPUT_OVER_IN_BS 0x0025
70 
71 #define IA_API_CMD_SET_INPUT_BYTES_BS 0x0026
72 #define IA_API_CMD_SET_INPUT_BYTES_IC_BS 0x0027
73 #define IA_API_CMD_SET_INPUT_BYTES_IG_BS 0x0028
74 #define IA_API_CMD_SET_INPUT_BYTES_IL_BS 0x0029
75 #define IA_API_CMD_SET_INPUT_BYTES_IN_BS 0x002A
76 /*****************************************************************************/
77 /* Ittiam standard API command indices                                       */
78 /*****************************************************************************/
79 /* IA_API_CMD_GET_LIB_ID_STRINGS indices */
80 #define IA_CMD_TYPE_LIB_NAME 0x0100
81 #define IA_CMD_TYPE_LIB_VERSION 0x0200
82 #define IA_CMD_TYPE_API_VERSION 0x0300
83 
84 /* IA_API_CMD_INIT indices */
85 #define IA_CMD_TYPE_INIT_API_PRE_CONFIG_PARAMS 0x0100
86 #define IA_CMD_TYPE_INIT_API_POST_CONFIG_PARAMS 0x0200
87 #define IA_CMD_TYPE_INIT_PROCESS 0x0300
88 #define IA_CMD_TYPE_INIT_DONE_QUERY 0x0400
89 
90 #define IA_CMD_TYPE_INIT_CPY_BSF_BUFF 0x0201
91 #define IA_CMD_TYPE_INIT_CPY_IC_BSF_BUFF 0x0202
92 #define IA_CMD_TYPE_INIT_CPY_IL_BSF_BUFF 0x0203
93 #define IA_CMD_TYPE_INIT_CPY_IG_BSF_BUFF 0x0204
94 #define IA_CMD_TYPE_INIT_CPY_IN_BSF_BUFF 0x0205
95 
96 #define IA_CMD_TYPE_INIT_CPY_BSF_BUFF_OVER_QUERY 0x0206
97 #define IA_CMD_TYPE_INIT_CPY_IC_BSF_BUFF_OVER_QUERY 0x0207
98 #define IA_CMD_TYPE_INIT_CPY_IL_BSF_BUFF_OVER_QUERY 0x0208
99 #define IA_CMD_TYPE_INIT_CPY_IG_BSF_BUFF_OVER_QUERY 0x0209
100 #define IA_CMD_TYPE_INIT_CPY_IN_BSF_BUFF_OVER_QUERY 0x020A
101 #define IA_CMD_TYPE_INIT_SET_BUFF_PTR 0x020B
102 
103 /* IA_API_CMD_EXECUTE indices */
104 #define IA_CMD_TYPE_DO_EXECUTE 0x0100
105 #define IA_CMD_TYPE_DONE_QUERY 0x0200
106 
107 #endif
108