Line data Source code
1 : /**
2 : * Copyright (c) 2026 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 :
11 : #ifndef UB_RTP_ENDPOINT_H
12 : #define UB_RTP_ENDPOINT_H
13 :
14 : #include "uboe_ub_rtp_endpoint_helper.h"
15 :
16 : namespace hcomm {
17 : /**
18 : * @note 职责:AICPU通信引擎+UB_RTP协议的通信设备Endpoint,管理通信设备上下文,以及设备上的注册内存。
19 : * UB_RTP的Init直接使用EID地址(不做IP→EID转换),rdmaHandle通过EID直接获取。
20 : */
21 : class UbRtpEndpoint : public UboeUbRtpEndpointHelper {
22 : public:
23 : explicit UbRtpEndpoint(const EndpointDesc& endpointDesc);
24 4 : ~UbRtpEndpoint() = default;
25 :
26 : HcclResult Init() override;
27 : };
28 :
29 : } // namespace hcomm
30 :
31 : #endif // UB_RTP_ENDPOINT_H
|