qcacmn: Export the bus type

Currently only ol_target_failure needs to query the bus type,
but when usb and sdio busses are added there will be more
external checks based on the bus type.

Change-Id: I48172a918e75ff3a6e56fae5c311ae999efa607e
CRs-Fixed: 986480
This commit is contained in:
Houston Hoffman
2016-03-14 21:11:44 -07:00
committed by Vishwajith Upendra
parent 26352594d9
commit 60a1eeb69f
2 changed files with 12 additions and 0 deletions

View File

@@ -491,6 +491,7 @@ void hif_lro_flush_cb_register(struct hif_opaque_softc *scn,
void (handler)(void *), void *data);
void hif_lro_flush_cb_deregister(struct hif_opaque_softc *scn);
bool hif_needs_bmi(struct hif_opaque_softc *scn);
enum qdf_bus_type hif_get_bus_type(struct hif_opaque_softc *hif_hdl);
struct hif_target_info *hif_get_target_info_handle(struct hif_opaque_softc *
scn);
struct hif_config_info *hif_get_ini_handle(struct hif_opaque_softc *scn);

View File

@@ -803,6 +803,17 @@ bool hif_needs_bmi(struct hif_opaque_softc *hif_ctx)
return hif_sc->bus_type != QDF_BUS_TYPE_SNOC;
}
/**
* hif_get_bus_type() - return the bus type
*
* Return: enum qdf_bus_type
*/
enum qdf_bus_type hif_get_bus_type(struct hif_opaque_softc *hif_hdl)
{
struct hif_softc *scn = HIF_GET_SOFTC(hif_hdl);
return scn->bus_type;
}
/**
* Target info and ini parameters are global to the driver
* Hence these structures are exposed to all the modules in