summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-01-11 13:46:31 +0000
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-12 17:00:12 -0800
commitc5d55fb3596db4064491e7e5db6df8bf8f046078 (patch)
tree4a58ca71b5b9db4b62a2e2f1d8eb3dd326d1959e /drivers/staging/greybus/greybus_protocols.h
parentadb57cff54dd4418f4d5b17f03a976dfdc670226 (diff)
greybus: svc: add interface eject operation
Add a new svc operation which will be used to send a request to eject a given interface. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index dfa3d29b78b3..2ffe07cb2a01 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -760,6 +760,7 @@ struct gb_spi_transfer_response {
#define GB_SVC_TYPE_ROUTE_CREATE 0x0b
#define GB_SVC_TYPE_ROUTE_DESTROY 0x0c
#define GB_SVC_TYPE_INTF_SET_PWRM 0x10
+#define GB_SVC_TYPE_INTF_EJECT 0x11
/*
* SVC version request/response has the same payload as
@@ -801,6 +802,12 @@ struct gb_svc_intf_reset_request {
} __packed;
/* interface reset response has no payload */
+#define GB_SVC_EJECT_TIME 9000
+struct gb_svc_intf_eject_request {
+ __u8 intf_id;
+} __packed;
+/* interface eject response has no payload */
+
struct gb_svc_conn_create_request {
__u8 intf1_id;
__le16 cport1_id;