OpenBIC
OpenSource Bridge-IC
plat_power_status.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_POWER_STATUS_H
18#define PLAT_POWER_STATUS_H
19
20#include <stdint.h>
21#include <stdlib.h>
22
23void handle_post_status(bool status, bool need_change);
28bool satmc_access(uint8_t sensor_num);
29void set_satmc_status(bool status);
30bool get_satmc_status();
31bool retimer_access(uint8_t sensor_num);
33uint8_t scan_retimer_addr();
35bool e1s_access(uint8_t sensor_num);
36
37#endif
uint8_t status
Definition: mctp_ctrl.h:1
uint8_t sensor_num
Definition: storage_handler.h:6
void handle_post_action()
Definition: plat_power_status.c:129
void handle_tda38741_work_around()
Definition: plat_power_status.c:147
void set_satmc_status(bool status)
Definition: plat_power_status.c:241
bool get_retimer_status()
Definition: plat_power_status.c:302
uint8_t scan_retimer_addr()
Definition: plat_power_status.c:254
bool get_satmc_status()
Definition: plat_power_status.c:236
void handle_post_status(bool status, bool need_change)
Definition: plat_power_status.c:134
void power_status_monitor()
Definition: plat_power_status.c:222
void reset_post_end_work_status()
Definition: plat_power_status.c:35
bool retimer_access(uint8_t sensor_num)
Definition: plat_sensor_table.c:566
void retimer_addr_loss()
Definition: plat_power_status.c:250
bool e1s_access(uint8_t sensor_num)
Definition: plat_sensor_table.c:571
bool satmc_access(uint8_t sensor_num)
Definition: plat_power_status.c:231