|
OpenBIC
OpenSource Bridge-IC
|
#include "plat_cpld.h"#include "libutil.h"#include "plat_i2c.h"#include "plat_util.h"#include "plat_gpio.h"#include "plat_log.h"#include "plat_hook.h"#include "plat_event.h"#include <logging/log.h>#include "plat_led.h"#include "plat_class.h"#include "plat_ioexp.h"#include "shell_plat_power_sequence.h"#include "kernel.h"
Classes | |
| struct | _vr_error_callback_info_ |
Macros | |
| #define | POLLING_CPLD_STACK_SIZE 2048 |
| #define | CPLD_POLLING_INTERVAL_MS 1000 |
| #define | CHECK_ALL_BITS 0xFF |
| #define | CHECK_BITS_8 0x80 |
| #define | CHECK_BITS_78 0xC0 |
| #define | CHECK_BITS_678 0xE0 |
| #define | CHECK_BITS_6 0x40 |
Typedefs | |
| typedef struct _vr_error_callback_info_ | vr_error_callback_info |
Variables | |
| struct k_thread | cpld_polling_thread |
| k_tid_t | cpld_polling_tid |
| cpld_info | cpld_info_table [] |
| int | power_info = 0 |
| bool | cpld_polling_alert_status = false |
| bool | cpld_polling_enable_flag = true |
| bool | ubc_enabled_delayed_status = false |
| #define CHECK_ALL_BITS 0xFF |
| #define CHECK_BITS_6 0x40 |
| #define CHECK_BITS_678 0xE0 |
| #define CHECK_BITS_78 0xC0 |
| #define CHECK_BITS_8 0x80 |
| #define CPLD_POLLING_INTERVAL_MS 1000 |
| #define POLLING_CPLD_STACK_SIZE 2048 |
| typedef struct _vr_error_callback_info_ vr_error_callback_info |
| void check_cpld_handler | ( | ) |

| void check_cpld_polling_alert_status | ( | void | ) |

| void check_ubc_delayed | ( | struct k_work * | work | ) |

| void check_ubc_delayed_timer_handler | ( | struct k_timer * | timer | ) |
| bool get_cpld_polling_enable_flag | ( | void | ) |
| void get_cpld_polling_power_info | ( | int * | reading | ) |
| struct k_timer * get_ubc_delaytimer | ( | ) |
| void give_all_vr_pm_alert_sem | ( | ) |
| void init_cpld_polling | ( | void | ) |

| bool is_ubc_enabled_delayed_enabled | ( | void | ) |
| K_THREAD_STACK_DEFINE | ( | cpld_polling_stack | , |
| POLLING_CPLD_STACK_SIZE | |||
| ) |
| K_TIMER_DEFINE | ( | check_ubc_delayed_timer | , |
| check_ubc_delayed_timer_handler | , | ||
| NULL | |||
| ) |
| K_TIMER_DEFINE | ( | ragular_cpld_polling_sem_timer | , |
| ragular_cpld_polling_sem_handler | , | ||
| NULL | |||
| ) |
| K_WORK_DEFINE | ( | check_ubc_delayed_work | , |
| check_ubc_delayed | |||
| ) |
| K_WORK_DELAYABLE_DEFINE | ( | check_cpld_work | , |
| check_cpld_handler | |||
| ) |
| LOG_MODULE_REGISTER | ( | plat_cpld | ) |
| bool plat_read_cpld | ( | uint8_t | offset, |
| uint8_t * | data, | ||
| uint8_t | len | ||
| ) |

| bool plat_write_cpld | ( | uint8_t | offset, |
| uint8_t * | data | ||
| ) |

| void poll_cpld_registers | ( | ) |

| void ragular_cpld_polling_sem_handler | ( | struct k_timer * | timer | ) |
| void reset_error_log_states | ( | uint8_t | err_type | ) |

| bool set_cpld_bit | ( | uint8_t | cpld_offset, |
| uint8_t | bit, | ||
| uint8_t | value | ||
| ) |

| void set_cpld_polling_enable_flag | ( | bool | status | ) |
| bool vr_error_callback | ( | cpld_info * | cpld_info, |
| uint8_t * | current_cpld_value | ||
| ) |

| cpld_info cpld_info_table[] |
| bool cpld_polling_alert_status = false |
| bool cpld_polling_enable_flag = true |
| struct k_thread cpld_polling_thread |
| k_tid_t cpld_polling_tid |
| int power_info = 0 |
| bool ubc_enabled_delayed_status = false |