aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mhi.h
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2021-01-27 16:45:59 +0530
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2021-01-27 16:45:59 +0530
commit77f2cb28ae5219decf9067e62907d3ecee839779 (patch)
treee833eb95fa6ed756110cdba5831613af22e01061 /include/linux/mhi.h
parentmhi: core: Factorize mhi queuing (diff)
parentbus: mhi: core: Add helper API to return number of free TREs (diff)
downloadwireguard-linux-77f2cb28ae5219decf9067e62907d3ecee839779.tar.xz
wireguard-linux-77f2cb28ae5219decf9067e62907d3ecee839779.zip
Merge branch 'mhi-net-immutable' into mhi-next
Diffstat (limited to 'include/linux/mhi.h')
-rw-r--r--include/linux/mhi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mhi.h b/include/linux/mhi.h
index fe6555496e27..d26acc8b21cd 100644
--- a/include/linux/mhi.h
+++ b/include/linux/mhi.h
@@ -603,6 +603,15 @@ void mhi_set_mhi_state(struct mhi_controller *mhi_cntrl,
void mhi_notify(struct mhi_device *mhi_dev, enum mhi_callback cb_reason);
/**
+ * mhi_get_free_desc_count - Get transfer ring length
+ * Get # of TD available to queue buffers
+ * @mhi_dev: Device associated with the channels
+ * @dir: Direction of the channel
+ */
+int mhi_get_free_desc_count(struct mhi_device *mhi_dev,
+ enum dma_data_direction dir);
+
+/**
* mhi_prepare_for_power_up - Do pre-initialization before power up.
* This is optional, call this before power up if
* the controller does not want bus framework to