OpenBIC
OpenSource Bridge-IC
plat_power_seq.c File Reference
#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"
Include dependency graph for plat_power_seq.c:

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
 

Function Documentation

◆ abort_power_thread()

void abort_power_thread ( )

◆ check_power_disable()

int check_power_disable ( uint8_t  control_stage)
Here is the call graph for this function:

◆ check_power_enable()

int check_power_enable ( uint8_t  control_stage)
Here is the call graph for this function:

◆ check_power_status()

int check_power_status ( uint8_t  power_status,
uint8_t  power_seq 
)
Here is the call graph for this function:

◆ control_power_sequence()

void control_power_sequence ( )
Here is the call graph for this function:

◆ disable_power()

int disable_power ( uint8_t  control_stage)
Here is the call graph for this function:

◆ enable_power()

int enable_power ( uint8_t  control_stage)
Here is the call graph for this function:

◆ execute_power_off_sequence()

void execute_power_off_sequence ( )
Here is the call graph for this function:

◆ execute_power_on_sequence()

void execute_power_on_sequence ( )
Here is the call graph for this function:

◆ init_power_thread()

void init_power_thread ( uint8_t  power_status)
Here is the call graph for this function:

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( power_thread_stack  ,
POWER_SEQ_HANDLER_STACK_SIZE   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_power_seq  )

◆ power_off_handler()

int power_off_handler ( uint8_t  control_stage)
Here is the call graph for this function:

◆ power_on_handler()

int power_on_handler ( uint8_t  control_stage)
Here is the call graph for this function:

◆ set_MB_DC_status()

void set_MB_DC_status ( uint8_t  gpio_num)

Variable Documentation

◆ power_thread_handler

struct k_thread power_thread_handler

◆ power_tid

k_tid_t power_tid = NULL