OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include "ipmi.h"
#include "ipmb.h"
#include "libipmi.h"
#include "libutil.h"
#include "expansion_board.h"
#include "plat_gpio.h"
#include "plat_sensor_table.h"
#include "plat_power_seq.h"
Functions | |
LOG_MODULE_REGISTER (plat_power_seq) | |
K_THREAD_STACK_DEFINE (power_thread_stack, POWER_SEQ_HANDLER_STACK_SIZE) | |
void | set_MB_DC_status (uint8_t gpio_num) |
void | control_power_sequence () |
void | abort_power_thread () |
void | init_power_thread (uint8_t power_status) |
void | execute_power_on_sequence () |
void | execute_power_off_sequence () |
int | power_on_handler (uint8_t control_stage) |
int | power_off_handler (uint8_t control_stage) |
int | enable_power (uint8_t control_stage) |
int | check_power_enable (uint8_t control_stage) |
int | disable_power (uint8_t control_stage) |
int | check_power_disable (uint8_t control_stage) |
int | check_power_status (uint8_t power_status, uint8_t power_seq) |
Variables | |
struct k_thread | power_thread_handler |
k_tid_t | power_tid = NULL |
void abort_power_thread | ( | ) |
int check_power_disable | ( | uint8_t | control_stage | ) |
int check_power_enable | ( | uint8_t | control_stage | ) |
int check_power_status | ( | uint8_t | power_status, |
uint8_t | power_seq | ||
) |
void control_power_sequence | ( | ) |
int disable_power | ( | uint8_t | control_stage | ) |
int enable_power | ( | uint8_t | control_stage | ) |
void execute_power_off_sequence | ( | ) |
void execute_power_on_sequence | ( | ) |
void init_power_thread | ( | uint8_t | power_status | ) |
K_THREAD_STACK_DEFINE | ( | power_thread_stack | , |
POWER_SEQ_HANDLER_STACK_SIZE | |||
) |
LOG_MODULE_REGISTER | ( | plat_power_seq | ) |
int power_off_handler | ( | uint8_t | control_stage | ) |
int power_on_handler | ( | uint8_t | control_stage | ) |
void set_MB_DC_status | ( | uint8_t | gpio_num | ) |
struct k_thread power_thread_handler |
k_tid_t power_tid = NULL |