Alex Elder | a646d6e | 2020-03-05 22:28:27 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |
| 3 | /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. |
| 4 | * Copyright (C) 2019-2020 Linaro Ltd. |
| 5 | */ |
| 6 | #ifndef _IPA_UC_H_ |
| 7 | #define _IPA_UC_H_ |
| 8 | |
| 9 | struct ipa; |
| 10 | |
| 11 | /** |
| 12 | * ipa_uc_setup() - set up the IPA microcontroller subsystem |
| 13 | * @ipa: IPA pointer |
| 14 | */ |
| 15 | void ipa_uc_setup(struct ipa *ipa); |
| 16 | |
| 17 | /** |
| 18 | * ipa_uc_teardown() - inverse of ipa_uc_setup() |
| 19 | * @ipa: IPA pointer |
| 20 | */ |
| 21 | void ipa_uc_teardown(struct ipa *ipa); |
| 22 | |
| 23 | /** |
| 24 | * ipa_uc_panic_notifier() |
| 25 | * @ipa: IPA pointer |
| 26 | * |
| 27 | * Notifier function called when the system crashes, to inform the |
| 28 | * microcontroller of the event. |
| 29 | */ |
| 30 | void ipa_uc_panic_notifier(struct ipa *ipa); |
| 31 | |
| 32 | #endif /* _IPA_UC_H_ */ |