|
OpenBIC
OpenSource Bridge-IC
|
#include "plat_class.h"#include <logging/log.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "hal_gpio.h"#include "hal_i2c.h"#include "libutil.h"#include "plat_gpio.h"#include "plat_i2c.h"#include "rg3mxxb12.h"#include "p3h284x.h"
Classes | |
| struct | ADC_INFO |
| struct | _1OU_CARD_MAPPING_TABLE |
Macros | |
| #define | NUMBER_OF_ADC_CHANNEL 16 |
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_system_class () |
| CARD_STATUS | get_1ou_status () |
| CARD_STATUS | get_2ou_status () |
| uint8_t | get_board_revision () |
| uint8_t | get_hsc_module () |
| uint16_t | get_i3c_hub_type () |
| uint16_t | get_exp_1ou_i3c_hub_type () |
| uint16_t | get_exp_2ou_i3c_hub_type () |
| bool | get_adc_voltage (int channel, float *voltage) |
| void | init_platform_config () |
| void | init_i3c_hub_type (void) |
Variables | |
| struct ADC_INFO | adc_info [NUMBER_OF_ADC_CHANNEL] |
| struct _1OU_CARD_MAPPING_TABLE | _1ou_card_mapping_table [] |
| #define NUMBER_OF_ADC_CHANNEL 16 |
| enum CONDITION |
| CARD_STATUS get_1ou_status | ( | ) |
| CARD_STATUS get_2ou_status | ( | ) |
| bool get_adc_voltage | ( | int | channel, |
| float * | voltage | ||
| ) |
| uint8_t get_board_revision | ( | ) |
| uint16_t get_exp_1ou_i3c_hub_type | ( | ) |
| uint16_t get_exp_2ou_i3c_hub_type | ( | ) |
| uint8_t get_hsc_module | ( | ) |
| uint16_t get_i3c_hub_type | ( | ) |
| uint8_t get_system_class | ( | ) |
| void init_i3c_hub_type | ( | void | ) |

| void init_platform_config | ( | ) |

| LOG_MODULE_REGISTER | ( | plat_class | ) |
| struct _1OU_CARD_MAPPING_TABLE _1ou_card_mapping_table[] |
| struct ADC_INFO adc_info[NUMBER_OF_ADC_CHANNEL] |