1 /* 2 * Copyright (c) 2020 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef XTS_HITS_SAMGR_API_EXPECT_H 17 #define XTS_HITS_SAMGR_API_EXPECT_H 18 19 constexpr int SAMGR_API_GROUP_NUM = 8; 20 constexpr int SAMGR_API_CALL_NUM = 6; 21 #define GET_INIT_INDEX(G, pri) ((G)*(SAMGR_API_CALL_NUM)+(pri)) 22 23 using SamgrApiGroup = enum TagSamgrApiGroup { 24 CORE_INIT_E = 0, 25 SYS_SERVICE_INIT_E, 26 SYS_FEATURE_INIT_E, 27 APP_SERVICE_INIT_E, 28 SYSEX_SERVICE_INIT_E, 29 APP_FEATURE_INIT_E, 30 SYSEX_FEATURE_INIT, 31 SYS_RUN_E, 32 }; 33 34 using SamgrApiPri = enum TagSamgrApiPri { 35 API_PRI0 = 0, 36 API_PRI1, 37 API_PRI_DEFAULT, 38 API_PRI2, 39 API_PRI3, 40 API_PRI4, 41 API_PRI_MAX, 42 }; 43 44 #endif // XTS_HITS_SAMGR_API_EXPECT_H