Commit ec320625 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: Define cport/bundle for SVC protocol

For now, the plan is to use a single cport for both control and svc
protocol. Defining separate macros for control and svc protocol's
cport/bundle would make the code more flexible, in case we need two
separate cports in future.

Lets define cport/bundle for svc protocol as well.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c8dd60db
......@@ -59,11 +59,19 @@
#define GB_DEVICE_ID_AP 1
#define GB_DEVICE_ID_MODULES_START 2
/* Bundle-id and cport-id for control cport */
/*
* Bundle/cport for control/svc cport: The same bundle/cport is shared by both
* CONTROL and SVC protocols for communication between AP and SVC.
*/
#define GB_SVC_BUNDLE_ID 0
#define GB_SVC_CPORT_ID 2
#define GB_CONTROL_BUNDLE_ID 0
#define GB_CONTROL_CPORT_ID 2
/* Control Protocol */
/* version request has no payload */
struct gb_protocol_version_response {
__u8 major;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment