1 /*
2  * Copyright (c) 2020 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef DEBUG_COREDUMP_INTERNAL_H_
8 #define DEBUG_COREDUMP_INTERNAL_H_
9 
10 #include <zephyr/toolchain.h>
11 
12 /**
13  * @cond INTERNAL_HIDDEN
14  *
15  * These are for internal use only, so skip these in
16  * public documentation.
17  */
18 
19 struct z_coredump_memory_region_t {
20 	uintptr_t	start;
21 	uintptr_t	end;
22 };
23 
24 extern struct z_coredump_memory_region_t z_coredump_memory_regions[];
25 
26 /**
27  * @brief Mark the start of coredump
28  *
29  * This sets up coredump subsys so coredump can be commenced.
30  *
31  * For example, backend needs to be initialized before any
32  * output can be stored.
33  */
34 void z_coredump_start(void);
35 
36 /**
37  * @brief Mark the end of coredump
38  *
39  * This tells the coredump subsys to finalize the coredump
40  * session.
41  *
42  * For example, backend may need to flush the output.
43  */
44 void z_coredump_end(void);
45 
46 /**
47  * @endcond
48  */
49 
50 #endif /* DEBUG_COREDUMP_INTERNAL_H_ */
51