From: Viresh Kumar Date: Tue, 21 Jul 2015 12:14:12 +0000 (+0530) Subject: greybus: Define device ids for AP/SVC/modules X-Git-Tag: v5.15~12752^2~378^2~21^2~1361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8dd60db6cae0800e44e68e4c2c0c1af136414be;p=platform%2Fkernel%2Flinux-starfive.git greybus: Define device ids for AP/SVC/modules Define device-ids for AP, SVC and modules (starting id only). Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index fe4b2dd..0056c2a 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -52,7 +52,12 @@ #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