1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2020 Broadcom.
10 #include <linux/compiler.h>
13 * chimp_fastboot_optee() - api to load bnxt firmware
15 * @return: 0 on success and -ve on failure
17 int chimp_fastboot_optee(void);
20 * chimp_health_status_optee() - get chimp health status
22 * Chimp health status could be firmware is in good condition or
23 * bad condition because of crash/hang.
25 * @status: pointer to get chimp health status
27 * @return: 0 on success and -ve on failure
29 int chimp_health_status_optee(u32 *status);
32 * chimp_handshake_status_optee() - get chimp handshake status.
34 * To know firmware is loaded and running.
36 * @timeout: timeout value, if 0 then default timeout is considered by op-tee
37 * @hstatus: pointer to chimp handshake status
39 * @return: 0 on success and -ve on failure
41 int chimp_handshake_status_optee(u32 timeout, u32 *hstatus);