greybus: Define device ids for AP/SVC/modules
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 21 Jul 2015 12:14:12 +0000 (17:44 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 22 Jul 2015 17:11:05 +0000 (10:11 -0700)
Define device-ids for AP, SVC and modules (starting id only).

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index fe4b2dd..0056c2a 100644 (file)
 #ifndef __GREYBUS_PROTOCOLS_H
 #define __GREYBUS_PROTOCOLS_H
 
-/* Control Protocol */
+/* Fixed IDs for control/svc protocols */
+
+/* Device ID of SVC and AP */
+#define GB_DEVICE_ID_SVC                       0
+#define GB_DEVICE_ID_AP                                1
+#define GB_DEVICE_ID_MODULES_START             2
 
 /* Bundle-id and cport-id for control cport */
 #define GB_CONTROL_BUNDLE_ID                   0