diff options
| author | Atish Kumar Patra <apatra@codeaurora.org> | 2015-04-24 18:19:24 -0600 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:13:44 -0700 |
| commit | dc86ce0faae2400ecf71b448bfa1f4baa9d298f7 (patch) | |
| tree | 33b0285a9c8cc3e8cefda8af9d1ebe49e191321f /include/linux | |
| parent | 8b7a1ee3b5af59c0fd5262bc8517b602a8ba754e (diff) | |
soc: qcom: ipc_rtr_xprt: Add support to set version in transport
Currently, there is no option to set the version in IPC Router transport.
Add support to set a version in the transport so that the version can be
modified from initial entry after the version negotiation.
Change-Id: Ie6d823a3b4f2608efe2ac992a248a4f0884b856d
Signed-off-by: Atish Kumar Patra <apatra@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ipc_router_xprt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ipc_router_xprt.h b/include/linux/ipc_router_xprt.h index 8e3a2b3f1c99..276c79ff1591 100644 --- a/include/linux/ipc_router_xprt.h +++ b/include/linux/ipc_router_xprt.h @@ -116,6 +116,7 @@ struct rr_packet { * @link_id: Network cluster ID to which the XPRT belongs to. * @priv: XPRT's private data. * @get_version: Method to get header version supported by the XPRT. + * @set_version: Method to set header version in XPRT. * @get_option: Method to get XPRT specific options. * @read_avail: Method to get data size available to be read from the XPRT. * @read: Method to read data from the XPRT. @@ -132,6 +133,8 @@ struct msm_ipc_router_xprt { int (*get_version)(struct msm_ipc_router_xprt *xprt); int (*get_option)(struct msm_ipc_router_xprt *xprt); + void (*set_version)(struct msm_ipc_router_xprt *xprt, + unsigned version); int (*read_avail)(struct msm_ipc_router_xprt *xprt); int (*read)(void *data, uint32_t len, struct msm_ipc_router_xprt *xprt); |
