OpenBIC
OpenSource Bridge-IC
|
#include <logging/log.h>
#include <stdlib.h>
#include "sensor.h"
#include "hal_gpio.h"
#include "pldm.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
#include "plat_pldm_monitor.h"
#include "plat_isr.h"
#include "power_status.h"
Macros | |
#define | SET_POWER_STACK 1024 |
#define | PLAT_PLDM_POWER_ON_BUTTON_MSEC 1000 |
#define | PLAT_PLDM_RESET_BUTTON_MSEC 1000 |
#define | PLAT_PLDM_GRACEFUL_SHUTDOWN_BUTTON_MSEC 1000 |
#define | PLAT_PLDM_POWER_OFF_BUTTON_MSEC 6000 |
#define | PLAT_PLDM_POWER_CYCLE_INTERVAL_MSEC 5000 |
#define | PLAT_PLDM_SEQUENCE_CNT 3 |
Functions | |
LOG_MODULE_REGISTER (plat_pldm_monitor) | |
K_KERNEL_STACK_MEMBER (set_power_sequence_stack, SET_POWER_STACK) | |
void | plat_pldm_load_state_effecter_table (void) |
uint8_t | plat_pldm_set_state_effecter_state_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, struct pldm_state_effecter_info *info_p) |
uint8_t | plat_pldm_get_state_effecter_state_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, struct pldm_state_effecter_info *info_p) |
void | plat_pldm_do_host_button_sequence (void *power_sequence, void *pressing_interval, void *arvg1) |
void | plat_pldm_power_cycle (void *arg1, void *arg2, void *arg3) |
uint8_t | plat_pldm_host_button_sequence (const uint8_t *power_sequence, uint16_t pressing_interval) |
void | host_power_on () |
void | host_power_off () |
void | plat_pldm_set_effecter_state_host_power_control (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len) |
void | plat_pldm_set_effecter_state_reinit_i3c_hub (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len) |
Variables | |
k_tid_t | set_power_sequence_tid |
struct pldm_state_effecter_info | plat_state_effecter_table [] |
#define PLAT_PLDM_GRACEFUL_SHUTDOWN_BUTTON_MSEC 1000 |
#define PLAT_PLDM_POWER_CYCLE_INTERVAL_MSEC 5000 |
#define PLAT_PLDM_POWER_OFF_BUTTON_MSEC 6000 |
#define PLAT_PLDM_POWER_ON_BUTTON_MSEC 1000 |
#define PLAT_PLDM_RESET_BUTTON_MSEC 1000 |
#define PLAT_PLDM_SEQUENCE_CNT 3 |
#define SET_POWER_STACK 1024 |
void host_power_off | ( | ) |
void host_power_on | ( | ) |
K_KERNEL_STACK_MEMBER | ( | set_power_sequence_stack | , |
SET_POWER_STACK | |||
) |
LOG_MODULE_REGISTER | ( | plat_pldm_monitor | ) |
void plat_pldm_do_host_button_sequence | ( | void * | power_sequence, |
void * | pressing_interval, | ||
void * | arvg1 | ||
) |
uint8_t plat_pldm_get_state_effecter_state_handler | ( | const uint8_t * | buf, |
uint16_t | len, | ||
uint8_t * | resp, | ||
uint16_t * | resp_len, | ||
struct pldm_state_effecter_info * | info_p | ||
) |
uint8_t plat_pldm_host_button_sequence | ( | const uint8_t * | power_sequence, |
uint16_t | pressing_interval | ||
) |
void plat_pldm_load_state_effecter_table | ( | void | ) |
void plat_pldm_power_cycle | ( | void * | arg1, |
void * | arg2, | ||
void * | arg3 | ||
) |
void plat_pldm_set_effecter_state_host_power_control | ( | const uint8_t * | buf, |
uint16_t | len, | ||
uint8_t * | resp, | ||
uint16_t * | resp_len | ||
) |
void plat_pldm_set_effecter_state_reinit_i3c_hub | ( | const uint8_t * | buf, |
uint16_t | len, | ||
uint8_t * | resp, | ||
uint16_t * | resp_len | ||
) |
uint8_t plat_pldm_set_state_effecter_state_handler | ( | const uint8_t * | buf, |
uint16_t | len, | ||
uint8_t * | resp, | ||
uint16_t * | resp_len, | ||
struct pldm_state_effecter_info * | info_p | ||
) |
struct pldm_state_effecter_info plat_state_effecter_table[] |
k_tid_t set_power_sequence_tid |