OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>
#include "hal_i2c.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_class.h"
#include "pmbus.h"
#include "plat_mctp.h"
#include "plat_sensor_table.h"
#include "power_status.h"
#include "plat_power_status.h"
#include "util_worker.h"
#include "logging/log.h"
Classes | |
struct | rt8848c_cfg_tune |
Macros | |
#define | CPLD_REG_E1S_PRSNT_STATE 0x12 |
#define | CPLD_REG_RETIMER_PRSNT_STATE 0x13 |
#define | PWR_STAT_MON_THREAD_STACK_SIZE 1024 |
Functions | |
LOG_MODULE_REGISTER (plat_power_status) | |
K_MUTEX_DEFINE (post_status_mutex) | |
void | reset_post_end_work_status () |
K_TIMER_DEFINE (send_cmd_timer, send_cmd_to_dev, NULL) | |
void | handle_post_work (struct k_work *work) |
K_WORK_DEFINE (handle_post_end_work, handle_post_work) | |
void | handle_post_action () |
void | handle_post_status (bool status, bool need_change) |
void | handle_tda38741_work_around () |
K_KERNEL_STACK_MEMBER (power_status_monitor_stack, PWR_STAT_MON_THREAD_STACK_SIZE) | |
void | power_status_monitor_handler (void *arug0, void *arug1, void *arug2) |
void | power_status_monitor () |
bool | satmc_access (uint8_t sensor_num) |
bool | get_satmc_status () |
void | set_satmc_status (bool status) |
void | retimer_addr_loss () |
uint8_t | scan_retimer_addr () |
bool | retimer_access (uint8_t sensor_num) |
bool | get_retimer_status () |
bool | e1s_access (uint8_t sensor_num) |
Variables | |
struct rt8848c_cfg_tune | rt8848c_cfg_tune [] |
struct k_thread | power_status_monitor_thread |
bool | retimer_addr_get = false |
#define CPLD_REG_E1S_PRSNT_STATE 0x12 |
#define CPLD_REG_RETIMER_PRSNT_STATE 0x13 |
#define PWR_STAT_MON_THREAD_STACK_SIZE 1024 |
bool e1s_access | ( | uint8_t | sensor_num | ) |
bool get_retimer_status | ( | ) |
bool get_satmc_status | ( | ) |
void handle_post_action | ( | ) |
void handle_post_status | ( | bool | status, |
bool | need_change | ||
) |
void handle_post_work | ( | struct k_work * | work | ) |
void handle_tda38741_work_around | ( | ) |
K_KERNEL_STACK_MEMBER | ( | power_status_monitor_stack | , |
PWR_STAT_MON_THREAD_STACK_SIZE | |||
) |
K_MUTEX_DEFINE | ( | post_status_mutex | ) |
K_TIMER_DEFINE | ( | send_cmd_timer | , |
send_cmd_to_dev | , | ||
NULL | |||
) |
K_WORK_DEFINE | ( | handle_post_end_work | , |
handle_post_work | |||
) |
LOG_MODULE_REGISTER | ( | plat_power_status | ) |
void power_status_monitor | ( | ) |
void power_status_monitor_handler | ( | void * | arug0, |
void * | arug1, | ||
void * | arug2 | ||
) |
void reset_post_end_work_status | ( | ) |
bool retimer_access | ( | uint8_t | sensor_num | ) |
void retimer_addr_loss | ( | ) |
bool satmc_access | ( | uint8_t | sensor_num | ) |
uint8_t scan_retimer_addr | ( | ) |
void set_satmc_status | ( | bool | status | ) |
struct k_thread power_status_monitor_thread |
bool retimer_addr_get = false |
struct rt8848c_cfg_tune rt8848c_cfg_tune[] |