|
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 <logging/log.h>
Classes | |
| struct | _vr_error_callback_info_ |
Macros | |
| #define | CPLD_ADDR (0x4C >> 1) |
| #define | I2C_BUS_CPLD I2C_BUS11 |
| #define | POLLING_CPLD_STACK_SIZE 2048 |
| #define | CPLD_POLLING_INTERVAL_MS 1000 |
| #define | CHECK_ALL_BITS 0xFF |
Typedefs | |
| typedef struct _vr_error_callback_info_ | vr_error_callback_info |
Functions | |
| 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 | check_cpld_handler () |
| K_WORK_DELAYABLE_DEFINE (check_cpld_work, check_cpld_handler) | |
| void | check_ubc_delayed_timer_handler (struct k_timer *timer) |
| K_TIMER_DEFINE (init_ubc_delayed_timer, check_ubc_delayed_timer_handler, NULL) | |
| void | check_ubc_delayed (struct k_work *work) |
| K_WORK_DEFINE (check_ubc_delayed_work, check_ubc_delayed) | |
| K_THREAD_STACK_DEFINE (cpld_polling_stack, POLLING_CPLD_STACK_SIZE) | |
| bool | vr_error_callback (cpld_info *cpld_info, uint8_t *current_cpld_value) |
| void | check_cpld_polling_alert_status (void) |
| void | set_cpld_polling_enable_flag (bool status) |
| bool | get_cpld_polling_enable_flag (void) |
| void | reset_error_log_states (uint8_t err_type) |
| void | poll_cpld_registers () |
| void | init_cpld_polling (void) |
Variables | |
| struct k_thread | cpld_polling_thread |
| k_tid_t | cpld_polling_tid |
| cpld_info | cpld_info_table [] |
| bool | cpld_polling_alert_status = false |
| bool | cpld_polling_enable_flag = true |
| bool | ubc_enabled_delayed_status = false |
| #define CHECK_ALL_BITS 0xFF |
| #define CPLD_ADDR (0x4C >> 1) |
| #define CPLD_POLLING_INTERVAL_MS 1000 |
| #define I2C_BUS_CPLD I2C_BUS11 |
| #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 init_cpld_polling | ( | void | ) |

| K_THREAD_STACK_DEFINE | ( | cpld_polling_stack | , |
| POLLING_CPLD_STACK_SIZE | |||
| ) |
| K_TIMER_DEFINE | ( | init_ubc_delayed_timer | , |
| check_ubc_delayed_timer_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 reset_error_log_states | ( | uint8_t | err_type | ) |

| 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 |
| bool ubc_enabled_delayed_status = false |