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
20
enum
GT_FIRMWARE_COMPONENT
{
21
GT_COMPNT_VR0
,
22
GT_COMPNT_VR1
,
23
GT_COMPNT_BIC
,
24
GT_COMPNT_PEX0
,
25
GT_COMPNT_PEX1
,
26
GT_COMPNT_PEX2
,
27
GT_COMPNT_PEX3
,
28
GT_COMPNT_CPLD
,
29
GT_COMPNT_NIC0
,
30
GT_COMPNT_NIC1
,
31
GT_COMPNT_NIC2
,
32
GT_COMPNT_NIC3
,
33
GT_COMPNT_NIC4
,
34
GT_COMPNT_NIC5
,
35
GT_COMPNT_NIC6
,
36
GT_COMPNT_NIC7
,
37
GT_COMPNT_MAX
,
38
};
39
40
typedef
enum
{
41
DELTA_UBC_AND_MPS_VR
,
42
DELTA_UBC_AND_RNS_VR
,
43
MPS_UBC_AND_MPS_VR
,
44
MPS_UBC_AND_RNS_VR
,
45
FLEX_UBC_AND_MPS_VR
,
46
FLEX_UBC_AND_RNS_VR
,
47
VR_VENDOR_UNKNOWN
,
48
}
ag_vr_vendor_type_t
;
49
50
typedef
enum
{
51
VR_MPS_MP2971_MP2891
,
52
VR_MPS_MP2971_MP29816A
,
53
VR_RNS_ISL69260_RAA228238
,
54
VR_RNS_ISL69260_RAA228249
,
55
VR_UNKNOWN
,
56
}
ag_vr_type_t
;
57
58
typedef
enum
{
59
UBC_DELTA_U50SU4P180PMDAFC
,
60
UBC_FLEX_BMR313
,
61
UBC_MPS_MPC12109
,
62
UBC_UNKNOWN
,
63
}
ag_ubc_type_t
;
64
65
typedef
enum
{
66
TMP_TMP432
,
67
TMP_EMC1413
,
68
TMP_TYPE_UNKNOWN
,
69
}
ag_tmp_type_t
;
70
71
typedef
enum
{
72
FAB1_EVT
,
73
FAB2_DVT
,
74
FAB3_PVT
,
75
FAB4_MP
,
76
BOARD_STAGE_UNKNOWN
,
77
}
ag_board_stage_t
;
78
79
typedef
enum
{
80
MINERVA_EVB_BD
,
81
MINERVA_AEGIS_BD
,
82
BOARD_TYPE_UNKNOWN
,
83
}
ag_board_type_t
;
84
85
void
init_platform_config
();
86
uint8_t
get_vr_type
();
87
uint8_t
get_ubc_type
();
88
uint8_t
get_board_stage
();
89
uint8_t
get_board_type
();
90
uint8_t
get_tmp_type
();
91
bool
plat_read_cpld
(uint8_t
offset
, uint8_t *
data
);
92
93
#endif
BOARD_STAGE_UNKNOWN
@ BOARD_STAGE_UNKNOWN
Definition:
plat_class.h:36
get_board_stage
uint8_t get_board_stage()
Definition:
plat_class.c:40
VR_UNKNOWN
@ VR_UNKNOWN
Definition:
plat_class.h:95
init_platform_config
int init_platform_config()
Definition:
expansion_board.c:43
GT_FIRMWARE_COMPONENT
GT_FIRMWARE_COMPONENT
Definition:
plat_class.h:62
GT_COMPNT_PEX2
@ GT_COMPNT_PEX2
Definition:
plat_class.h:68
GT_COMPNT_VR1
@ GT_COMPNT_VR1
Definition:
plat_class.h:64
GT_COMPNT_CPLD
@ GT_COMPNT_CPLD
Definition:
plat_class.h:70
GT_COMPNT_NIC3
@ GT_COMPNT_NIC3
Definition:
plat_class.h:74
GT_COMPNT_NIC2
@ GT_COMPNT_NIC2
Definition:
plat_class.h:73
GT_COMPNT_NIC1
@ GT_COMPNT_NIC1
Definition:
plat_class.h:72
GT_COMPNT_PEX3
@ GT_COMPNT_PEX3
Definition:
plat_class.h:69
GT_COMPNT_NIC4
@ GT_COMPNT_NIC4
Definition:
plat_class.h:75
GT_COMPNT_NIC7
@ GT_COMPNT_NIC7
Definition:
plat_class.h:78
GT_COMPNT_NIC5
@ GT_COMPNT_NIC5
Definition:
plat_class.h:76
GT_COMPNT_MAX
@ GT_COMPNT_MAX
Definition:
plat_class.h:79
GT_COMPNT_PEX1
@ GT_COMPNT_PEX1
Definition:
plat_class.h:67
GT_COMPNT_VR0
@ GT_COMPNT_VR0
Definition:
plat_class.h:63
GT_COMPNT_BIC
@ GT_COMPNT_BIC
Definition:
plat_class.h:65
GT_COMPNT_NIC6
@ GT_COMPNT_NIC6
Definition:
plat_class.h:77
GT_COMPNT_PEX0
@ GT_COMPNT_PEX0
Definition:
plat_class.h:66
GT_COMPNT_NIC0
@ GT_COMPNT_NIC0
Definition:
plat_class.h:71
get_vr_type
uint8_t get_vr_type()
Definition:
plat_class.c:110
data
uint8_t data[]
Definition:
isl69259.c:2
ag_tmp_type_t
ag_tmp_type_t
Definition:
plat_class.h:65
TMP_TYPE_UNKNOWN
@ TMP_TYPE_UNKNOWN
Definition:
plat_class.h:68
TMP_TMP432
@ TMP_TMP432
Definition:
plat_class.h:66
TMP_EMC1413
@ TMP_EMC1413
Definition:
plat_class.h:67
get_tmp_type
uint8_t get_tmp_type()
Definition:
plat_class.c:277
ag_board_type_t
ag_board_type_t
Definition:
plat_class.h:79
MINERVA_AEGIS_BD
@ MINERVA_AEGIS_BD
Definition:
plat_class.h:81
BOARD_TYPE_UNKNOWN
@ BOARD_TYPE_UNKNOWN
Definition:
plat_class.h:82
MINERVA_EVB_BD
@ MINERVA_EVB_BD
Definition:
plat_class.h:80
ag_board_stage_t
ag_board_stage_t
Definition:
plat_class.h:71
FAB1_EVT
@ FAB1_EVT
Definition:
plat_class.h:72
FAB2_DVT
@ FAB2_DVT
Definition:
plat_class.h:73
FAB4_MP
@ FAB4_MP
Definition:
plat_class.h:75
FAB3_PVT
@ FAB3_PVT
Definition:
plat_class.h:74
plat_read_cpld
bool plat_read_cpld(uint8_t offset, uint8_t *data)
Definition:
plat_class.c:45
ag_ubc_type_t
ag_ubc_type_t
Definition:
plat_class.h:58
UBC_DELTA_U50SU4P180PMDAFC
@ UBC_DELTA_U50SU4P180PMDAFC
Definition:
plat_class.h:59
UBC_MPS_MPC12109
@ UBC_MPS_MPC12109
Definition:
plat_class.h:61
UBC_FLEX_BMR313
@ UBC_FLEX_BMR313
Definition:
plat_class.h:60
UBC_UNKNOWN
@ UBC_UNKNOWN
Definition:
plat_class.h:62
get_ubc_type
uint8_t get_ubc_type()
Definition:
plat_class.c:262
ag_vr_vendor_type_t
ag_vr_vendor_type_t
Definition:
plat_class.h:40
MPS_UBC_AND_MPS_VR
@ MPS_UBC_AND_MPS_VR
Definition:
plat_class.h:43
MPS_UBC_AND_RNS_VR
@ MPS_UBC_AND_RNS_VR
Definition:
plat_class.h:44
FLEX_UBC_AND_MPS_VR
@ FLEX_UBC_AND_MPS_VR
Definition:
plat_class.h:45
FLEX_UBC_AND_RNS_VR
@ FLEX_UBC_AND_RNS_VR
Definition:
plat_class.h:46
DELTA_UBC_AND_MPS_VR
@ DELTA_UBC_AND_MPS_VR
Definition:
plat_class.h:41
DELTA_UBC_AND_RNS_VR
@ DELTA_UBC_AND_RNS_VR
Definition:
plat_class.h:42
VR_VENDOR_UNKNOWN
@ VR_VENDOR_UNKNOWN
Definition:
plat_class.h:47
get_board_type
uint8_t get_board_type()
Definition:
plat_class.c:272
ag_vr_type_t
ag_vr_type_t
Definition:
plat_class.h:50
VR_MPS_MP2971_MP29816A
@ VR_MPS_MP2971_MP29816A
Definition:
plat_class.h:52
VR_RNS_ISL69260_RAA228238
@ VR_RNS_ISL69260_RAA228238
Definition:
plat_class.h:53
VR_RNS_ISL69260_RAA228249
@ VR_RNS_ISL69260_RAA228249
Definition:
plat_class.h:54
VR_MPS_MP2971_MP2891
@ VR_MPS_MP2971_MP2891
Definition:
plat_class.h:51
offset
uint32_t offset
Definition:
pldm_firmware_update.h:0
meta-facebook
minerva-ag
src
platform
plat_class.h
Generated by
1.9.2