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
38};
39
40typedef enum {
49
50typedef enum {
57
58typedef enum {
64
65typedef enum {
70
71typedef enum {
78
79typedef enum {
84
86uint8_t get_vr_type();
87uint8_t get_ubc_type();
88uint8_t get_board_stage();
89uint8_t get_board_type();
90uint8_t get_tmp_type();
91bool plat_read_cpld(uint8_t offset, uint8_t *data);
92
93#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
GT_FIRMWARE_COMPONENT
Definition: plat_class.h:62
@ GT_COMPNT_PEX2
Definition: plat_class.h:68
@ GT_COMPNT_VR1
Definition: plat_class.h:64
@ GT_COMPNT_CPLD
Definition: plat_class.h:70
@ GT_COMPNT_NIC3
Definition: plat_class.h:74
@ GT_COMPNT_NIC2
Definition: plat_class.h:73
@ GT_COMPNT_NIC1
Definition: plat_class.h:72
@ GT_COMPNT_PEX3
Definition: plat_class.h:69
@ GT_COMPNT_NIC4
Definition: plat_class.h:75
@ GT_COMPNT_NIC7
Definition: plat_class.h:78
@ GT_COMPNT_NIC5
Definition: plat_class.h:76
@ GT_COMPNT_MAX
Definition: plat_class.h:79
@ GT_COMPNT_PEX1
Definition: plat_class.h:67
@ GT_COMPNT_VR0
Definition: plat_class.h:63
@ GT_COMPNT_BIC
Definition: plat_class.h:65
@ GT_COMPNT_NIC6
Definition: plat_class.h:77
@ GT_COMPNT_PEX0
Definition: plat_class.h:66
@ GT_COMPNT_NIC0
Definition: plat_class.h:71
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:65
@ TMP_TYPE_UNKNOWN
Definition: plat_class.h:68
@ TMP_TMP432
Definition: plat_class.h:66
@ TMP_EMC1413
Definition: plat_class.h:67
uint8_t get_tmp_type()
Definition: plat_class.c:277
ag_board_type_t
Definition: plat_class.h:79
@ MINERVA_AEGIS_BD
Definition: plat_class.h:81
@ BOARD_TYPE_UNKNOWN
Definition: plat_class.h:82
@ MINERVA_EVB_BD
Definition: plat_class.h:80
ag_board_stage_t
Definition: plat_class.h:71
@ FAB1_EVT
Definition: plat_class.h:72
@ FAB2_DVT
Definition: plat_class.h:73
@ FAB4_MP
Definition: plat_class.h:75
@ FAB3_PVT
Definition: plat_class.h:74
bool plat_read_cpld(uint8_t offset, uint8_t *data)
Definition: plat_class.c:45
ag_ubc_type_t
Definition: plat_class.h:58
@ UBC_DELTA_U50SU4P180PMDAFC
Definition: plat_class.h:59
@ UBC_MPS_MPC12109
Definition: plat_class.h:61
@ UBC_FLEX_BMR313
Definition: plat_class.h:60
@ UBC_UNKNOWN
Definition: plat_class.h:62
uint8_t get_ubc_type()
Definition: plat_class.c:262
ag_vr_vendor_type_t
Definition: plat_class.h:40
@ MPS_UBC_AND_MPS_VR
Definition: plat_class.h:43
@ MPS_UBC_AND_RNS_VR
Definition: plat_class.h:44
@ FLEX_UBC_AND_MPS_VR
Definition: plat_class.h:45
@ FLEX_UBC_AND_RNS_VR
Definition: plat_class.h:46
@ DELTA_UBC_AND_MPS_VR
Definition: plat_class.h:41
@ DELTA_UBC_AND_RNS_VR
Definition: plat_class.h:42
@ VR_VENDOR_UNKNOWN
Definition: plat_class.h:47
uint8_t get_board_type()
Definition: plat_class.c:272
ag_vr_type_t
Definition: plat_class.h:50
@ VR_MPS_MP2971_MP29816A
Definition: plat_class.h:52
@ VR_RNS_ISL69260_RAA228238
Definition: plat_class.h:53
@ VR_RNS_ISL69260_RAA228249
Definition: plat_class.h:54
@ VR_MPS_MP2971_MP2891
Definition: plat_class.h:51
uint32_t offset
Definition: pldm_firmware_update.h:0