|
OpenBIC
OpenSource Bridge-IC
|


Go to the source code of this file.
Classes | |
| struct | power_capping_mapping_sensor |
| struct | power_capping_user_settings_struct |
| struct | vr_vout_range_user_settings_struct |
| struct | bootstrap_user_settings_struct |
| struct | thermaltrip_user_settings_struct |
| struct | throttle_user_settings_struct |
| struct | ath_gpio_user_settings_struct |
| struct | vr_mapping_sensor |
| struct | vr_vout_user_settings |
| struct | vr_mapping_status |
| struct | _vr_pre_proc_arg |
| struct | temp_mapping_sensor |
| struct | power_sequence |
| struct | temp_threshold_user_settings_struct |
| struct | temp_threshold_mapping_sensor |
| struct | bootstrap_mapping_register |
| struct | ubc_vr_power_mapping_sensor |
Macros | |
| #define | VR_MAX_NUM 11 |
| #define | VR_MUTEX_LOCK_TIMEOUT_MS 1000 |
| #define | POWER_HISTORY_SIZE 10 |
| #define | POWER_CAPPING_HC_DEFAULT 1000 |
| #define | POWER_CAPPING_LC_DEFAULT 800 |
| #define | POWER_CAPPING_ENABLE 1 |
| #define | POWER_CAPPING_DISABLE 0 |
| #define | POWER_CAPPING_AVERAGE_TIME_MS_DEFAULT 50 |
| #define | POWER_CAPPING_HISTORY_SIZE 10 |
| #define | THERMALTRIP_BIT BIT(0) |
| #define | ATH_GPIO_3_BIT BIT(4) |
| #define | ATH_GPIO_4_BIT BIT(5) |
Functions | |
| bool | get_temp_index_threshold_type (uint8_t temp_threshold_type, uint8_t sensor_id, uint8_t *temp_index_threshold_type) |
| bool | plat_get_vout_range (uint8_t rail, uint16_t *vout_max_millivolt, uint16_t *vout_min_millivolt) |
| bool | plat_set_vout_range_min (uint8_t rail, uint16_t *millivolt) |
| bool | plat_set_vout_range_max (uint8_t rail, uint16_t *millivolt) |
| bool | temp_sensor_rail_name_get (uint8_t rail, uint8_t **name) |
| bool | temp_sensor_rail_enum_get (uint8_t *name, uint8_t *num) |
| bool | plat_get_temp_status (uint8_t rail, uint8_t *temp_status) |
| bool | plat_clear_temp_status (uint8_t rail) |
| bool | pre_vr_read (sensor_cfg *cfg, void *args) |
| bool | post_vr_read (sensor_cfg *cfg, void *args, int *const reading) |
| bool | perm_config_clear () |
| bool | is_mb_dc_on () |
| void * | vr_mutex_get (enum VR_INDEX_E vr_index) |
| void | vr_mutex_init (void) |
| bool | vr_rail_name_get (uint8_t rail, uint8_t **name) |
| bool | vr_rail_enum_get (uint8_t *name, uint8_t *num) |
| int | power_level_send_event (bool is_assert, int ubc1_current, int ubc2_current) |
| bool | post_ubc_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_all_sensor_read (sensor_cfg *cfg, void *args, int *reading) |
| void | set_uart_power_event_is_enable (bool is_enable) |
| void | pwr_level_mutex_init (void) |
| void | set_alert_level_to_default_or_user_setting (bool is_default, int32_t user_setting) |
| int | set_user_settings_alert_level_to_eeprom (void *user_settings, uint8_t data_length) |
| int | get_user_settings_alert_level_from_eeprom (void *user_settings, uint8_t data_length) |
| int | get_alert_level_info (bool *is_assert, int32_t *default_value, int32_t *setting_value) |
| bool | set_user_settings_soc_pcie_perst_to_eeprom (void *user_settings, uint8_t data_length) |
| bool | get_user_settings_soc_pcie_perst_from_eeprom (void *user_settings, uint8_t data_length) |
| bool | vr_rail_voltage_peak_get (uint8_t *name, int *peak_value) |
| bool | vr_rail_voltage_peak_clear (uint8_t rail_index) |
| bool | vr_vout_user_settings_get (void *user_settings) |
| void | user_settings_init (void) |
| bool | temp_index_threshold_type_name_get (uint8_t type, uint8_t **name) |
| bool | temp_threshold_type_enum_get (uint8_t *name, uint8_t *num) |
| bool | plat_get_temp_threshold (uint8_t temp_index_threshold_type, uint32_t *millidegree_celsius) |
| bool | plat_set_temp_threshold (uint8_t temp_index_threshold_type, uint32_t *millidegree_celsius, bool is_default, bool is_perm) |
| 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) |
| 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 | vr_status_name_get (uint8_t rail, uint8_t **name) |
| bool | vr_status_enum_get (uint8_t *name, uint8_t *num) |
| bool | vr_vout_default_settings_init (void) |
| bool | vr_vout_user_settings_init (void) |
| bool | get_user_settings_thermaltrip_from_eeprom (void *user_settings, uint8_t data_length) |
| bool | set_thermaltrip_user_settings (uint8_t *thermaltrip_status_reg, bool is_perm) |
| bool | get_user_settings_throttle_from_eeprom (void *user_settings, uint8_t data_length) |
| bool | set_throttle_user_settings (uint8_t *throttle_status_reg, bool is_perm) |
| bool | get_user_settings_ath_gpio_from_eeprom (void *user_settings, uint8_t data_length) |
| bool | set_ath_gpio_user_settings (uint8_t *ath_gpio_status_reg, bool is_perm) |
| bool | strap_name_get (uint8_t rail, uint8_t **name) |
| bool | strap_enum_get (uint8_t *name, uint8_t *num) |
| void | init_temp_alert_mode (void) |
| bool | find_bootstrap_by_rail (uint8_t rail, bootstrap_mapping_register *result) |
| bool | set_bootstrap_table_and_user_settings (uint8_t rail, uint8_t *change_setting_value, uint8_t drive_index_level, bool is_perm, bool is_default) |
| bool | get_bootstrap_change_drive_level (int rail, int *drive_level) |
| void | init_temp_limit (void) |
| bool | ubc_vr_rail_name_get (uint8_t rail, uint8_t **name) |
| bool | ubc_vr_rail_enum_get (uint8_t *name, uint8_t *num) |
| bool | get_average_power (uint8_t rail, uint32_t *milliwatt) |
| bool | voltage_command_setting_get (uint8_t rail, uint16_t *vout) |
| bool | power_capping_rail_name_get (uint8_t rail, uint8_t **name) |
| bool | power_capping_rail_enum_get (uint8_t *name, uint8_t *num) |
| bool | plat_set_power_capping_command (uint8_t rail, uint16_t *set_value, bool is_perm) |
| bool | plat_get_power_capping_command (uint8_t rail, uint16_t *set_value) |
| #define ATH_GPIO_3_BIT BIT(4) |
| #define ATH_GPIO_4_BIT BIT(5) |
| #define POWER_CAPPING_AVERAGE_TIME_MS_DEFAULT 50 |
| #define POWER_CAPPING_DISABLE 0 |
| #define POWER_CAPPING_ENABLE 1 |
| #define POWER_CAPPING_HC_DEFAULT 1000 |
| #define POWER_CAPPING_HISTORY_SIZE 10 |
| #define POWER_CAPPING_LC_DEFAULT 800 |
| #define POWER_HISTORY_SIZE 10 |
| #define THERMALTRIP_BIT BIT(0) |
| #define VR_MAX_NUM 11 |
| #define VR_MUTEX_LOCK_TIMEOUT_MS 1000 |
| typedef struct ath_gpio_user_settings_struct ath_gpio_user_settings_struct |
| typedef struct bootstrap_mapping_register bootstrap_mapping_register |
| typedef struct bootstrap_user_settings_struct bootstrap_user_settings_struct |
| typedef struct power_capping_mapping_sensor power_capping_mapping_sensor |
| typedef struct power_sequence power_sequence |
| typedef struct temp_mapping_sensor temp_mapping_sensor |
| typedef struct temp_threshold_mapping_sensor temp_threshold_mapping_sensor |
| typedef struct thermaltrip_user_settings_struct thermaltrip_user_settings_struct |
| typedef struct throttle_user_settings_struct throttle_user_settings_struct |
| typedef struct ubc_vr_power_mapping_sensor ubc_vr_power_mapping_sensor |
| typedef struct vr_mapping_sensor vr_mapping_sensor |
| typedef struct vr_mapping_status vr_mapping_status |
| typedef struct _vr_pre_proc_arg vr_pre_proc_arg |
| typedef struct vr_vout_user_settings vr_vout_user_settings |
| enum PLAT_STRAP_INDEX_E |
| enum PLAT_TEMP_INDEX_E |
| enum UBC_VR_RAIL_E |
| enum VR_INDEX_E |
| enum VR_RAIL_E |
| enum VR_STAUS_E |
| bool find_bootstrap_by_rail | ( | uint8_t | rail, |
| bootstrap_mapping_register * | result | ||
| ) |
| int get_alert_level_info | ( | bool * | is_assert, |
| int32_t * | default_value, | ||
| int32_t * | setting_value | ||
| ) |
| bool get_average_power | ( | uint8_t | rail, |
| uint32_t * | milliwatt | ||
| ) |
| bool get_bootstrap_change_drive_level | ( | int | rail, |
| int * | drive_level | ||
| ) |
| bool get_temp_index_threshold_type | ( | uint8_t | temp_threshold_type, |
| uint8_t | sensor_id, | ||
| uint8_t * | temp_index_threshold_type | ||
| ) |
| int get_user_settings_alert_level_from_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |
| bool get_user_settings_ath_gpio_from_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |

| bool get_user_settings_soc_pcie_perst_from_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |

| bool get_user_settings_thermaltrip_from_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |
| bool get_user_settings_throttle_from_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |
| void init_temp_alert_mode | ( | void | ) |

| void init_temp_limit | ( | void | ) |

| bool is_mb_dc_on | ( | ) |
| bool perm_config_clear | ( | ) |
| bool plat_clear_temp_status | ( | uint8_t | rail | ) |
| bool plat_clear_vr_status | ( | uint8_t | rail | ) |
| bool plat_get_power_capping_command | ( | uint8_t | rail, |
| uint16_t * | set_value | ||
| ) |
| bool plat_get_temp_status | ( | uint8_t | rail, |
| uint8_t * | temp_status | ||
| ) |
| bool plat_get_temp_threshold | ( | uint8_t | temp_index_threshold_type, |
| uint32_t * | millidegree_celsius | ||
| ) |
| bool plat_get_vout_command | ( | uint8_t | rail, |
| uint16_t * | millivolt | ||
| ) |
| bool plat_get_vout_range | ( | uint8_t | rail, |
| uint16_t * | vout_max_millivolt, | ||
| uint16_t * | vout_min_millivolt | ||
| ) |

| bool plat_get_vr_status | ( | uint8_t | rail, |
| uint8_t | vr_status_rail, | ||
| uint16_t * | vr_status | ||
| ) |
| bool plat_set_power_capping_command | ( | uint8_t | rail, |
| uint16_t * | set_value, | ||
| bool | is_perm | ||
| ) |

| bool plat_set_temp_threshold | ( | uint8_t | temp_index_threshold_type, |
| uint32_t * | millidegree_celsius, | ||
| bool | is_default, | ||
| bool | is_perm | ||
| ) |

| bool plat_set_vout_command | ( | uint8_t | rail, |
| uint16_t * | millivolt, | ||
| bool | is_default, | ||
| bool | is_perm | ||
| ) |
| bool plat_set_vout_range_max | ( | uint8_t | rail, |
| uint16_t * | millivolt | ||
| ) |
| bool plat_set_vout_range_min | ( | uint8_t | rail, |
| uint16_t * | millivolt | ||
| ) |
| bool post_all_sensor_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_ubc_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |
| bool post_vr_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int *const | reading | ||
| ) |
| bool power_capping_rail_enum_get | ( | uint8_t * | name, |
| uint8_t * | num | ||
| ) |
| bool power_capping_rail_name_get | ( | uint8_t | rail, |
| uint8_t ** | name | ||
| ) |
| int power_level_send_event | ( | bool | is_assert, |
| int | ubc1_current, | ||
| int | ubc2_current | ||
| ) |
| bool pre_vr_read | ( | sensor_cfg * | cfg, |
| void * | args | ||
| ) |
| void pwr_level_mutex_init | ( | void | ) |
| void set_alert_level_to_default_or_user_setting | ( | bool | is_default, |
| int32_t | user_setting | ||
| ) |
| bool set_ath_gpio_user_settings | ( | uint8_t * | ath_gpio_status_reg, |
| bool | is_perm | ||
| ) |

| bool set_bootstrap_table_and_user_settings | ( | uint8_t | rail, |
| uint8_t * | change_setting_value, | ||
| uint8_t | drive_index_level, | ||
| bool | is_perm, | ||
| bool | is_default | ||
| ) |
| bool set_thermaltrip_user_settings | ( | uint8_t * | thermaltrip_status_reg, |
| bool | is_perm | ||
| ) |

| bool set_throttle_user_settings | ( | uint8_t * | throttle_status_reg, |
| bool | is_perm | ||
| ) |

| void set_uart_power_event_is_enable | ( | bool | is_enable | ) |
| int set_user_settings_alert_level_to_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |
| bool set_user_settings_soc_pcie_perst_to_eeprom | ( | void * | user_settings, |
| uint8_t | data_length | ||
| ) |

| bool strap_enum_get | ( | uint8_t * | name, |
| uint8_t * | num | ||
| ) |
| bool strap_name_get | ( | uint8_t | rail, |
| uint8_t ** | name | ||
| ) |
| bool temp_index_threshold_type_name_get | ( | uint8_t | type, |
| uint8_t ** | name | ||
| ) |
| bool temp_sensor_rail_enum_get | ( | uint8_t * | name, |
| uint8_t * | num | ||
| ) |
| bool temp_sensor_rail_name_get | ( | uint8_t | rail, |
| uint8_t ** | name | ||
| ) |
| bool temp_threshold_type_enum_get | ( | uint8_t * | name, |
| uint8_t * | num | ||
| ) |
| bool ubc_vr_rail_enum_get | ( | uint8_t * | name, |
| uint8_t * | num | ||
| ) |
| bool ubc_vr_rail_name_get | ( | uint8_t | rail, |
| uint8_t ** | name | ||
| ) |
| void user_settings_init | ( | void | ) |
| bool voltage_command_setting_get | ( | uint8_t | rail, |
| uint16_t * | vout | ||
| ) |
| 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_rail_voltage_peak_clear | ( | uint8_t | rail_index | ) |
| bool vr_rail_voltage_peak_get | ( | uint8_t * | name, |
| int * | peak_value | ||
| ) |
| 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_default_settings_init | ( | void | ) |
| bool vr_vout_user_settings_get | ( | void * | user_settings | ) |
| bool vr_vout_user_settings_init | ( | void | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |