summaryrefslogtreecommitdiff
path: root/include/broadcom/chimp.h
blob: 7f641529139a81561f8a09dfec1cc311fd643548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright 2020 Broadcom.
 *
 */

#ifndef __CHIMP_H__
#define __CHIMP_H__

#include <linux/compiler.h>

/**
 * chimp_fastboot_optee() - api to load bnxt firmware
 *
 * @return: 0 on success and -ve on failure
 */
int chimp_fastboot_optee(void);

/**
 * chimp_health_status_optee() - get chimp health status
 *
 * Chimp health status could be firmware is in good condition or
 * bad condition because of crash/hang.
 *
 * @status: pointer to get chimp health status
 *
 * @return: 0 on success and -ve on failure
 */
int chimp_health_status_optee(u32 *status);

/**
 * chimp_handshake_status_optee() - get chimp handshake status.
 *
 * To know firmware is loaded and running.
 *
 * @timeout: timeout value, if 0 then default timeout is considered by op-tee
 * @hstatus: pointer to chimp handshake status
 *
 * @return: 0 on success and -ve on failure
 */
int chimp_handshake_status_optee(u32 timeout, u32 *hstatus);

#endif