OpenBIC
OpenSource Bridge-IC
plat_pmic.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_PMIC_H
18#define PLAT_PMIC_H
19
20#include <stdint.h>
21
22#define MONITOR_PMIC_ERROR_STACK_SIZE 4096
23#define MONITOR_PMIC_ERROR_TIME_MS (3 * 1000) // 3s
24
25#define MAX_LEN_GET_PMIC_ERROR_INFO 6 //include R05, R06, R08, R09, R0A, R0B
26
27#define MAX_COUNT_DIMM 4
28#define MAX_COUNT_PMIC_ERROR_TYPE 17
29
32int compare_pmic_error(uint8_t dimm_id, uint8_t *pmic_err_data);
33int get_dimm_info(uint8_t dimm_id, uint8_t *bus, uint8_t *addr);
34void add_pmic_error_sel(uint8_t dimm_id, uint8_t error_type);
35
36#endif
uint8_t addr
Definition: isl69259.c:0
int compare_pmic_error(uint8_t dimm_id, uint8_t *pmic_err_data)
Definition: plat_pmic.c:198
void add_pmic_error_sel(uint8_t dimm_id, uint8_t error_type)
Definition: plat_pmic.c:237
void monitor_pmic_error_handler()
Definition: plat_pmic.c:89
int get_dimm_info(uint8_t dimm_id, uint8_t *bus, uint8_t *addr)
Definition: plat_pmic.c:148
void start_monitor_pmic_error_thread()
Definition: plat_pmic.c:77