OpenBIC
OpenSource Bridge-IC
|
#include <zephyr.h>
#include <stdio.h>
#include <logging/log.h>
#include "libipmi.h"
#include "power_status.h"
#include "sensor.h"
#include "plat_m2.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_class.h"
#include "plat_power_seq.h"
#include "plat_util.h"
#include "plat_isr.h"
#include "plat_hwmon.h"
Macros | |
#define | INA231_ALERT_HANDLER_M2(DEV) |
#define | DEV_PRSNT_HANDLER(idx) |
#define | DEV_FAULT_HANDLER(idx) |
#define | DEV_3V3_FAULT_HANDLER(idx) |
Functions | |
uint8_t | ina230_init (sensor_cfg *cfg) |
LOG_MODULE_REGISTER (plat_isr) | |
void | dev_12v_fault_handler (void) |
void | pwrgd_p12v_aux_int_handler (void) |
void | power_en_int_handler (void) |
void | dev_rst (void) |
uint8_t | get_p12v_flt_status (uint8_t idx) |
uint8_t | check_12v_dev_pwrgd (void) |
void | aux_pwr_en_int_handler (void) |
void | rst_mb_n_int_handler (void) |
void | prsnt_int_handler (uint32_t idx, uint32_t arg1) |
void | irq_fault_sel (uint8_t idx, uint8_t type, uint8_t is_check) |
void | check_irq_fault (void) |
bool | plat_gpio_immediate_int_cb (uint8_t gpio_num) |
void | p12v_edge_fault_sel (void) |
DEV_PRSNT_HANDLER (0) | |
DEV_PRSNT_HANDLER (1) | |
DEV_PRSNT_HANDLER (2) | |
DEV_PRSNT_HANDLER (3) | |
DEV_FAULT_HANDLER (0) | |
DEV_FAULT_HANDLER (1) | |
DEV_FAULT_HANDLER (2) | |
DEV_FAULT_HANDLER (3) | |
DEV_3V3_FAULT_HANDLER (0) | |
DEV_3V3_FAULT_HANDLER (1) | |
DEV_3V3_FAULT_HANDLER (2) | |
DEV_3V3_FAULT_HANDLER (3) | |
INA231_ALERT_HANDLER_M2 (0) | |
INA231_ALERT_HANDLER_M2 (1) | |
INA231_ALERT_HANDLER_M2 (2) | |
INA231_ALERT_HANDLER_M2 (3) | |
#define DEV_3V3_FAULT_HANDLER | ( | idx | ) |
#define DEV_FAULT_HANDLER | ( | idx | ) |
#define DEV_PRSNT_HANDLER | ( | idx | ) |
#define INA231_ALERT_HANDLER_M2 | ( | DEV | ) |
void aux_pwr_en_int_handler | ( | void | ) |
uint8_t check_12v_dev_pwrgd | ( | void | ) |
void check_irq_fault | ( | void | ) |
void dev_12v_fault_handler | ( | void | ) |
DEV_3V3_FAULT_HANDLER | ( | 0 | ) |
DEV_3V3_FAULT_HANDLER | ( | 1 | ) |
DEV_3V3_FAULT_HANDLER | ( | 2 | ) |
DEV_3V3_FAULT_HANDLER | ( | 3 | ) |
DEV_FAULT_HANDLER | ( | 0 | ) |
DEV_FAULT_HANDLER | ( | 1 | ) |
DEV_FAULT_HANDLER | ( | 2 | ) |
DEV_FAULT_HANDLER | ( | 3 | ) |
DEV_PRSNT_HANDLER | ( | 0 | ) |
DEV_PRSNT_HANDLER | ( | 1 | ) |
DEV_PRSNT_HANDLER | ( | 2 | ) |
DEV_PRSNT_HANDLER | ( | 3 | ) |
void dev_rst | ( | void | ) |
uint8_t get_p12v_flt_status | ( | uint8_t | idx | ) |
uint8_t ina230_init | ( | sensor_cfg * | cfg | ) |
INA231_ALERT_HANDLER_M2 | ( | 0 | ) |
INA231_ALERT_HANDLER_M2 | ( | 1 | ) |
INA231_ALERT_HANDLER_M2 | ( | 2 | ) |
INA231_ALERT_HANDLER_M2 | ( | 3 | ) |
void irq_fault_sel | ( | uint8_t | idx, |
uint8_t | type, | ||
uint8_t | is_check | ||
) |
LOG_MODULE_REGISTER | ( | plat_isr | ) |
void p12v_edge_fault_sel | ( | void | ) |
bool plat_gpio_immediate_int_cb | ( | uint8_t | gpio_num | ) |
void power_en_int_handler | ( | void | ) |
void prsnt_int_handler | ( | uint32_t | idx, |
uint32_t | arg1 | ||
) |
void pwrgd_p12v_aux_int_handler | ( | void | ) |
void rst_mb_n_int_handler | ( | void | ) |