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 "sensor.h"
21
22typedef struct _vr_pre_proc_arg {
24 /* vr page to set */
25 uint8_t vr_page;
27
28typedef struct _pex89000_pre_proc_arg {
31
32/**************************************************************************************************
33 * INIT ARGS
34**************************************************************************************************/
37
51/**************************************************************************************************
52 * PRE-HOOK/POST-HOOK ARGS
53 **************************************************************************************************/
54extern struct tca9548 mux_conf_addr_0xe0[];
55extern struct tca9548 mux_conf_addr_0xe2[];
58
59/**************************************************************************************************
60 * PRE-HOOK/POST-HOOK FUNC
61 **************************************************************************************************/
62bool pre_vr_read(sensor_cfg *cfg, void *args);
63bool pre_pex89000_read(sensor_cfg *cfg, void *args);
64bool pre_i2c_bus_read(sensor_cfg *cfg, void *args);
65bool post_i2c_bus_read(sensor_cfg *cfg, void *args, int *reading);
66bool post_mp5990_read(sensor_cfg *cfg, void *args, int *reading);
67bool post_ltc4282_read(sensor_cfg *cfg, void *args, int *reading);
68bool post_ltc4286_read(sensor_cfg *cfg, void *args, int *reading);
69
70struct k_mutex *find_bus_mutex(sensor_cfg *cfg);
71void ssd_drive_reinit(void);
74bool is_mb_dc_on();
76
77#endif
bool pre_pex89000_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:899
pex89000_init_arg pex_sensor_init_args[]
Definition: plat_hook.c:533
struct k_mutex * find_bus_mutex(sensor_cfg *cfg)
Definition: plat_hook.c:1235
struct _pex89000_pre_proc_arg pex89000_pre_proc_arg
bool pre_i2c_bus_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1062
void set_cx7_init_arg_to_thor2()
Definition: plat_hook.c:1336
cx7_init_arg cx7_init_args[]
Definition: plat_hook.c:938
isl28022_init_arg isl28022_pex_p1v25_sensor_init_args[]
Definition: plat_hook.c:326
isl28022_init_arg isl28022_nic_sensor_init_args[]
Definition: plat_hook.c:60
isl28022_init_arg isl28022_pex_p1v8_sensor_init_args[]
Definition: plat_hook.c:445
ina230_init_arg ina230_pex_p1v8_sensor_init_args[]
Definition: plat_hook.c:459
pex89000_pre_proc_arg pex89000_pre_read_args[]
Definition: plat_hook.c:996
ltc4286_init_arg ltc4286_hsc_init_args[]
Definition: plat_hook.c:299
bool post_mp5990_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1125
nct7718w_init_arg nct7718w_init_args[]
Definition: plat_hook.c:928
ina230_init_arg ina230_pex_p1v25_sensor_init_args[]
Definition: plat_hook.c:373
mp5990_init_arg mp5990_hsc_init_args[]
Definition: plat_hook.c:283
void nic_optics_drive_reinit_for_pollara(void)
Definition: plat_hook.c:1302
isl28022_init_arg isl28022_ssd_sensor_init_args[]
Definition: plat_hook.c:483
struct tca9548 mux_conf_addr_0xe2[]
Definition: plat_hook.c:983
vr_pre_proc_arg vr_pre_read_args[]
Definition: plat_hook.c:990
bool is_mb_dc_on()
Definition: plat_hook.c:1327
ltc4282_init_arg ltc4282_hsc_init_args[]
Definition: plat_hook.c:292
bool post_ltc4286_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1199
void nic_drive_reinit_for_pollara(void)
Definition: plat_hook.c:1277
struct _vr_pre_proc_arg vr_pre_proc_arg
struct tca9548 mux_conf_addr_0xe0[]
Definition: plat_hook.c:976
ina230_init_arg ina230_ssd_sensor_init_args[]
Definition: plat_hook.c:662
adc_asd_init_arg ast_adc_init_args[]
Definition: plat_hook.c:303
bool pre_vr_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1016
bool post_ltc4282_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1163
ina230_init_arg ina230_nic_sensor_init_args[]
Definition: plat_hook.c:151
bool post_i2c_bus_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1084
void ssd_drive_reinit(void)
Definition: plat_hook.c:1251
uint8_t reading[1]
Definition: pldm_monitor.h:3
Definition: sensor.h:370
Definition: sensor.h:761
Definition: sensor.h:544
Definition: sensor.h:316
Definition: sensor.h:418
Definition: sensor.h:444
Definition: sensor.h:462
Definition: sensor.h:730
Definition: sensor.h:400
Definition: plat_hook.h:28
struct tca9548 * mux_info_p
Definition: plat_hook.h:29
Definition: sensor.h:262
Definition: plat_hook.h:22
uint8_t vr_page
Definition: plat_hook.h:25
struct tca9548 * mux_info_p
Definition: plat_hook.h:23
Definition: sensor.h:211