LCOV - code coverage report
Current view: top level - legacy/ascend950/unified_platform/resource/connection/aicpu - ub_jetty_lite.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 13 13
Test Date: 2026-08-18 17:47:01 Functions: 100.0 % 5 5

            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              : 
      11              : #ifndef HCCLV2_UB_JETTY_ID_LITE_H
      12              : #define HCCLV2_UB_JETTY_ID_LITE_H
      13              : 
      14              : #include "hccl/base.h"
      15              : 
      16              : namespace Hccl {
      17              : 
      18              : struct UbJettyLiteId {
      19              :     u32 dieId_;
      20              :     u32 funcId_;
      21              :     u32 jettyId_;
      22              : 
      23           20 :     u32 GetDieId() const { return dieId_; }
      24              : 
      25            4 :     u32 GetFuncId() const { return funcId_; }
      26              : 
      27            4 :     u32 GetJettyId() const { return jettyId_; }
      28              : 
      29          148 :     UbJettyLiteId(u32 dieId, u32 funcId, u32 jettyId) : dieId_(dieId), funcId_(funcId), jettyId_(jettyId) {}
      30              : };
      31              : 
      32              : struct UbJettyLiteAttr {
      33              :     const u64 dbAddr_;
      34              :     const u64 sqVa_;
      35              :     const u32 sqDepth_;
      36              :     const u32 tpn_;
      37              :     const bool dwqeCacheLocked_;
      38              :     const u32 jfcPollMode_; // 0代表STARS POLL, 1代表软件Poll
      39              :     const u64 sqCiAddr_;    // 预留给 软件poll CQ 的Jetty使用
      40          130 :     UbJettyLiteAttr(
      41              :         u64 dbAddr, u64 sqVa, u32 sqDepth, u32 tpn, bool dwqeCacheLocked = false, u32 jfcPollMode = 0, u64 sqCiAddr = 0)
      42          130 :         : dbAddr_(dbAddr),
      43          130 :           sqVa_(sqVa),
      44          130 :           sqDepth_(sqDepth),
      45          130 :           tpn_(tpn),
      46          130 :           dwqeCacheLocked_(dwqeCacheLocked),
      47          130 :           jfcPollMode_(jfcPollMode),
      48          130 :           sqCiAddr_(sqCiAddr)
      49          130 :     {}
      50              : };
      51              : 
      52              : } // namespace Hccl
      53              : #endif
        

Generated by: LCOV version 2.0-1