aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/arpc.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-08-26 12:55:48 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-26 13:21:13 +0200
commit77e52b3b0b6489968fa7d230052afca47c556ad6 (patch)
treed450a5a8d46b55cb58cfd5cab01ba7d4c1bb0746 /drivers/staging/greybus/arpc.h
parentgreybus: es2: implement flush callback (diff)
downloadlinux-dev-77e52b3b0b6489968fa7d230052afca47c556ad6.tar.xz
linux-dev-77e52b3b0b6489968fa7d230052afca47c556ad6.zip
greybus: es2: implement shutdown callback
Implement the shutdown callback which is used to execute shutdown operations on offloaded connections. This adds a new shutdown ARPC. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arpc.h')
-rw-r--r--drivers/staging/greybus/arpc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arpc.h b/drivers/staging/greybus/arpc.h
index d44434f7ed28..d0230ab6b81f 100644
--- a/drivers/staging/greybus/arpc.h
+++ b/drivers/staging/greybus/arpc.h
@@ -81,6 +81,7 @@ struct arpc_response_message {
#define ARPC_TYPE_CPORT_QUIESCE 0x02
#define ARPC_TYPE_CPORT_CLEAR 0x03
#define ARPC_TYPE_CPORT_FLUSH 0x04
+#define ARPC_TYPE_CPORT_SHUTDOWN 0x05
struct arpc_cport_reset_req {
__le16 cport_id;
@@ -104,4 +105,10 @@ struct arpc_cport_flush_req {
__le16 cport_id;
} __packed;
+struct arpc_cport_shutdown_req {
+ __le16 cport_id;
+ __le16 timeout;
+ __u8 phase;
+} __packed;
+
#endif /* __ARPC_H */