• 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 #ifndef IXHEAACD_APICMD_STANDARDS_H
21 #define IXHEAACD_APICMD_STANDARDS_H
22 
23 /*****************************************************************************/
24 /* Ittiam standard API commands                                              */
25 /*****************************************************************************/
26 #define IA_API_CMD_GET_LIB_ID_STRINGS 0x0001
27 
28 #define IA_API_CMD_GET_API_SIZE 0x0002
29 #define IA_API_CMD_INIT 0x0003
30 
31 #define IA_API_CMD_SET_CONFIG_PARAM 0x0004
32 #define IA_API_CMD_GET_CONFIG_PARAM 0x0005
33 
34 #define IA_API_CMD_GET_MEMTABS_SIZE 0x0006
35 #define IA_API_CMD_SET_MEMTABS_PTR 0x0007
36 #define IA_API_CMD_GET_N_MEMTABS 0x0008
37 
38 #define IA_API_CMD_EXECUTE 0x0009
39 
40 #define IA_API_CMD_PUT_INPUT_QUERY 0x000A
41 #define IA_API_CMD_GET_CURIDX_INPUT_BUF 0x000B
42 #define IA_API_CMD_SET_INPUT_BYTES 0x000C
43 #define IA_API_CMD_GET_OUTPUT_BYTES 0x000D
44 #define IA_API_CMD_INPUT_OVER 0x000E
45 #define IA_API_CMD_INPUT_SEEK 0x000F
46 #define IA_API_CMD_RESET 0x0010
47 
48 #define IA_API_CMD_GET_MEM_INFO_SIZE 0x0011
49 #define IA_API_CMD_GET_MEM_INFO_ALIGNMENT 0x0012
50 #define IA_API_CMD_GET_MEM_INFO_TYPE 0x0013
51 #define IA_API_CMD_GET_MEM_INFO_PLACEMENT 0x0014
52 #define IA_API_CMD_GET_MEM_INFO_PRIORITY 0x0015
53 #define IA_API_CMD_SET_MEM_PTR 0x0016
54 #define IA_API_CMD_SET_MEM_INFO_SIZE 0x0017
55 #define IA_API_CMD_SET_MEM_PLACEMENT 0x0018
56 
57 #define IA_API_CMD_GET_N_TABLES 0x0019
58 #define IA_API_CMD_GET_TABLE_INFO_SIZE 0x001A
59 #define IA_API_CMD_GET_TABLE_INFO_ALIGNMENT 0x001B
60 #define IA_API_CMD_GET_TABLE_INFO_PRIORITY 0x001C
61 #define IA_API_CMD_SET_TABLE_PTR 0x001D
62 #define IA_API_CMD_GET_TABLE_PTR 0x001E
63 
64 /*****************************************************************************/
65 /* Ittiam standard API command indices                                       */
66 /*****************************************************************************/
67 /* IA_API_CMD_GET_LIB_ID_STRINGS indices */
68 #define IA_CMD_TYPE_LIB_NAME 0x0100
69 #define IA_CMD_TYPE_LIB_VERSION 0x0200
70 #define IA_CMD_TYPE_API_VERSION 0x0300
71 
72 /* IA_API_CMD_INIT indices */
73 #define IA_CMD_TYPE_INIT_API_PRE_CONFIG_PARAMS 0x0100
74 #define IA_CMD_TYPE_INIT_API_POST_CONFIG_PARAMS 0x0200
75 #define IA_CMD_TYPE_INIT_PROCESS 0x0300
76 #define IA_CMD_TYPE_INIT_DONE_QUERY 0x0400
77 #define IA_CMD_TYPE_GA_HDR 0x0800
78 #define IA_CMD_TYPE_FLUSH_MEM 0x1000
79 
80 /* IA_API_CMD_EXECUTE indices */
81 #define IA_CMD_TYPE_DO_EXECUTE 0x0100
82 #define IA_CMD_TYPE_DONE_QUERY 0x0200
83 
84 #endif /* IXHEAACD_APICMD_STANDARDS_H */
85