/*
 * Copyright (c) 2018-2021 Ampere Computing LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#pragma once
#include <cstdint>

constexpr uint8_t responseFail = 0x01;

namespace ipmi
{
namespace ampere
{
constexpr uint8_t netFnAmpere = 0x3c;
} // namespace ampere
namespace general
{
constexpr uint8_t cmdEditBmcMacAdr = 0x01;
constexpr uint8_t cmdSyncRtcTime = 0xf9;
} // namespace general
} // namespace ipmi
