1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2022 Linaro Ltd.
13 * ipa_uc_interrupt_handler() - Handler for microcontroller IPA interrupts
15 * @irq_id: IPA interrupt ID
17 void ipa_uc_interrupt_handler(struct ipa *ipa, enum ipa_irq_id irq_id);
20 * ipa_uc_config() - Configure the IPA microcontroller subsystem
23 void ipa_uc_config(struct ipa *ipa);
26 * ipa_uc_deconfig() - Inverse of ipa_uc_config()
29 void ipa_uc_deconfig(struct ipa *ipa);
32 * ipa_uc_power() - Take a proxy power reference for the microcontroller
35 * The first time the modem boots, it loads firmware for and starts the
36 * IPA-resident microcontroller. The microcontroller signals that it
37 * has completed its initialization by sending an INIT_COMPLETED response
38 * message to the AP. The AP must ensure the IPA is powered until
39 * it receives this message, and to do so we take a "proxy" clock
40 * reference on its behalf here. Once we receive the INIT_COMPLETED
41 * message (in ipa_uc_response_hdlr()) we drop this power reference.
43 void ipa_uc_power(struct ipa *ipa);
46 * ipa_uc_panic_notifier()
49 * Notifier function called when the system crashes, to inform the
50 * microcontroller of the event.
52 void ipa_uc_panic_notifier(struct ipa *ipa);
54 #endif /* _IPA_UC_H_ */