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);
72bool is_mb_dc_on();
74
75#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:1207
struct _pex89000_pre_proc_arg pex89000_pre_proc_arg
bool pre_i2c_bus_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:1034
void set_cx7_init_arg_to_thor2()
Definition: plat_hook.c:1258
cx7_init_arg cx7_init_args[]
Definition: plat_hook.c:934
isl28022_init_arg isl28022_pex_p1v25_sensor_init_args[]
Definition: plat_hook.c:322
isl28022_init_arg isl28022_nic_sensor_init_args[]
Definition: plat_hook.c:56
isl28022_init_arg isl28022_pex_p1v8_sensor_init_args[]
Definition: plat_hook.c:441
ina230_init_arg ina230_pex_p1v8_sensor_init_args[]
Definition: plat_hook.c:455
pex89000_pre_proc_arg pex89000_pre_read_args[]
Definition: plat_hook.c:968
ltc4286_init_arg ltc4286_hsc_init_args[]
Definition: plat_hook.c:295
bool post_mp5990_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1097
nct7718w_init_arg nct7718w_init_args[]
Definition: plat_hook.c:924
ina230_init_arg ina230_pex_p1v25_sensor_init_args[]
Definition: plat_hook.c:369
mp5990_init_arg mp5990_hsc_init_args[]
Definition: plat_hook.c:279
isl28022_init_arg isl28022_ssd_sensor_init_args[]
Definition: plat_hook.c:479
struct tca9548 mux_conf_addr_0xe2[]
Definition: plat_hook.c:955
vr_pre_proc_arg vr_pre_read_args[]
Definition: plat_hook.c:962
bool is_mb_dc_on()
Definition: plat_hook.c:1249
ltc4282_init_arg ltc4282_hsc_init_args[]
Definition: plat_hook.c:288
bool post_ltc4286_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1171
struct _vr_pre_proc_arg vr_pre_proc_arg
struct tca9548 mux_conf_addr_0xe0[]
Definition: plat_hook.c:948
ina230_init_arg ina230_ssd_sensor_init_args[]
Definition: plat_hook.c:658
adc_asd_init_arg ast_adc_init_args[]
Definition: plat_hook.c:299
bool pre_vr_read(sensor_cfg *cfg, void *args)
Definition: plat_hook.c:988
bool post_ltc4282_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1135
ina230_init_arg ina230_nic_sensor_init_args[]
Definition: plat_hook.c:147
bool post_i2c_bus_read(sensor_cfg *cfg, void *args, int *reading)
Definition: plat_hook.c:1056
void ssd_drive_reinit(void)
Definition: plat_hook.c:1223
uint8_t reading[1]
Definition: pldm_monitor.h:3
Definition: sensor.h:364
Definition: sensor.h:746
Definition: sensor.h:529
Definition: sensor.h:310
Definition: sensor.h:403
Definition: sensor.h:429
Definition: sensor.h:447
Definition: sensor.h:715
Definition: sensor.h:394
Definition: plat_hook.h:28
struct tca9548 * mux_info_p
Definition: plat_hook.h:29
Definition: sensor.h:256
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:205