Merge branch 'for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[sfrench/cifs-2.6.git] / include / linux / mod_devicetable.h
index 1c2e8d6b72743b3dd899b6c0d4892c99b721dccd..abb6dc2ebbf86be03a82edef065d7b92d2b5296f 100644 (file)
@@ -687,5 +687,31 @@ struct fsl_mc_device_id {
        const char obj_type[16];
 };
 
+/**
+ * struct tb_service_id - Thunderbolt service identifiers
+ * @match_flags: Flags used to match the structure
+ * @protocol_key: Protocol key the service supports
+ * @protocol_id: Protocol id the service supports
+ * @protocol_version: Version of the protocol
+ * @protocol_revision: Revision of the protocol software
+ * @driver_data: Driver specific data
+ *
+ * Thunderbolt XDomain services are exposed as devices where each device
+ * carries the protocol information the service supports. Thunderbolt
+ * XDomain service drivers match against that information.
+ */
+struct tb_service_id {
+       __u32 match_flags;
+       char protocol_key[8 + 1];
+       __u32 protocol_id;
+       __u32 protocol_version;
+       __u32 protocol_revision;
+       kernel_ulong_t driver_data;
+};
+
+#define TBSVC_MATCH_PROTOCOL_KEY       0x0001
+#define TBSVC_MATCH_PROTOCOL_ID                0x0002
+#define TBSVC_MATCH_PROTOCOL_VERSION   0x0004
+#define TBSVC_MATCH_PROTOCOL_REVISION  0x0008
 
 #endif /* LINUX_MOD_DEVICETABLE_H */