qcacmn: Add CDP APIs for configuring interrupt

Add CDP API for interrupt configuration to decouple interrupt
setup from soc attach / detach.

Change-Id: I422205ff5687fdc4a0936c68850455cc4e733e4d
CRs-fixed: 2046055
此提交包含在:
Venkateswara Swamy Bandaru
2017-05-19 20:20:30 +05:30
提交者 snandini
父節點 1dfdf64381
當前提交 a95b324a8c
共有 3 個檔案被更改,包括 26 行新增4 行删除

查看文件

@@ -507,6 +507,28 @@ int cdp_txrx_stats(ol_txrx_soc_handle soc, struct cdp_vdev *vdev,
return 0;
}
/**
* cdp_txrx_intr_attach(): function to attach and configure interrupt
* @soc: soc handle
*/
static inline QDF_STATUS cdp_txrx_intr_attach(ol_txrx_soc_handle soc)
{
if (soc->ops->cmn_drv_ops->txrx_intr_attach)
return soc->ops->cmn_drv_ops->txrx_intr_attach(soc);
return 0;
}
/**
* cdp_txrx_intr_detach(): function to detach interrupt
* @soc: soc handle
*/
static inline void cdp_txrx_intr_detach(ol_txrx_soc_handle soc)
{
if (soc->ops->cmn_drv_ops->txrx_intr_detach)
soc->ops->cmn_drv_ops->txrx_intr_detach(soc);
}
/**
* cdp_display_stats(): function to map to dump stats
* @soc: soc handle