greybus: timesync: Add Control and SVC protocol TimeSync operation definitions
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 2 Mar 2016 16:51:09 +0000 (16:51 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 3 Mar 2016 23:16:52 +0000 (15:16 -0800)
This patch adds the protocol command extenions for SVC and Control
protocols to the greybus_protocols definition header consistent with
the greybus-spec.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index c0a7863f8e1de5a38b21caaf1e1f5af8c1ec7076..8fd91f1b10a1b648d844596b8ffc1bd7a79c331f 100644 (file)
@@ -122,6 +122,9 @@ struct gb_protocol_version_response {
 #define GB_CONTROL_TYPE_GET_MANIFEST           0x04
 #define GB_CONTROL_TYPE_CONNECTED              0x05
 #define GB_CONTROL_TYPE_DISCONNECTED           0x06
+#define GB_CONTROL_TYPE_TIMESYNC_ENABLE                0x07
+#define GB_CONTROL_TYPE_TIMESYNC_DISABLE       0x08
+#define GB_CONTROL_TYPE_TIMESYNC_AUTHORITATIVE 0x09
 #define GB_CONTROL_TYPE_INTERFACE_VERSION      0x0a
 #define GB_CONTROL_TYPE_BUNDLE_VERSION         0x0b
 
@@ -785,21 +788,24 @@ struct gb_spi_transfer_response {
 #define GB_SVC_VERSION_MINOR           0x01
 
 /* Greybus SVC request types */
-#define GB_SVC_TYPE_SVC_HELLO          0x02
-#define GB_SVC_TYPE_INTF_DEVICE_ID     0x03
-#define GB_SVC_TYPE_INTF_HOTPLUG       0x04
-#define GB_SVC_TYPE_INTF_HOT_UNPLUG    0x05
-#define GB_SVC_TYPE_INTF_RESET         0x06
-#define GB_SVC_TYPE_CONN_CREATE                0x07
-#define GB_SVC_TYPE_CONN_DESTROY       0x08
-#define GB_SVC_TYPE_DME_PEER_GET       0x09
-#define GB_SVC_TYPE_DME_PEER_SET       0x0a
-#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
-#define GB_SVC_TYPE_KEY_EVENT          0x12
-#define GB_SVC_TYPE_PING               0x13
+#define GB_SVC_TYPE_SVC_HELLO                  0x02
+#define GB_SVC_TYPE_INTF_DEVICE_ID             0x03
+#define GB_SVC_TYPE_INTF_HOTPLUG               0x04
+#define GB_SVC_TYPE_INTF_HOT_UNPLUG            0x05
+#define GB_SVC_TYPE_INTF_RESET                 0x06
+#define GB_SVC_TYPE_CONN_CREATE                        0x07
+#define GB_SVC_TYPE_CONN_DESTROY               0x08
+#define GB_SVC_TYPE_DME_PEER_GET               0x09
+#define GB_SVC_TYPE_DME_PEER_SET               0x0a
+#define GB_SVC_TYPE_ROUTE_CREATE               0x0b
+#define GB_SVC_TYPE_ROUTE_DESTROY              0x0c
+#define GB_SVC_TYPE_TIMESYNC_ENABLE            0x0d
+#define GB_SVC_TYPE_TIMESYNC_DISABLE           0x0e
+#define GB_SVC_TYPE_TIMESYNC_AUTHORITATIVE     0x0f
+#define GB_SVC_TYPE_INTF_SET_PWRM              0x10
+#define GB_SVC_TYPE_INTF_EJECT                 0x11
+#define GB_SVC_TYPE_KEY_EVENT                  0x12
+#define GB_SVC_TYPE_PING                       0x13
 
 /*
  * SVC version request/response has the same payload as