diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2021-01-27 14:15:59 +0300 |
---|---|---|
committer | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2021-01-27 14:15:59 +0300 |
commit | 77f2cb28ae5219decf9067e62907d3ecee839779 (patch) | |
tree | e833eb95fa6ed756110cdba5831613af22e01061 /include/linux/mhi.h | |
parent | a8f75cb348fd52e7a5cf25991cdf9c89fb0cfd41 (diff) | |
parent | 87baa23e0236bc1c41ce744f524bf12dbe7fde66 (diff) | |
download | linux-77f2cb28ae5219decf9067e62907d3ecee839779.tar.xz |
Merge branch 'mhi-net-immutable' into mhi-next
Diffstat (limited to 'include/linux/mhi.h')
-rw-r--r-- | include/linux/mhi.h | 9 |
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 |