diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2017-10-02 06:38:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-02 14:24:40 -0400 |
commit | eaf8ff35a345449207ad116e2574c19780ec9a98 (patch) | |
tree | 27a130f96bb13867fad8d87eb78953eb15415312 /include/linux/thunderbolt.h | |
parent | cdae7c07e3e3509eaabc18c1640a55dc5b99c179 (diff) |
thunderbolt: Move enum tb_cfg_pkg_type to thunderbolt.h
These will be needed by Thunderbolt services when sending and receiving
XDomain control messages. While there change TB_CFG_PKG_PREPARE_TO_SLEEP
value to be decimal in order to be consistent with other members.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Michael Jamet <michael.jamet@intel.com>
Reviewed-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/thunderbolt.h')
-rw-r--r-- | include/linux/thunderbolt.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/thunderbolt.h b/include/linux/thunderbolt.h index 96561c1265ae..b512b1e2b4f2 100644 --- a/include/linux/thunderbolt.h +++ b/include/linux/thunderbolt.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Thunderbolt service API | 2 | * Thunderbolt service API |
3 | * | 3 | * |
4 | * Copyright (C) 2014 Andreas Noever <andreas.noever@gmail.com> | ||
4 | * Copyright (C) 2017, Intel Corporation | 5 | * Copyright (C) 2017, Intel Corporation |
5 | * Authors: Michael Jamet <michael.jamet@intel.com> | 6 | * Authors: Michael Jamet <michael.jamet@intel.com> |
6 | * Mika Westerberg <mika.westerberg@linux.intel.com> | 7 | * Mika Westerberg <mika.westerberg@linux.intel.com> |
@@ -16,6 +17,22 @@ | |||
16 | #include <linux/list.h> | 17 | #include <linux/list.h> |
17 | #include <linux/uuid.h> | 18 | #include <linux/uuid.h> |
18 | 19 | ||
20 | enum tb_cfg_pkg_type { | ||
21 | TB_CFG_PKG_READ = 1, | ||
22 | TB_CFG_PKG_WRITE = 2, | ||
23 | TB_CFG_PKG_ERROR = 3, | ||
24 | TB_CFG_PKG_NOTIFY_ACK = 4, | ||
25 | TB_CFG_PKG_EVENT = 5, | ||
26 | TB_CFG_PKG_XDOMAIN_REQ = 6, | ||
27 | TB_CFG_PKG_XDOMAIN_RESP = 7, | ||
28 | TB_CFG_PKG_OVERRIDE = 8, | ||
29 | TB_CFG_PKG_RESET = 9, | ||
30 | TB_CFG_PKG_ICM_EVENT = 10, | ||
31 | TB_CFG_PKG_ICM_CMD = 11, | ||
32 | TB_CFG_PKG_ICM_RESP = 12, | ||
33 | TB_CFG_PKG_PREPARE_TO_SLEEP = 13, | ||
34 | }; | ||
35 | |||
19 | /** | 36 | /** |
20 | * struct tb_property_dir - XDomain property directory | 37 | * struct tb_property_dir - XDomain property directory |
21 | * @uuid: Directory UUID or %NULL if root directory | 38 | * @uuid: Directory UUID or %NULL if root directory |