OpenBIC
OpenSource Bridge-IC
plat_class.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_CLASS_H
18#define PLAT_CLASS_H
19
20typedef enum {
29
30typedef enum {
37
38typedef enum {
44
45typedef enum {
50
51typedef enum {
58
59typedef enum {
64
66uint8_t get_vr_type();
67uint8_t get_ubc_type();
68uint8_t get_board_stage();
69uint8_t get_board_type();
70uint8_t get_tmp_type();
71bool plat_read_cpld(uint8_t offset, uint8_t *data);
72
73#endif
@ BOARD_STAGE_UNKNOWN
Definition: plat_class.h:36
uint8_t get_board_stage()
Definition: plat_class.c:40
@ VR_UNKNOWN
Definition: plat_class.h:95
int init_platform_config()
Definition: expansion_board.c:43
uint8_t get_vr_type()
Definition: plat_class.c:110
uint8_t data[]
Definition: isl69259.c:2
ag_tmp_type_t
Definition: plat_class.h:45
@ TMP_TYPE_UNKNOWN
Definition: plat_class.h:48
@ TMP_TMP432
Definition: plat_class.h:46
@ TMP_EMC1413
Definition: plat_class.h:47
uint8_t get_tmp_type()
Definition: plat_class.c:277
ag_board_type_t
Definition: plat_class.h:59
@ MINERVA_AEGIS_BD
Definition: plat_class.h:61
@ BOARD_TYPE_UNKNOWN
Definition: plat_class.h:62
@ MINERVA_EVB_BD
Definition: plat_class.h:60
ag_board_stage_t
Definition: plat_class.h:51
@ FAB1_EVT
Definition: plat_class.h:52
@ FAB2_DVT
Definition: plat_class.h:53
@ FAB4_MP
Definition: plat_class.h:55
@ FAB3_PVT
Definition: plat_class.h:54
bool plat_read_cpld(uint8_t offset, uint8_t *data)
Definition: plat_class.c:45
ag_ubc_type_t
Definition: plat_class.h:38
@ UBC_DELTA_U50SU4P180PMDAFC
Definition: plat_class.h:39
@ UBC_MPS_MPC12109
Definition: plat_class.h:41
@ UBC_FLEX_BMR313
Definition: plat_class.h:40
@ UBC_UNKNOWN
Definition: plat_class.h:42
uint8_t get_ubc_type()
Definition: plat_class.c:262
ag_vr_vendor_type_t
Definition: plat_class.h:20
@ MPS_UBC_AND_MPS_VR
Definition: plat_class.h:23
@ MPS_UBC_AND_RNS_VR
Definition: plat_class.h:24
@ FLEX_UBC_AND_MPS_VR
Definition: plat_class.h:25
@ FLEX_UBC_AND_RNS_VR
Definition: plat_class.h:26
@ DELTA_UBC_AND_MPS_VR
Definition: plat_class.h:21
@ DELTA_UBC_AND_RNS_VR
Definition: plat_class.h:22
@ VR_VENDOR_UNKNOWN
Definition: plat_class.h:27
uint8_t get_board_type()
Definition: plat_class.c:272
ag_vr_type_t
Definition: plat_class.h:30
@ VR_MPS_MP2971_MP29816A
Definition: plat_class.h:32
@ VR_RNS_ISL69260_RAA228238
Definition: plat_class.h:33
@ VR_RNS_ISL69260_RAA228249
Definition: plat_class.h:34
@ VR_MPS_MP2971_MP2891
Definition: plat_class.h:31
uint32_t offset
Definition: pldm_firmware_update.h:0