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 "common_i2c_mux.h"
21
22typedef struct _pwr_monitor_pre_proc_arg {
24 uint8_t jcn_number;
26
27typedef struct _vr_pre_arg {
29 uint8_t cxl_id;
31
32/**************************************************************************************************
33 * INIT ARGS
34**************************************************************************************************/
41extern uint8_t plat_monitor_table_arg[];
42
43/**************************************************************************************************
44 * PRE-HOOK/POST-HOOK ARGS
45 **************************************************************************************************/
51extern uint8_t pm8702_pre_arg[];
52extern vr_pre_arg vr_pre_args[];
53
54/**************************************************************************************************
55 * PRE-HOOK/POST-HOOK FUNC
56 **************************************************************************************************/
57bool pre_nvme_read(sensor_cfg *cfg, void *args);
58bool post_nvme_read(sensor_cfg *cfg, void *args, int *reading);
59bool pre_sq52205_read(sensor_cfg *cfg, void *args);
60bool post_sq52205_read(sensor_cfg *cfg, void *args, int *reading);
61bool pre_cxl_switch_mux(uint8_t sensor_num, void *arg);
62bool post_cxl_switch_mux(uint8_t sensor_num, void *arg);
63bool pre_cxl_vr_read(sensor_cfg *cfg, void *args);
64bool post_cxl_xdpe12284c_read(sensor_cfg *cfg, void *args, int *reading);
65bool pre_pm8702_read(sensor_cfg *cfg, void *args);
66
67#endif
adc_asd_init_arg adc_asd_init_args[]
Definition: plat_hook.c:742
uint8_t plat_monitor_table_arg[]
Definition: plat_hook.c:700
struct _pwr_monitor_pre_proc_arg pwr_monitor_pre_proc_arg
mux_config bus_2_pca9548_configs[]
Definition: plat_hook.c:914
vr_pre_arg vr_pre_args[]
Definition: plat_hook.c:978
struct _vr_pre_arg vr_pre_arg
bool pre_cxl_vr_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1182
sq52205_init_arg sq52205_init_args[]
Definition: plat_hook.c:63
uint8_t pm8702_pre_arg[]
Definition: plat_hook.c:975
ina233_init_arg mc_ina233_init_args[]
Definition: plat_hook.c:248
bool pre_nvme_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1000
bool pre_cxl_switch_mux(uint8_t sensor_num, void *arg)
Definition: plat_hook.c:1127
pwr_monitor_pre_proc_arg pwr_monitor_pre_proc_args[]
Definition: plat_hook.c:958
bool pre_sq52205_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1048
bool post_cxl_xdpe12284c_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1251
bool post_cxl_switch_mux(uint8_t sensor_num, void *arg)
Definition: plat_hook.c:1167
ltc2991_init_arg ltc2991_init_args[]
Definition: plat_hook.c:872
mux_config cxl_mux_configs[]
Definition: plat_hook.c:949
bool pre_pm8702_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1294
bool post_nvme_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1026
ina233_init_arg ina233_init_args[]
Definition: plat_hook.c:541
mux_config bus_4_pca9548_configs[]
Definition: plat_hook.c:925
mp5990_init_arg mp5990_init_args[]
Definition: plat_hook.c:46
mux_config bus_8_pca9548_configs[]
Definition: plat_hook.c:938
bool post_sq52205_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1105
uint8_t reading[1]
Definition: pldm_monitor.h:3
uint8_t sensor_num
Definition: storage_handler.h:6
Definition: sensor.h:363
Definition: sensor.h:488
Definition: sensor.h:684
Definition: sensor.h:446
Definition: common_i2c_mux.h:23
Definition: plat_hook.h:25
mux_config bus_3_mux_configs
Definition: plat_hook.h:23
uint8_t jcn_number
Definition: plat_hook.h:24
Definition: sensor.h:255
Definition: sensor.h:636
Definition: sensor.h:304
Definition: plat_hook.h:27
uint8_t cxl_id
Definition: plat_hook.h:29
vr_page_cfg page
Definition: plat_hook.h:28