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

greybus: protocol: move version_response structure to greybus_protocols.h

Version response structure is also required by external entities like
gbsim and so its structure should be moved to greybus_protocols.h.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 948b3bd5
...@@ -58,6 +58,15 @@ ...@@ -58,6 +58,15 @@
#define GB_CONTROL_BUNDLE_ID 0 #define GB_CONTROL_BUNDLE_ID 0
#define GB_CONTROL_CPORT_ID 2 #define GB_CONTROL_CPORT_ID 2
/* version request has no payload */
struct gb_protocol_version_response {
__u8 major;
__u8 minor;
};
/* Control Protocol */
/* Version of the Greybus control protocol we support */ /* Version of the Greybus control protocol we support */
#define GB_CONTROL_VERSION_MAJOR 0x00 #define GB_CONTROL_VERSION_MAJOR 0x00
#define GB_CONTROL_VERSION_MINOR 0x01 #define GB_CONTROL_VERSION_MINOR 0x01
......
...@@ -13,12 +13,6 @@ ...@@ -13,12 +13,6 @@
struct gb_connection; struct gb_connection;
struct gb_operation; struct gb_operation;
/* version request has no payload */
struct gb_protocol_version_response {
__u8 major;
__u8 minor;
};
typedef int (*gb_connection_init_t)(struct gb_connection *); typedef int (*gb_connection_init_t)(struct gb_connection *);
typedef void (*gb_connection_exit_t)(struct gb_connection *); typedef void (*gb_connection_exit_t)(struct gb_connection *);
typedef int (*gb_request_recv_t)(u8, struct gb_operation *); typedef int (*gb_request_recv_t)(u8, struct gb_operation *);
......
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