OpenBIC
OpenSource Bridge-IC
plat_dimm.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_DIMM_H
18#define PLAT_DIMM_H
19
20#ifdef ENABLE_VISTARA
21
22enum DIMM_ID {
23 ASIC1_DIMM_ID_A,
24 ASIC1_DIMM_ID_B,
25 ASIC1_DIMM_ID_C,
26 ASIC1_DIMM_ID_D,
27 ASIC2_DIMM_ID_A,
28 ASIC2_DIMM_ID_B,
29 ASIC2_DIMM_ID_C,
30 ASIC2_DIMM_ID_D,
32 DIMM_ID_UNKNOWN = 0xff,
33};
34
38};
39
41 SENSOR_NUM_ASIC1_DIMM_A_TEMP = 0x000C,
42 SENSOR_NUM_ASIC1_DIMM_B_TEMP,
43 SENSOR_NUM_ASIC1_DIMM_C_TEMP,
44 SENSOR_NUM_ASIC1_DIMM_D_TEMP,
45 SENSOR_NUM_ASIC2_DIMM_A_TEMP,
46 SENSOR_NUM_ASIC2_DIMM_B_TEMP,
47 SENSOR_NUM_ASIC2_DIMM_C_TEMP,
48 SENSOR_NUM_ASIC2_DIMM_D_TEMP,
49};
50
51uint8_t sensor_num_map_dimm_id(uint8_t sensor_num);
52uint8_t get_dimm_present(uint8_t dimm_id);
53void create_init_ddr_slot_info_thread(void);
54
55#endif
56
57#endif
DIMM_ID
Definition: plat_pmic.h:40
uint8_t sensor_num
Definition: storage_handler.h:6
uint8_t sensor_num_map_dimm_id(uint8_t sensor_num)
Definition: plat_dimm.c:365
@ DIMM_ID_UNKNOWN
Definition: plat_dimm.h:50
uint8_t get_dimm_present(uint8_t dimm_id)
Definition: plat_dimm.c:589
NUMBER_DIMM_TEMP
Definition: plat_dimm.h:101
@ DIMM_ID_MAX
Definition: plat_dimm.h:144
DIMM_PRSNT_STATUS
Definition: plat_dimm.h:148
@ DIMM_PRSNT
Definition: plat_dimm.h:149
@ DIMM_NOT_PRSNT
Definition: plat_dimm.h:150