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
#define MAX_SLOT 4
21
#define FLASH_SLOT_ADDRESS 0x0FF000
22
#define FLASH_SECTOR 0x1000
23
24
typedef
enum
{
25
VR_MPS_MP2971_MP2891
,
26
VR_MPS_MP2971_MP29816A
,
27
VR_RNS_ISL69260_RAA228238
,
28
VR_RNS_ISL69260_RAA228249
,
29
VR_UNKNOWN
,
30
}
si_vr_type_t
;
31
32
typedef
struct
{
33
uint8_t
slot
;
34
uint8_t
eid
;
35
uint16_t
pid
;
36
}
mmc_info_t
;
37
38
extern
const
mmc_info_t
mmc_info_table
[
MAX_SLOT
];
39
40
typedef
enum
{
41
TMP_TMP432
,
42
TMP_EMC1413
,
43
TMP_TYPE_UNKNOWN
,
44
}
si_tmp_type_t
;
45
46
void
init_platform_config
();
47
void
init_tmp_type
();
48
uint8_t
get_vr_type
();
49
uint8_t
get_tmp_type
();
50
void
plat_i3c_set_pid
();
51
uint8_t
get_slot_id
();
52
53
#endif
VR_UNKNOWN
@ VR_UNKNOWN
Definition:
plat_class.h:95
init_platform_config
int init_platform_config()
Definition:
expansion_board.c:43
get_vr_type
uint8_t get_vr_type()
Definition:
plat_class.c:110
TMP_TYPE_UNKNOWN
@ TMP_TYPE_UNKNOWN
Definition:
plat_class.h:57
TMP_TMP432
@ TMP_TMP432
Definition:
plat_class.h:55
TMP_EMC1413
@ TMP_EMC1413
Definition:
plat_class.h:56
get_tmp_type
uint8_t get_tmp_type()
Definition:
plat_class.c:344
VR_MPS_MP2971_MP29816A
@ VR_MPS_MP2971_MP29816A
Definition:
plat_class.h:38
VR_RNS_ISL69260_RAA228238
@ VR_RNS_ISL69260_RAA228238
Definition:
plat_class.h:39
VR_RNS_ISL69260_RAA228249
@ VR_RNS_ISL69260_RAA228249
Definition:
plat_class.h:40
VR_MPS_MP2971_MP2891
@ VR_MPS_MP2971_MP2891
Definition:
plat_class.h:37
si_vr_type_t
si_vr_type_t
Definition:
plat_class.h:24
si_tmp_type_t
si_tmp_type_t
Definition:
plat_class.h:40
plat_i3c_set_pid
void plat_i3c_set_pid()
Definition:
plat_mctp.c:195
get_slot_id
uint8_t get_slot_id()
Definition:
plat_class.c:119
mmc_info_table
const mmc_info_t mmc_info_table[MAX_SLOT]
Definition:
plat_class.c:41
MAX_SLOT
#define MAX_SLOT
Definition:
plat_class.h:20
init_tmp_type
void init_tmp_type()
Definition:
plat_class.c:303
mmc_info_t
Definition:
plat_class.h:32
mmc_info_t::eid
uint8_t eid
Definition:
plat_class.h:34
mmc_info_t::slot
uint8_t slot
Definition:
plat_class.h:33
mmc_info_t::pid
uint16_t pid
Definition:
plat_class.h:35
meta-facebook
sb-si
src
platform
plat_class.h
Generated by
1.9.2