OpenBIC
OpenSource Bridge-IC
app_handler.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 APP_HANDLER_H
18#define APP_HANDLER_H
19
20#include "ipmi.h"
21#include "plat_fru.h"
22
23#ifndef BIC_FRU_DEV_ID
24#define BIC_FRU_DEV_ID 0
25#endif
26
27#define GET_TEST_RESULT 0
28#define FRB2_WDT_DELAY_MS (10 * 1000) // 10s
29
31 uint8_t status;
32
33 struct RESULT {
34 uint8_t cannotAccessSelDev : 1;
37 uint8_t ipmbLinesDead : 1;
38 uint8_t sdrRepoEmpty : 1;
39 uint8_t internalCorrupt : 1;
40 uint8_t updateFwCorrupt : 1;
41 uint8_t opFwCorrupt : 1;
44
46void APP_COLD_RESET(ipmi_msg *msg);
47void APP_WARM_RESET(ipmi_msg *msg);
50
51#ifdef CONFIG_ESPI
53#endif
54
55void IPMI_APP_handler(ipmi_msg *msg);
56
58
59#endif
__weak void APP_GET_SYSTEM_GUID(ipmi_msg *msg)
Definition: app_handler.c:154
void abort_frb2_wdt_thread()
Definition: app_handler.c:320
void APP_GET_SELFTEST_RESULTS(ipmi_msg *msg)
Definition: app_handler.c:108
void IPMI_APP_handler(ipmi_msg *msg)
Definition: app_handler.c:392
struct SELF_TEST_RESULT_STRUCT SELF_TEST_RESULT
void APP_GET_DEVICE_ID(ipmi_msg *msg)
Definition: app_handler.c:48
void APP_WARM_RESET(ipmi_msg *msg)
Definition: app_handler.c:93
void APP_MASTER_WRITE_READ(ipmi_msg *msg)
Definition: app_handler.c:185
void APP_COLD_RESET(ipmi_msg *msg)
Definition: app_handler.c:78
Definition: app_handler.h:33
uint8_t ipmbLinesDead
Definition: app_handler.h:37
uint8_t cannotAccessBmcFruDev
Definition: app_handler.h:36
uint8_t internalCorrupt
Definition: app_handler.h:39
uint8_t sdrRepoEmpty
Definition: app_handler.h:38
uint8_t opFwCorrupt
Definition: app_handler.h:41
uint8_t cannotAccessSelDev
Definition: app_handler.h:34
uint8_t cannotAccessSdrRepo
Definition: app_handler.h:35
uint8_t updateFwCorrupt
Definition: app_handler.h:40
Definition: app_handler.h:30
uint8_t status
Definition: app_handler.h:31
struct SELF_TEST_RESULT_STRUCT::RESULT result
Definition: ipmb.h:165