1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2019-2022, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef FWK_INTERNAL_DELAYED_RESP_H
9 #define FWK_INTERNAL_DELAYED_RESP_H
10 
11 #include <fwk_id.h>
12 
13 #include <stdint.h>
14 
15 /*!
16  * \internal
17  *
18  * \brief Get the list of delayed responses for a given module or element.
19  *
20  * \note The function assumes the validity of all its input parameters.
21  *
22  * \param id Identifier of the module or element.
23  *
24  * \return A pointer to the list of delayed responses.
25  */
26 struct fwk_slist *__fwk_get_delayed_response_list(fwk_id_t id);
27 
28 /*!
29  * \internal
30  *
31  * \brief Search delayed response.
32  *
33  * \note The function assumes the validity of all its input parameters.
34  *
35  * \param id Identifier of the module or element that delayed the response.
36  * \param cookie Cookie of the event which the response has been delayed
37  *      for. This cookie identifies the response among the several responses
38  *      that the entity 'id' may have delayed.
39  *
40  * \return A pointer to the delayed response event, \c NULL if not found.
41  */
42 struct fwk_event *__fwk_search_delayed_response(fwk_id_t id, uint32_t cookie);
43 
44 #endif /* FWK_INTERNAL_DELAYED_RESP_H */
45