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
24typedef enum {
31
32typedef struct {
33 uint8_t slot;
34 uint8_t eid;
35 uint16_t pid;
37
39
40typedef enum {
45
47void init_tmp_type();
48uint8_t get_vr_type();
49uint8_t get_tmp_type();
50void plat_i3c_set_pid();
51uint8_t get_slot_id();
52
53#endif
@ 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
@ TMP_TYPE_UNKNOWN
Definition: plat_class.h:57
@ TMP_TMP432
Definition: plat_class.h:55
@ TMP_EMC1413
Definition: plat_class.h:56
uint8_t get_tmp_type()
Definition: plat_class.c:344
@ VR_MPS_MP2971_MP29816A
Definition: plat_class.h:38
@ VR_RNS_ISL69260_RAA228238
Definition: plat_class.h:39
@ VR_RNS_ISL69260_RAA228249
Definition: plat_class.h:40
@ VR_MPS_MP2971_MP2891
Definition: plat_class.h:37
si_vr_type_t
Definition: plat_class.h:24
si_tmp_type_t
Definition: plat_class.h:40
void plat_i3c_set_pid()
Definition: plat_mctp.c:195
uint8_t get_slot_id()
Definition: plat_class.c:119
const mmc_info_t mmc_info_table[MAX_SLOT]
Definition: plat_class.c:41
#define MAX_SLOT
Definition: plat_class.h:20
void init_tmp_type()
Definition: plat_class.c:303
Definition: plat_class.h:32
uint8_t eid
Definition: plat_class.h:34
uint8_t slot
Definition: plat_class.h:33
uint16_t pid
Definition: plat_class.h:35