-- Copyright (c) 2024 Huawei Technologies Co., Ltd.
-- openUBMC is licensed under Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
-- EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
-- MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
-- See the Mulan PSL v2 for more details.


return {
    LOG_LEVEL = {
        ERROR = 1,
        INFO = 2,
        DEBUG = 3,
        NOTICE = 4
    },
    LOCK_TYPE = {
        LOCK = 1,
        UNLOCK = 0
    },
    LOCK_RESULT_CODE = {
        SUCCESS = 0,
        INVALID_PARAMETER = 1,
        UNLOCKED_ERROR = 2,
        REQUESTOR_MISMATCHED_ERROR = 3,
        CHIP_MISMATCHED_ERROR = 4,
        CHANNEL_MISMATCED_ERROR = 5
    },
    PSU_CHIP_OBJECT = {
        BLOCKIO = 'bmc.kepler.Chip.BlockIO',
        CHIP = 'bmc.kepler.Chip'
    },
    LOCK_PROPERTY = {
        RETRY_COUNT = 60,
        LOCK_TIME = 600 -- 默认加锁时间为10分钟
    },
    SLEEP_MODE = {
        Normal = 0,
        DeepSleep = 1,
        NORMAL_STR = 'Normal',
        DEEP_SLEEP_STR = 'DeepSleep'
    },
    SLEEP_MODE_NUM = {
        [0] = 'Normal',
        [1] = 'DeepSleep'
    },
    SOFTWARE_TYPE = {
        CABINET = 6
    },
    SLEEP_MODE_RELATED_ERROR = {
        ACTION_NOT_SUPPORTED = 'ACTION_NOT_SUPPORTED',
        OPERATION_FAILED = 'OPERATION_FAILED',
        PROPERTY_VALUE_OUT_OF_RANGE = 'PROPERTY_VALUE_OUT_OF_RANGE'
    },
    MIN_NUM_OF_PSU_FOR_POWER_SUPPLY = 2,
    POWER_SUPPLY_INFO_TYPE = {
        SET_GET_POWER_SUPPLY_DEEP_SLEEP_ENABLED_STATUS = 24
    },
    POWER_MODEL = {
        FP1600 = '03027YAT'
    }
}