|
OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <logging/log.h>#include "libutil.h"#include "hal_i2c.h"#include "hal_gpio.h"#include "plat_gpio.h"#include "plat_i2c.h"#include "plat_class.h"#include "plat_sensor_table.h"#include "plat_pldm_monitor.h"
Macros | |
| #define | PRESENCE_CHECK_STACK_SIZE 1024 |
| #define | PRESENCE_CHECK_DELAY_MS 5000 |
Functions | |
| LOG_MODULE_REGISTER (plat_class) | |
| K_THREAD_STACK_DEFINE (presence_check_thread, PRESENCE_CHECK_STACK_SIZE) | |
| int | pcie_card_id_to_cxl_id (uint8_t pcie_card_id, uint8_t *cxl_id) |
| int | cxl_id_to_pcie_card_id (uint8_t cxl_id, uint8_t *pcie_card_id) |
| int | check_pcie_card_presence_status (uint8_t card_id, uint8_t *card_type) |
| void | check_pcie_card_type () |
| uint8_t | prsnt_status_to_card_type (uint8_t presence_status) |
| int | get_pcie_card_type (uint8_t card_id, uint8_t *card_type) |
| int | get_pcie_device_type (uint8_t card_id, uint8_t device_id, uint8_t *device_type) |
| bool | is_cxl_present () |
| uint8_t | get_board_revision () |
| int | get_pcie_card_power_status (uint8_t pcie_card_id) |
| int | init_platform_config () |
| void | set_reset_smb4_mux_pin () |
| void | presence_check_handler () |
| void | init_accl_presence_check_work () |
Variables | |
| struct k_thread | presence_check_thread_handler |
| k_tid_t | presence_check_tid |
| uint8_t | board_revision = REV_UNKNOWN |
| struct PCIE_CARD_INFO | pcie_card_info [] |
| #define PRESENCE_CHECK_DELAY_MS 5000 |
| #define PRESENCE_CHECK_STACK_SIZE 1024 |
| int check_pcie_card_presence_status | ( | uint8_t | card_id, |
| uint8_t * | card_type | ||
| ) |
| void check_pcie_card_type | ( | ) |

| int cxl_id_to_pcie_card_id | ( | uint8_t | cxl_id, |
| uint8_t * | pcie_card_id | ||
| ) |
| uint8_t get_board_revision | ( | ) |
| int get_pcie_card_power_status | ( | uint8_t | pcie_card_id | ) |

| int get_pcie_card_type | ( | uint8_t | card_id, |
| uint8_t * | card_type | ||
| ) |
| int get_pcie_device_type | ( | uint8_t | card_id, |
| uint8_t | device_id, | ||
| uint8_t * | device_type | ||
| ) |
| void init_accl_presence_check_work | ( | ) |

| int init_platform_config | ( | ) |

| bool is_cxl_present | ( | ) |
| K_THREAD_STACK_DEFINE | ( | presence_check_thread | , |
| PRESENCE_CHECK_STACK_SIZE | |||
| ) |
| LOG_MODULE_REGISTER | ( | plat_class | ) |
| int pcie_card_id_to_cxl_id | ( | uint8_t | pcie_card_id, |
| uint8_t * | cxl_id | ||
| ) |
| void presence_check_handler | ( | ) |
| uint8_t prsnt_status_to_card_type | ( | uint8_t | presence_status | ) |
| void set_reset_smb4_mux_pin | ( | ) |

| uint8_t board_revision = REV_UNKNOWN |
| struct PCIE_CARD_INFO pcie_card_info[] |
| struct k_thread presence_check_thread_handler |
| k_tid_t presence_check_tid |