OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include "libutil.h"
#include "ast_adc.h"
#include "sensor.h"
#include "hal_i2c.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_sensor_table.h"
#include "plat_hook.h"
#include <logging/log.h>
#include "mp2971.h"
#include "isl69259.h"
#include "raa228249.h"
#include "mp29816a.h"
#include "plat_pldm_sensor.h"
#include "plat_class.h"
#include "pmbus.h"
Classes | |
struct | vr_vout_user_settings |
Macros | |
#define | VR_PRE_READ_ARG(idx) |
#define | VR_VOUT_USER_SETTINGS_OFFSET 0x8000 |
#define | PLAT_VOUT_GET_SET_HANDLER(get_set, min_max) |
Functions | |
LOG_MODULE_REGISTER (plat_hook) | |
void * | vr_mutex_get (enum VR_INDEX_E vr_index) |
bool | pre_vr_read (sensor_cfg *cfg, void *args) |
bool | post_vr_read (sensor_cfg *cfg, void *args, int *reading) |
bool | is_mb_dc_on () |
void | vr_mutex_init (void) |
bool | vr_rail_name_get (uint8_t rail, uint8_t **name) |
bool | vr_status_name_get (uint8_t rail, uint8_t **name) |
struct vr_vout_user_settings | __attribute__ ((packed)) |
bool | vr_rail_enum_get (uint8_t *name, uint8_t *num) |
bool | vr_status_enum_get (uint8_t *name, uint8_t *num) |
bool | vr_vout_user_settings_get (void *user_settings) |
bool | vr_vout_user_settings_set (void *user_settings) |
void | user_settings_init (void) |
bool | plat_get_vr_status (uint8_t rail, uint8_t vr_status_rail, uint16_t *vr_status) |
bool | plat_clear_vr_status (uint8_t rail) |
bool | plat_get_vout_command (uint8_t rail, uint16_t *millivolt) |
bool | plat_set_vout_command (uint8_t rail, uint16_t *millivolt, bool is_default, bool is_perm) |
PLAT_VOUT_GET_SET_HANDLER (get, min) | |
PLAT_VOUT_GET_SET_HANDLER (get, max) | |
PLAT_VOUT_GET_SET_HANDLER (set, min) | |
PLAT_VOUT_GET_SET_HANDLER (set, max) | |
Variables | |
vr_pre_proc_arg | vr_pre_read_args [] |
mp2971_init_arg | mp2971_init_args [] |
isl69259_init_arg | isl69259_init_args [] |
vr_mapping_sensor | vr_rail_table [] |
vr_mapping_status | vr_status_table [] |
uint16_t | vout [VR_RAIL_E_MAX] |
struct vr_vout_user_settings | user_settings = { 0 } |
struct vr_vout_user_settings | default_settings = { 0 } |
#define PLAT_VOUT_GET_SET_HANDLER | ( | get_set, | |
min_max | |||
) |
#define VR_PRE_READ_ARG | ( | idx | ) |
#define VR_VOUT_USER_SETTINGS_OFFSET 0x8000 |
struct vr_vout_user_settings __attribute__ | ( | (packed) | ) |
bool is_mb_dc_on | ( | ) |
LOG_MODULE_REGISTER | ( | plat_hook | ) |
bool plat_clear_vr_status | ( | uint8_t | rail | ) |
bool plat_get_vout_command | ( | uint8_t | rail, |
uint16_t * | millivolt | ||
) |
bool plat_get_vr_status | ( | uint8_t | rail, |
uint8_t | vr_status_rail, | ||
uint16_t * | vr_status | ||
) |
bool plat_set_vout_command | ( | uint8_t | rail, |
uint16_t * | millivolt, | ||
bool | is_default, | ||
bool | is_perm | ||
) |
PLAT_VOUT_GET_SET_HANDLER | ( | get | , |
max | |||
) |
PLAT_VOUT_GET_SET_HANDLER | ( | get | , |
min | |||
) |
PLAT_VOUT_GET_SET_HANDLER | ( | set | , |
max | |||
) |
PLAT_VOUT_GET_SET_HANDLER | ( | set | , |
min | |||
) |
bool post_vr_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool pre_vr_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
void user_settings_init | ( | void | ) |
void * vr_mutex_get | ( | enum VR_INDEX_E | vr_index | ) |
void vr_mutex_init | ( | void | ) |
bool vr_rail_enum_get | ( | uint8_t * | name, |
uint8_t * | num | ||
) |
bool vr_rail_name_get | ( | uint8_t | rail, |
uint8_t ** | name | ||
) |
bool vr_status_enum_get | ( | uint8_t * | name, |
uint8_t * | num | ||
) |
bool vr_status_name_get | ( | uint8_t | rail, |
uint8_t ** | name | ||
) |
bool vr_vout_user_settings_get | ( | void * | user_settings | ) |
bool vr_vout_user_settings_set | ( | void * | user_settings | ) |
struct vr_vout_user_settings default_settings = { 0 } |
struct vr_vout_user_settings user_settings = { 0 } |
uint16_t vout[VR_RAIL_E_MAX] |
vr_pre_proc_arg vr_pre_read_args[] |
vr_mapping_sensor vr_rail_table[] |
vr_mapping_status vr_status_table[] |