OpenBIC
OpenSource Bridge-IC
plat_thermal.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_THERMAL_H
18#define PLAT_THERMAL_H
19
20#include <stdint.h>
21
32};
33
34#define TEMP_STATUS_H_LIMIT BIT(4)
35#define TEMP_STATUS_L_LIMIT BIT(3)
36#define TEMP_STATUS_OPEN BIT(2)
37#define TEMP_LIMIT_STATUS (TEMP_STATUS_H_LIMIT | TEMP_STATUS_L_LIMIT)
38#define H_LIMIT_STATUS 0x35
39#define L_LIMIT_STATUS 0x36
40
41void init_thermal_polling(void);
44
45#endif
uint8_t get_thermal_status_val_for_log(uint8_t sensor_num)
Definition: plat_thermal.c:79
IRIS_TEMP_INDEX_E
Definition: plat_thermal.h:22
@ TEMP_STATUS_INDEX_MAX
Definition: plat_thermal.h:31
@ TEMP_STATUS_INDEX_ASIC_OWL_W
Definition: plat_thermal.h:25
@ TEMP_STATUS_INDEX_ASIC_HAMSA_LS
Definition: plat_thermal.h:30
@ TEMP_STATUS_INDEX_ASIC_MEDHA0_SENSOR0
Definition: plat_thermal.h:23
@ TEMP_STATUS_INDEX_ASIC_MEDHA0_SENSOR1
Definition: plat_thermal.h:24
@ TEMP_STATUS_INDEX_ASIC_HAMSA_CRM
Definition: plat_thermal.h:29
@ TEMP_STATUS_INDEX_ASIC_OWL_E
Definition: plat_thermal.h:26
@ TEMP_STATUS_INDEX_ASIC_MEDHA1_SENSOR1
Definition: plat_thermal.h:28
@ TEMP_STATUS_INDEX_ASIC_MEDHA1_SENSOR0
Definition: plat_thermal.h:27
uint8_t get_thermal_limit_status_val_for_log(uint8_t sensor_num)
Definition: plat_thermal.c:89
void init_thermal_polling(void)
Definition: plat_thermal.c:202
uint8_t sensor_num
Definition: storage_handler.h:6