OpenBIC
OpenSource Bridge-IC
plat_pldm_sensor.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_PLDM_SENSOR_H
18#define PLAT_PLDM_SENSOR_H
19
20#include "pdr.h"
21
22#define ADDR_TMP75_INLET (0x92 >> 1)
23#define ADDR_TMP461AIRUNR (0x98 >> 1)
24#define ADDR_INA233 (0x8A >> 1)
25#define ADDR_VR_PVDDQ_AB (0xEC >> 1)
26#define ADDR_VR_P0V85_ASIC (0xEC >> 1)
27#define ADDR_VR_P0V8_ASIC (0xE4 >> 1)
28#define ADDR_VR_PVDDQ_CD (0xE4 >> 1)
29
30#define OFFSET_TMP75_TEMP 0x00
31#define OFFSET_TMP461_TEMP 0x00
32
33#define UPDATE_INTERVAL_1S 1
34#define UPDATE_INTERVAL_3S 3
35
36#define CXL_ID 0
37
38#define SENSOR_ID_CH0_DIMM_A_TEMP 0x0007
39#define SENSOR_ID_CH0_DIMM_B_TEMP 0x0008
40#define SENSOR_ID_CH1_DIMM_C_TEMP 0x0009
41#define SENSOR_ID_CH1_DIMM_D_TEMP 0x000A
42
50};
51
52int plat_pldm_sensor_get_sensor_count(int thread_id);
55
56#endif
int plat_pldm_sensor_get_sensor_count(int thread_id)
Definition: plat_pldm_sensor.c:9074
SENSOR_THREAD_LIST
Definition: plat_pldm_sensor.h:221
@ MAX_SENSOR_THREAD_ID
Definition: plat_pldm_sensor.h:225
@ VR_SENSOR_THREAD_ID
Definition: plat_pldm_sensor.h:223
void plat_pldm_sensor_get_pdr_numeric_sensor(int thread_id, int sensor_num, PDR_numeric_sensor *numeric_sensor_table)
Definition: plat_pldm_sensor.c:9097
PDR_numeric_sensor * numeric_sensor_table
Definition: pdr.c:16
PDR_numeric_sensor
Definition: pdr.h:115
uint8_t sensor_num
Definition: storage_handler.h:6
@ TMP_SENSOR_THREAD_ID
Definition: plat_pldm_sensor.h:44
@ DIMM_SENSOR_THREAD_ID
Definition: plat_pldm_sensor.h:48
@ INA233_SENSOR_THREAD_ID
Definition: plat_pldm_sensor.h:46
@ ADC_SENSOR_THREAD_ID
Definition: plat_pldm_sensor.h:45