summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorJohan Hovold2016-08-26 12:55:49 +0200
committerGreg Kroah-Hartman2016-08-26 13:21:13 +0200
commitaac0839ea20306401f6e18cf8ea97d98fd42bcb5 (patch)
treed3132d2b90d7db3b9d20667489782206c3b36c26 /drivers/staging/greybus/greybus_protocols.h
parentgreybus: es2: implement shutdown callback (diff)
downloadkernel-qcow2-linux-aac0839ea20306401f6e18cf8ea97d98fd42bcb5.tar.gz
kernel-qcow2-linux-aac0839ea20306401f6e18cf8ea97d98fd42bcb5.tar.xz
kernel-qcow2-linux-aac0839ea20306401f6e18cf8ea97d98fd42bcb5.zip
greybus: connection: implement new connection handling
Implement the new connection setup and tear-down sequences for control connections and bundle connections (offloaded and non-offloaded). Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index dd84e7569384..b8ce99c51926 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -96,9 +96,13 @@ struct gb_operation_msg_hdr {
/* Generic request types */
-#define GB_REQUEST_TYPE_PING 0x00
+#define GB_REQUEST_TYPE_CPORT_SHUTDOWN 0x00
#define GB_REQUEST_TYPE_INVALID 0x7f
+struct gb_cport_shutdown_request {
+ __u8 phase;
+} __packed;
+
/* Control Protocol */