LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_device/ccu_comp/ccu_channel/ccu_channel_ctx_v1 - ccu_wqebb_mgr_v1.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-08-18 17:47:01 Functions: 100.0 % 3 3

            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 CCU_WQEBB_MGR_V1_H
      12              : #define CCU_WQEBB_MGR_V1_H
      13              : 
      14              : #include "ccu_wqebb_mgr.h"
      15              : 
      16              : #include <memory>
      17              : 
      18              : #include "ccu_res_allocator.h"
      19              : 
      20              : namespace hcomm {
      21              : 
      22              : class CcuWqeBBMgrV1 : public CcuWqeBBMgr {
      23              : public:
      24          170 :     CcuWqeBBMgrV1(const int32_t devLogicId, const uint8_t dieId) : CcuWqeBBMgr(devLogicId, dieId) {}
      25              :     CcuWqeBBMgrV1() = default;
      26          340 :     ~CcuWqeBBMgrV1() override final = default;
      27              : 
      28              :     HcclResult Init() override final;
      29              :     HcclResult Alloc(const WqeBBReq& wqeBBReq, ResInfo& wqeBBInfo) override final;
      30              :     HcclResult Release(const ResInfo& wqeBBInfo) override final;
      31              : 
      32              : private:
      33              :     std::unique_ptr<CcuResIdAllocator> idAllocator_{nullptr};
      34              : };
      35              : 
      36              : }; // namespace hcomm
      37              : 
      38              : #endif
        

Generated by: LCOV version 2.0-1