OpenBIC
OpenSource Bridge-IC
plat_hook.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PLAT_HOOK_H
18#define PLAT_HOOK_H
19
20#include "pmbus.h"
21#include "sensor.h"
22#include "plat_dev.h"
23#include "common_i2c_mux.h"
24
27 uint8_t card_id;
29
30typedef struct _accl_card_info {
31 uint8_t card_id;
34
35typedef struct _accl_card_sensor_info {
39
40/**************************************************************************************************
41 * INIT ARGS
42**************************************************************************************************/
52
53/**************************************************************************************************
54 * PRE-HOOK/POST-HOOK ARGS
55 **************************************************************************************************/
60extern uint8_t plat_monitor_table_arg[];
64
65/**************************************************************************************************
66 * PRE-HOOK/POST-HOOK FUNC
67 **************************************************************************************************/
68bool pre_ina233_read(sensor_cfg *cfg, void *args);
69bool post_ina233_read(sensor_cfg *cfg, void *args, int *reading);
70bool pre_pex89000_read(sensor_cfg *cfg, void *args);
71bool pre_xdpe15284_read(sensor_cfg *cfg, void *args);
72bool post_xdpe15284_read(sensor_cfg *cfg, void *args, int *reading);
73bool pre_accl_nvme_read(sensor_cfg *cfg, void *args);
74bool post_accl_nvme_read(sensor_cfg *cfg, void *args, int *reading);
75bool post_adm1272_read(sensor_cfg *cfg, void *args, int *reading);
76
77#endif
adm1272_init_arg adm1272_init_args[]
Definition: plat_hook.c:49
adc_asd_init_arg adc_asd_init_args[]
Definition: plat_hook.c:742
bool post_adm1272_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:980
bool pre_accl_nvme_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:959
mux_config pca9548_configs[]
Definition: plat_hook.c:648
pwr_monitor_pre_proc_arg pwr_monitor_pre_dvt_args[]
Definition: plat_hook.c:613
bool post_ina233_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:762
bool post_xdpe15284_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:884
mp2985_init_arg mp2985_init_args[]
Definition: plat_hook.c:598
struct _accl_card_sensor_info accl_card_sensor_info
bool pre_ina233_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:707
mux_config pca9546_configs[]
Definition: plat_hook.c:663
bool pre_pex89000_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:899
uint8_t plat_monitor_table_arg[]
Definition: plat_hook.c:700
accl_card_info accl_card_info_args[]
Definition: plat_hook.c:670
ina233_init_arg accl_pwr_monitor_ina233_init_args[]
Definition: plat_hook.c:95
mux_config tca9543_configs[]
Definition: plat_hook.c:603
pex89000_init_arg pex_sensor_init_args[]
Definition: plat_hook.c:533
sq52205_init_arg accl_pwr_monitor_sq52205_init_args[]
Definition: plat_hook.c:350
sq52205_init_arg u178_179_sq52205_init_args[]
Definition: plat_hook.c:538
struct _accl_card_info accl_card_info
struct _pwr_monitor_pre_proc_arg pwr_monitor_pre_proc_arg
pwr_monitor_pre_proc_arg pwr_monitor_args[]
Definition: plat_hook.c:628
bool post_accl_nvme_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1190
vr_page_cfg xdpe15284_page[]
Definition: plat_hook.c:643
ltc4286_init_arg ltc4286_init_args[]
Definition: plat_hook.c:90
ina230_init_arg u178_179_ina230_init_args[]
Definition: plat_hook.c:571
bool pre_xdpe15284_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:787
uint8_t reading[1]
Definition: pldm_monitor.h:3
Definition: plat_hook.h:30
uint8_t card_id
Definition: plat_hook.h:31
freya_info * freya_info_ptr
Definition: plat_hook.h:32
Definition: plat_hook.h:35
bool is_sensor_init
Definition: plat_hook.h:36
uint8_t start_sensor_num
Definition: plat_hook.h:37
Definition: sensor.h:363
Definition: sensor.h:605
Definition: plat_dev.h:57
Definition: sensor.h:528
Definition: sensor.h:488
Definition: sensor.h:428
Definition: sensor.h:741
Definition: common_i2c_mux.h:23
Definition: sensor.h:393
Definition: plat_hook.h:25
mux_config * mux_configs
Definition: plat_hook.h:26
uint8_t card_id
Definition: plat_hook.h:27
Definition: sensor.h:255
Definition: sensor.h:636
Definition: sensor.h:304