LCOV - code coverage report
Current view: top level - legacy/ascend950/common/types - dev_type.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 3 3
Test Date: 2026-08-18 17:47:01 Functions: 93.3 % 15 14

            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_DEV_TYPE_H
      12              : #define HCCLV2_DEV_TYPE_H
      13              : #include "../utils/enum_factory_legacy.h"
      14              : namespace Hccl {
      15              : 
      16              : // 对内芯片类型
      17         4374 : MAKE_ENUM(
      18              :     DevType, DEV_TYPE_910A, DEV_TYPE_V51_310_P3, DEV_TYPE_910A2, DEV_TYPE_V51_310_P1, DEV_TYPE_910A3, DEV_TYPE_950,
      19              :     DEV_TYPE_960, DEV_TYPE_NOSOC)
      20              : 
      21         2823 : MAKE_ENUM(
      22              :     HcclMainboardId, MAINBOARD_POD, MAINBOARD_A_K_SERVER, MAINBOARD_A_X_SERVER, MAINBOARD_PCIE_STD, MAINBOARD_RSV,
      23              :     MAINBOARD_EQUIPMENT, MAINBOARD_EVB, MAINBOARD_OTHERS);
      24              : 
      25            2 : inline std::string DevTypeToString(DevType type) { return type.Describe(); }
      26              : } // namespace Hccl
      27              : #endif // HCCLV2_DEV_TYPE_H
        

Generated by: LCOV version 2.0-1