|
OpenBIC
OpenSource Bridge-IC
|
#include "plat_class.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include "rg3mxxb12.h"#include "p3h284x.h"#include "hal_gpio.h"#include "hal_i2c.h"#include "libutil.h"#include "plat_gpio.h"#include "plat_i2c.h"#include "plat_sensor_table.h"#include "hal_i3c.h"#include "plat_mctp.h"#include <logging/log.h>
Classes | |
| struct | ADC_INFO |
| struct | _SLOT_EID_MAPPING_TABLE |
Macros | |
| #define | BOARD_REVISION_PRSNT_BITS 0x07 |
Enumerations | |
| enum | ADC_REF_VOL_SELECTION { REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 , REF_VOL_2_5V = 0x0 , REF_VOL_1_2V = 0x40 } |
| enum | CONDITION { LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 , LOWER = 0x0 , HIGHER = 0x01 , RANGE = 0x02 } |
Functions | |
| LOG_MODULE_REGISTER (plat_class) | |
| uint8_t | get_slot_eid () |
| uint8_t | get_slot_id () |
| uint16_t | get_i3c_hub_type () |
| bool | pal_get_slot_pid (uint16_t *pid) |
| bool | get_blade_config (uint8_t *blade_config) |
| bool | get_board_rev (uint8_t *board_rev) |
| bool | get_adc_voltage (int channel, float *voltage) |
| void | i3c_rst_cb (const struct device *dev) |
| void | init_platform_config () |
| uint8_t | get_retimer_type () |
| void | init_retimer_type () |
| void | init_i3c_hub_type (void) |
Variables | |
| struct ADC_INFO | adc_info [NUMBER_OF_ADC_CHANNEL] |
| struct _SLOT_EID_MAPPING_TABLE | _slot_eid_mapping_table [] |
| uint8_t | slot_eid = 0 |
| uint8_t | slot_id = 0 |
| uint16_t | slot_pid = 0 |
| #define BOARD_REVISION_PRSNT_BITS 0x07 |
| enum CONDITION |
| bool get_adc_voltage | ( | int | channel, |
| float * | voltage | ||
| ) |
| bool get_blade_config | ( | uint8_t * | blade_config | ) |

| bool get_board_rev | ( | uint8_t * | board_rev | ) |

| uint16_t get_i3c_hub_type | ( | ) |
| uint8_t get_retimer_type | ( | ) |
| uint8_t get_slot_eid | ( | ) |
| uint8_t get_slot_id | ( | ) |
| void i3c_rst_cb | ( | const struct device * | dev | ) |

| void init_i3c_hub_type | ( | void | ) |

| void init_platform_config | ( | ) |

| void init_retimer_type | ( | ) |

| LOG_MODULE_REGISTER | ( | plat_class | ) |
| bool pal_get_slot_pid | ( | uint16_t * | pid | ) |
| struct _SLOT_EID_MAPPING_TABLE _slot_eid_mapping_table[] |
| struct ADC_INFO adc_info[NUMBER_OF_ADC_CHANNEL] |
| uint8_t slot_eid = 0 |
| uint8_t slot_id = 0 |
| uint16_t slot_pid = 0 |