summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb_msgs.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2017-10-06 17:14:13 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2018-03-09 10:54:11 +0100
commit3080e197e936ab7cdcf66cacec22abe5c6c1007a (patch)
tree06a5fdae8ca7ac9fe66aff7bafd12f8316add634 /drivers/thunderbolt/tb_msgs.h
parentthunderbolt: Add constant for approval timeout (diff)
downloadlinux-3080e197e936ab7cdcf66cacec22abe5c6c1007a.tar.xz
linux-3080e197e936ab7cdcf66cacec22abe5c6c1007a.zip
thunderbolt: Move driver ready handling to struct icm
Intel Titan Ridge uses slightly different format for ICM driver ready response, so add a new ->driver_ready() callback to struct icm and move the existing handling to a separate function which we then use in Falcon Ridge and Alpine Ridge. No functional changes intended. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'drivers/thunderbolt/tb_msgs.h')
-rw-r--r--drivers/thunderbolt/tb_msgs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/thunderbolt/tb_msgs.h b/drivers/thunderbolt/tb_msgs.h
index 476bc04cac6c..931db2a7c7b3 100644
--- a/drivers/thunderbolt/tb_msgs.h
+++ b/drivers/thunderbolt/tb_msgs.h
@@ -127,14 +127,16 @@ struct icm_pkg_driver_ready {
struct icm_pkg_header hdr;
};
-struct icm_pkg_driver_ready_response {
+/* Falcon Ridge & Alpine Ridge common messages */
+
+struct icm_fr_pkg_driver_ready_response {
struct icm_pkg_header hdr;
u8 romver;
u8 ramver;
u16 security_level;
};
-/* Falcon Ridge & Alpine Ridge common messages */
+#define ICM_FR_SLEVEL_MASK 0xf
struct icm_fr_pkg_get_topology {
struct icm_pkg_header hdr;