1 /* 2 * Copyright (c) 2015-2016,2018,2020 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #ifndef __CE_TASKLET_H__ 20 #define __CE_TASKLET_H__ 21 #include "ce_main.h" 22 void init_tasklet_workers(struct hif_opaque_softc *scn); 23 void deinit_tasklet_workers(struct hif_opaque_softc *scn); 24 void ce_tasklet_init(struct HIF_CE_state *hif_ce_state, uint32_t mask); 25 void ce_tasklet_kill(struct hif_softc *scn); 26 int hif_drain_tasklets(struct hif_softc *scn); 27 QDF_STATUS ce_register_irq(struct HIF_CE_state *hif_ce_state, uint32_t mask); 28 QDF_STATUS ce_unregister_irq(struct HIF_CE_state *hif_ce_state, uint32_t mask); 29 irqreturn_t ce_dispatch_interrupt(int irq, 30 struct ce_tasklet_entry *tasklet_entry); 31 void hif_display_ce_stats(struct hif_softc *hif_ctx); 32 void hif_clear_ce_stats(struct HIF_CE_state *hif_ce_state); 33 #endif /* __CE_TASKLET_H__ */ 34