OpenBIC
OpenSource Bridge-IC
|
#include "plat_dimm.h"
#include <stdio.h>
#include <stdlib.h>
#include <zephyr.h>
#include <logging/log.h>
#include <errno.h>
#include "sensor.h"
#include "libutil.h"
#include "power_status.h"
#include "pmic.h"
#include "plat_class.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
Functions | |
LOG_MODULE_REGISTER (plat_dimm) | |
K_THREAD_STACK_DEFINE (get_dimm_info_stack, GET_DIMM_INFO_STACK_SIZE) | |
void | start_get_dimm_info_thread () |
void | init_i3c_dimm_data () |
void | init_i3c_dimm () |
void | get_dimm_info_handler () |
int | switch_i3c_dimm_mux (uint8_t i3c_mux_position, uint8_t dimm_mux_position) |
bool | is_i3c_mux_to_bic () |
bool | is_dimm_present (uint8_t dimm_id) |
bool | is_dimm_init () |
int | all_brocast_ccc (I3C_MSG *i3c_msg) |
int | get_pmic_error_raw_data (int dimm_index, uint8_t *data) |
void | get_pmic_power_raw_data (int dimm_index, uint8_t *data) |
void | get_spd_temp_raw_data (int dimm_index, uint8_t *data) |
uint8_t | sensor_num_map_dimm_id (uint8_t sensor_num) |
int | pal_get_pmic_pwr (uint8_t sensor_num, uint8_t *data) |
int | pal_get_spd_temp (uint8_t sensor_num, uint8_t *data) |
void | clear_unaccessible_dimm_data (uint8_t dimm_id) |
Variables | |
struct k_thread | get_dimm_info_thread |
k_tid_t | get_dimm_info_tid |
struct k_mutex | i3c_dimm_mux_mutex |
uint8_t | pmic_i3c_addr_list [MAX_COUNT_DIMM/2] |
uint8_t | spd_i3c_addr_list [MAX_COUNT_DIMM/2] |
dimm_info | dimm_data [MAX_COUNT_DIMM] |
int all_brocast_ccc | ( | I3C_MSG * | i3c_msg | ) |
void clear_unaccessible_dimm_data | ( | uint8_t | dimm_id | ) |
void get_dimm_info_handler | ( | ) |
int get_pmic_error_raw_data | ( | int | dimm_index, |
uint8_t * | data | ||
) |
void get_pmic_power_raw_data | ( | int | dimm_index, |
uint8_t * | data | ||
) |
void get_spd_temp_raw_data | ( | int | dimm_index, |
uint8_t * | data | ||
) |
void init_i3c_dimm | ( | ) |
void init_i3c_dimm_data | ( | ) |
bool is_dimm_init | ( | ) |
bool is_dimm_present | ( | uint8_t | dimm_id | ) |
bool is_i3c_mux_to_bic | ( | ) |
K_THREAD_STACK_DEFINE | ( | get_dimm_info_stack | , |
GET_DIMM_INFO_STACK_SIZE | |||
) |
LOG_MODULE_REGISTER | ( | plat_dimm | ) |
int pal_get_pmic_pwr | ( | uint8_t | sensor_num, |
uint8_t * | data | ||
) |
int pal_get_spd_temp | ( | uint8_t | sensor_num, |
uint8_t * | data | ||
) |
uint8_t sensor_num_map_dimm_id | ( | uint8_t | sensor_num | ) |
void start_get_dimm_info_thread | ( | ) |
int switch_i3c_dimm_mux | ( | uint8_t | i3c_mux_position, |
uint8_t | dimm_mux_position | ||
) |
dimm_info dimm_data[MAX_COUNT_DIMM] |
struct k_thread get_dimm_info_thread |
k_tid_t get_dimm_info_tid |
struct k_mutex i3c_dimm_mux_mutex |
uint8_t pmic_i3c_addr_list[MAX_COUNT_DIMM/2] |
uint8_t spd_i3c_addr_list[MAX_COUNT_DIMM/2] |