summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/ipa_interrupt.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2024-03-01 18:02:37 +0100
committerDavid S. Miller <davem@davemloft.net>2024-03-04 12:44:40 +0100
commitad1be80d75827aad9582541ecc9d7953d354634f (patch)
tree09cb17c85304fef9930fc1925426939d3f409e03 /drivers/net/ipa/ipa_interrupt.h
parentnet: ipa: change ipa_interrupt_config() prototype (diff)
downloadlinux-ad1be80d75827aad9582541ecc9d7953d354634f.tar.xz
linux-ad1be80d75827aad9582541ecc9d7953d354634f.zip
net: ipa: introduce ipa_interrupt_init()
Create a new function ipa_interrupt_init() that is called at probe time to allocate and initialize the IPA interrupt data structure. Create ipa_interrupt_exit() as its inverse. This follows the normal IPA driver pattern of *_init() functions doing things that can be done before access to hardware is required. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_interrupt.h')
-rw-r--r--drivers/net/ipa/ipa_interrupt.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_interrupt.h b/drivers/net/ipa/ipa_interrupt.h
index 1947654e3e36..f3f4f4330a59 100644
--- a/drivers/net/ipa/ipa_interrupt.h
+++ b/drivers/net/ipa/ipa_interrupt.h
@@ -89,4 +89,18 @@ int ipa_interrupt_config(struct ipa *ipa);
*/
void ipa_interrupt_deconfig(struct ipa *ipa);
+/**
+ * ipa_interrupt_init() - Initialize the IPA interrupt structure
+ * @pdev: IPA platform device pointer
+ *
+ * Return: Pointer to an IPA interrupt structure, or a pointer-coded error
+ */
+struct ipa_interrupt *ipa_interrupt_init(struct platform_device *pdev);
+
+/**
+ * ipa_interrupt_exit() - Inverse of ipa_interrupt_init()
+ * @interrupt: IPA interrupt structure
+ */
+void ipa_interrupt_exit(struct ipa_interrupt *interrupt);
+
#endif /* _IPA_INTERRUPT_H_ */