Line data Source code
1 0 : /*
2 : * Copyright (c) 2022 Synopsys.
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 : #ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_DSP_ARC_DSP_H_
7 : #define ZEPHYR_INCLUDE_ARCH_ARC_V2_DSP_ARC_DSP_H_
8 :
9 : /**
10 : * @brief Disable dsp context preservation
11 : *
12 : * The function is used to disable the preservation of dsp
13 : * and agu context registers for a particular thread.
14 : *
15 : * The @a options parameter indicates which register sets will
16 : * not be used by the specified thread. It is used by ARC only.
17 : *
18 : * @param thread ID of thread.
19 : * @param options register sets options
20 : *
21 : */
22 1 : void arc_dsp_disable(struct k_thread *thread, unsigned int options);
23 :
24 : /**
25 : * @brief Enable dsp context preservation
26 : *
27 : * The function is used to enable the preservation of dsp
28 : * and agu context registers for a particular thread.
29 : *
30 : * The @a options parameter indicates which register sets will
31 : * be used by the specified thread. It is used by ARC only.
32 : *
33 : * @param thread ID of thread.
34 : * @param options register sets options
35 : *
36 : */
37 1 : void arc_dsp_enable(struct k_thread *thread, unsigned int options);
38 :
39 : #endif /* ZEPHYR_INCLUDE_ARCH_ARC_V2_DSP_ARC_DSP_H_ */
|