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
23
void
handle_post_status
(
bool
status
,
bool
need_change);
24
void
handle_post_action
();
25
void
reset_post_end_work_status
();
26
void
handle_tda38741_work_around
();
27
void
power_status_monitor
();
28
bool
satmc_access
(uint8_t
sensor_num
);
29
void
set_satmc_status
(
bool
status
);
30
bool
get_satmc_status
();
31
bool
retimer_access
(uint8_t
sensor_num
);
32
bool
get_retimer_status
();
33
uint8_t
scan_retimer_addr
();
34
void
retimer_addr_loss
();
35
bool
e1s_access
(uint8_t
sensor_num
);
36
37
#endif
status
uint8_t status
Definition:
mctp_ctrl.h:1
sensor_num
uint8_t sensor_num
Definition:
storage_handler.h:6
handle_post_action
void handle_post_action()
Definition:
plat_power_status.c:129
handle_tda38741_work_around
void handle_tda38741_work_around()
Definition:
plat_power_status.c:147
set_satmc_status
void set_satmc_status(bool status)
Definition:
plat_power_status.c:241
get_retimer_status
bool get_retimer_status()
Definition:
plat_power_status.c:302
scan_retimer_addr
uint8_t scan_retimer_addr()
Definition:
plat_power_status.c:254
get_satmc_status
bool get_satmc_status()
Definition:
plat_power_status.c:236
handle_post_status
void handle_post_status(bool status, bool need_change)
Definition:
plat_power_status.c:134
power_status_monitor
void power_status_monitor()
Definition:
plat_power_status.c:222
reset_post_end_work_status
void reset_post_end_work_status()
Definition:
plat_power_status.c:35
retimer_access
bool retimer_access(uint8_t sensor_num)
Definition:
plat_sensor_table.c:566
retimer_addr_loss
void retimer_addr_loss()
Definition:
plat_power_status.c:250
e1s_access
bool e1s_access(uint8_t sensor_num)
Definition:
plat_sensor_table.c:571
satmc_access
bool satmc_access(uint8_t sensor_num)
Definition:
plat_power_status.c:231
meta-facebook
yv35-ji
src
platform
plat_power_status.h
Generated by
1.9.2