1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 6*5113495bSYour Name * above copyright notice and this permission notice appear in all 7*5113495bSYour Name * copies. 8*5113495bSYour Name * 9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 17*5113495bSYour Name */ 18*5113495bSYour Name #ifndef _USB_API_H_ 19*5113495bSYour Name #define _USB_API_H_ 20*5113495bSYour Name #include "if_usb.h" 21*5113495bSYour Name 22*5113495bSYour Name QDF_STATUS hif_usb_open(struct hif_softc *hif_ctx, 23*5113495bSYour Name enum qdf_bus_type bus_type); 24*5113495bSYour Name void hif_usb_close(struct hif_softc *hif_ctx); 25*5113495bSYour Name 26*5113495bSYour Name 27*5113495bSYour Name void hif_usb_disable_isr(struct hif_softc *hif_ctx); 28*5113495bSYour Name void hif_usb_nointrs(struct hif_softc *scn); 29*5113495bSYour Name QDF_STATUS hif_usb_enable_bus(struct hif_softc *ol_sc, 30*5113495bSYour Name struct device *dev, void *bdev, 31*5113495bSYour Name const struct hif_bus_id *bid, 32*5113495bSYour Name enum hif_enable_type type); 33*5113495bSYour Name void hif_usb_disable_bus(struct hif_softc *scn); 34*5113495bSYour Name int hif_usb_bus_configure(struct hif_softc *scn); 35*5113495bSYour Name void hif_usb_irq_disable(struct hif_softc *scn, int ce_id); 36*5113495bSYour Name void hif_usb_irq_enable(struct hif_softc *scn, int ce_id); 37*5113495bSYour Name int hif_usb_dump_registers(struct hif_softc *scn); 38*5113495bSYour Name int hif_usb_bus_suspend(struct hif_softc *hif_ctx); 39*5113495bSYour Name int hif_usb_bus_resume(struct hif_softc *hif_ctx); 40*5113495bSYour Name void hif_usb_stop_device(struct hif_softc *hif_sc); 41*5113495bSYour Name void hif_usb_shutdown_bus_device(struct hif_softc *scn); 42*5113495bSYour Name int hif_usb_bus_reset_resume(struct hif_softc *hif_ctx); 43*5113495bSYour Name void hif_usb_set_bundle_mode(struct hif_softc *scn, 44*5113495bSYour Name bool enabled, int rx_bundle_cnt); 45*5113495bSYour Name void hif_usb_reg_tbl_attach(struct hif_softc *scn); 46*5113495bSYour Name void hif_fw_assert_ramdump_pattern(struct hif_usb_softc *sc); 47*5113495bSYour Name void hif_usb_ramdump_handler(struct hif_opaque_softc *scn); 48*5113495bSYour Name bool hif_usb_needs_bmi(struct hif_softc *scn); 49*5113495bSYour Name bool hif_is_supported_rx_ctrl_pipe(struct hif_softc *scn); 50*5113495bSYour Name #endif /*_USB_API_H_*/ 51