Line data Source code
1 : /**
2 : * Copyright (c) 2025 Huawei Technologies Co., Ltd.
3 : * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
4 : * CANN Open Software License Agreement Version 2.0 (the "License").
5 : * Please refer to the License for details. You may not use this file except in compliance with the License.
6 : * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
7 : * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 : * See LICENSE in the root of the software repository for the full text of the License.
9 : */
10 : #include "tsd.h"
11 :
12 1 : int32_t SendUpdateProfilingRspToTsd(
13 : const uint32_t deviceId, const uint32_t waitType, const uint32_t hostPid, const uint32_t vfId)
14 : {
15 1 : return 0;
16 : }
17 :
18 1 : int32_t CreateOrFindCustPid(
19 : const uint32_t deviceId, const uint32_t loadLibNum, const char* const loadLibName[], const uint32_t hostPid,
20 : const uint32_t vfId, const char* groupNameList, const uint32_t groupNameNum, int32_t* custProcPid, bool* firstStart)
21 : {
22 1 : return 0;
23 : }
24 :
25 1 : int32_t SetSubProcScheduleMode(
26 : const uint32_t deviceId, const uint32_t waitType, const uint32_t hostPid, const uint32_t vfId,
27 : const struct SubProcScheduleModeInfo* scheInfo)
28 : {
29 : (void)deviceId;
30 : (void)waitType;
31 : (void)hostPid;
32 : (void)vfId;
33 : (void)scheInfo;
34 1 : return 0;
35 : }
36 :
37 1 : int32_t ReportMsgToTsd(
38 : const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId,
39 : const char* const msgInfo)
40 : {
41 1 : return 0;
42 : }
43 :
44 1 : int32_t RegEventMsgCallBackFunc(const struct SubProcEventCallBackInfo* regInfo) { return 0; }
45 :
46 1 : void UnRegEventMsgCallBackFunc(const uint32_t eventType) { return; }
47 :
48 1 : int32_t TsdReportStartOrStopErrCode(
49 : const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId,
50 : const char* errCode, const uint32_t errLen)
51 : {
52 1 : return 0;
53 : }
54 :
55 1 : int32_t StartupResponse(
56 : const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
57 : {
58 1 : return 0;
59 : }
60 :
61 1 : int32_t WaitForShutDown(const uint32_t deviceId) { return 0; }
62 :
63 1 : int32_t TsdDestroy(const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
64 : {
65 1 : return 0;
66 : }
67 :
68 1 : int32_t StopWaitForCustAicpu() { return 0; }
69 :
70 1 : int32_t SubModuleProcessResponse(
71 : const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId,
72 : const uint32_t eventType)
73 : {
74 1 : return 0;
75 : }
76 :
77 1 : int32_t StartUpRspAndWaitProcess(
78 : const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
79 : {
80 1 : return 0;
81 : }
82 :
83 1 : int32_t SetDstTsdEventPid(const uint32_t dstPid) { return 0; }
84 :
85 1 : int32_t TsdWaitForShutdown(
86 : const uint32_t deviceId, const TsdWaitType waitType, const uint32_t hostPid, const uint32_t vfId)
87 : {
88 : (void)deviceId;
89 : (void)waitType;
90 : (void)hostPid;
91 : (void)vfId;
92 1 : return 0; // 返回 int32_t
93 : }
|