summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrei Danaila <adanaila@codeaurora.org>2015-05-04 14:25:41 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:24:41 -0700
commitf688e16bf59fe323d83c4067125f9eaeebfb7906 (patch)
treed7a2f70247a7b55b447c6bec4a0fa194b843cfb1 /include
parent74c1e7710f2e488ecadec71315e4fda0a2589027 (diff)
mhi: core: Enable queueing of virtual buffers
Enable clients to queue virtual buffers, thus leaving all the DMA operations to MHI. Change-Id: I824d2f387b1a21d322ca0628963995824227bd76 Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/msm_mhi.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/msm_mhi.h b/include/linux/msm_mhi.h
index 947c369b5b9a..d9ddf3ac9795 100644
--- a/include/linux/msm_mhi.h
+++ b/include/linux/msm_mhi.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -113,8 +113,8 @@ enum MHI_FLAGS {
struct mhi_result {
void *user_data;
- dma_addr_t payload_buf;
- u32 bytes_xferd;
+ void *buf_addr;
+ size_t bytes_xferd;
enum MHI_STATUS transaction_status;
enum MHI_FLAGS flags;
};
@@ -180,12 +180,14 @@ enum MHI_STATUS mhi_open_channel(struct mhi_client_handle *client_handle);
* @chain Specify whether to set the chain bit on this buffer
* @eob Specify whether this buffer should trigger EOB interrupt
*
+ * NOTE:
* Not thread safe, caller must ensure concurrency protection.
+ * User buffer must be physically contiguous.
*
* @Return MHI_STATUS
*/
-enum MHI_STATUS mhi_queue_xfer(struct mhi_client_handle *client_handle,
- dma_addr_t buf, size_t buf_len, enum MHI_FLAGS flags);
+int mhi_queue_xfer(struct mhi_client_handle *client_handle,
+ void *buf, size_t buf_len, enum MHI_FLAGS mhi_flags);
/**
* mhi_close_channel - Client can request channel to be closed and handle freed