1 /* 2 * Copyright (C) 2022 Huawei Technologies Co., Ltd. 3 * Licensed under the Mulan PSL v2. 4 * You can use this software according to the terms and conditions of the Mulan PSL v2. 5 * You may obtain a copy of Mulan PSL v2 at: 6 * http://license.coscl.org.cn/MulanPSL2 7 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 8 * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 9 * PURPOSE. 10 * See the Mulan PSL v2 for more details. 11 */ 12 #ifndef BASE_DRV_NODE_H 13 #define BASE_DRV_NODE_H 14 #include <stdio.h> 15 #include "task_mgr.h" 16 17 #define TEE_MISC_DRIVER \ 18 { \ 19 0x5bb40be1, 0x6b49, 0x421c, \ 20 { \ 21 0x9d, 0xd5, 0x79, 0xf5, 0xcb, 0xde, 0x3f, 0xb3 \ 22 } \ 23 } 24 25 #define CRYPTOMGR \ 26 { \ 27 0x2427f879, 0x4655, 0x4367, \ 28 { \ 29 0x82, 0x31, 0xe5, 0x8e, 0x29, 0x45, 0xc9, 0xb8 \ 30 } \ 31 } 32 33 #define TEE_MISC_DRIVER_NAME "tee_misc_driver" 34 #define TEE_CRYPTO_DRIVER_NAME "crypto_mgr" 35 #define TEE_MISC_DRV_SIZE 15 36 struct base_driver_node { 37 struct tee_uuid uuid; 38 struct drv_mani_t mani; 39 struct drv_basic_info_t drv_basic_info; 40 }; 41 42 bool get_base_drv_flag(const char *drv_name, uint32_t drv_name_size); 43 #endif 44