OpenBIC
OpenSource Bridge-IC
plat_ipmi.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PLAT_IPMI_H
18#define PLAT_IPMI_H
19
20#include <stdbool.h>
21#include <stdint.h>
22
23#define IANA_SIZE 3
24#define BITS_PER_BYTE 8
25
29};
30
32 GPIO_CONF_SET_DIR = 0, // 0: input, 1: output
33 GPIO_CONF_SET_INT, // 0: disable, 1 : enable
34 GPIO_CONF_SET_TRG_TYPE, // 0: edge, 1: level
35 GPIO_CONF_SET_TRG_EDGE, // 0: fall, 1: rise
36 GPIO_CONF_SET_TRG_BOTH // 1: both edge
37};
38#endif
GPIO_CONFIG_SETTING_BIT
Definition: plat_ipmi.h:31
@ GPIO_CONF_SET_TRG_BOTH
Definition: plat_ipmi.h:36
@ GPIO_CONF_SET_TRG_EDGE
Definition: plat_ipmi.h:35
@ GPIO_CONF_SET_INT
Definition: plat_ipmi.h:33
@ GPIO_CONF_SET_DIR
Definition: plat_ipmi.h:32
@ GPIO_CONF_SET_TRG_TYPE
Definition: plat_ipmi.h:34
REQ_GET_CARD_TYPE
Definition: plat_ipmi.h:26
@ GET_1OU_CARD_TYPE
Definition: plat_ipmi.h:27
@ GET_2OU_CARD_TYPE
Definition: plat_ipmi.h:28