aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/svc.h
diff options
context:
space:
mode:
authorGravatar Viresh Kumar <viresh.kumar@linaro.org> 2015-07-21 17:44:18 +0530
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2015-07-22 10:12:41 -0700
commitd3d448406772e421fb7ed8efd4d02d96cb2ab6f9 (patch)
tree2b78ac7e837816669044de1d603274f10763595b /drivers/staging/greybus/svc.h
parentgreybus: interface: Update gb_create_control_connection() to support SVC prot... (diff)
downloadlinux-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.tar.gz
linux-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.tar.bz2
linux-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.zip
greybus: svc: Add helpers to create AP<->SVC connection
SVC connection is required before the AP knows its position on the endo and type of endo. To enable message processing between the AP and SVC at this time, we need a partially initialized connection which can handle these messages. Once the AP receives more information from the SVC, it can discard this partially initialized connection and create a proper one, tied to a bundle and interface. Destroying the partially initialized connection is a bit tricky, as it is required to send a response to svc-hello. That part will be properly fixed separately. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/svc.h')
-rw-r--r--drivers/staging/greybus/svc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/svc.h b/drivers/staging/greybus/svc.h
index ebabe5ff7c6d..66497808ee62 100644
--- a/drivers/staging/greybus/svc.h
+++ b/drivers/staging/greybus/svc.h
@@ -26,4 +26,7 @@ int gb_svc_connection_destroy(struct gb_svc *svc, u8 intf1_id, u16 cport1_id,
int gb_svc_protocol_init(void);
void gb_svc_protocol_exit(void);
+
+struct gb_connection *
+gb_ap_svc_connection_create(struct greybus_host_device *hd);
#endif /* __SVC_H */