blob: 3c432bb648c7370855077f8a3fa1174172fbb948 (
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
|
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*/
#ifndef LIBSP_INCLUDE_SP_API_H_
#define LIBSP_INCLUDE_SP_API_H_
#include <stdint.h> // for uint32_t
#include "compiler.h" // for __noreturn
#include "ffa_api.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Interface for the SP implementation
*/
/**
* @brief Interrupt handler of the SP. It is called by the implementation
* of ffa_interrupt_handler. SPs must implement this function.
*
* @param[in] interrupt_id The interrupt identifier
*/
void sp_interrupt_handler(uint32_t interrupt_id);
/**
* @brief Entry point of the SP's application code. SPs must implement this
* function.
*
* @param init_info The boot info
*/
void __noreturn sp_main(struct ffa_init_info *init_info);
#ifdef __cplusplus
}
#endif
#endif /* LIBSP_INCLUDE_SP_API_H_ */
|