1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name #ifndef _SNOC_API_H_ 21*5113495bSYour Name #define _SNOC_API_H_ 22*5113495bSYour Name QDF_STATUS hif_snoc_open(struct hif_softc *hif_ctx, 23*5113495bSYour Name enum qdf_bus_type bus_type); 24*5113495bSYour Name void hif_snoc_close(struct hif_softc *hif_ctx); 25*5113495bSYour Name int hif_snoc_bus_suspend(struct hif_softc *hif_ctx); 26*5113495bSYour Name int hif_snoc_bus_resume(struct hif_softc *hif_ctx); 27*5113495bSYour Name int hif_snoc_bus_suspend_noirq(struct hif_softc *scn); 28*5113495bSYour Name void hif_snoc_disable_isr(struct hif_softc *hif_ctx); 29*5113495bSYour Name void hif_snoc_nointrs(struct hif_softc *scn); 30*5113495bSYour Name QDF_STATUS hif_snoc_enable_bus(struct hif_softc *ol_sc, 31*5113495bSYour Name struct device *dev, void *bdev, 32*5113495bSYour Name const struct hif_bus_id *bid, 33*5113495bSYour Name enum hif_enable_type type); 34*5113495bSYour Name void hif_snoc_disable_bus(struct hif_softc *scn); 35*5113495bSYour Name int hif_snoc_bus_configure(struct hif_softc *scn); 36*5113495bSYour Name void hif_snoc_irq_disable(struct hif_softc *scn, int ce_id); 37*5113495bSYour Name void hif_snoc_irq_enable(struct hif_softc *scn, int ce_id); 38*5113495bSYour Name int hif_snoc_dump_registers(struct hif_softc *scn); 39*5113495bSYour Name void hif_snoc_display_stats(struct hif_softc *hif_ctx); 40*5113495bSYour Name void hif_snoc_clear_stats(struct hif_softc *hif_ctx); 41*5113495bSYour Name int hif_snoc_map_ce_to_irq(struct hif_softc *scn, int ce_id); 42*5113495bSYour Name bool hif_snoc_needs_bmi(struct hif_softc *scn); 43*5113495bSYour Name void hif_snoc_configure_irq_affinity(struct hif_softc *scn); 44*5113495bSYour Name #endif /* _SNOC_API_H_ */ 45