Commit eaf8ff35 authored by Mika Westerberg's avatar Mika Westerberg Committed by David S. Miller

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: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarMichael Jamet <michael.jamet@intel.com>
Reviewed-by: default avatarYehezkel Bernat <yehezkel.bernat@intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdae7c07
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define _TB_CFG #define _TB_CFG
#include <linux/kref.h> #include <linux/kref.h>
#include <linux/thunderbolt.h>
#include "nhi.h" #include "nhi.h"
#include "tb_msgs.h" #include "tb_msgs.h"
......
...@@ -15,23 +15,6 @@ ...@@ -15,23 +15,6 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/uuid.h> #include <linux/uuid.h>
enum tb_cfg_pkg_type {
TB_CFG_PKG_READ = 1,
TB_CFG_PKG_WRITE = 2,
TB_CFG_PKG_ERROR = 3,
TB_CFG_PKG_NOTIFY_ACK = 4,
TB_CFG_PKG_EVENT = 5,
TB_CFG_PKG_XDOMAIN_REQ = 6,
TB_CFG_PKG_XDOMAIN_RESP = 7,
TB_CFG_PKG_OVERRIDE = 8,
TB_CFG_PKG_RESET = 9,
TB_CFG_PKG_ICM_EVENT = 10,
TB_CFG_PKG_ICM_CMD = 11,
TB_CFG_PKG_ICM_RESP = 12,
TB_CFG_PKG_PREPARE_TO_SLEEP = 0xd,
};
enum tb_cfg_space { enum tb_cfg_space {
TB_CFG_HOPS = 0, TB_CFG_HOPS = 0,
TB_CFG_PORT = 1, TB_CFG_PORT = 1,
......
/* /*
* Thunderbolt service API * Thunderbolt service API
* *
* Copyright (C) 2014 Andreas Noever <andreas.noever@gmail.com>
* Copyright (C) 2017, Intel Corporation * Copyright (C) 2017, Intel Corporation
* Authors: Michael Jamet <michael.jamet@intel.com> * Authors: Michael Jamet <michael.jamet@intel.com>
* Mika Westerberg <mika.westerberg@linux.intel.com> * Mika Westerberg <mika.westerberg@linux.intel.com>
...@@ -16,6 +17,22 @@ ...@@ -16,6 +17,22 @@
#include <linux/list.h> #include <linux/list.h>
#include <linux/uuid.h> #include <linux/uuid.h>
enum tb_cfg_pkg_type {
TB_CFG_PKG_READ = 1,
TB_CFG_PKG_WRITE = 2,
TB_CFG_PKG_ERROR = 3,
TB_CFG_PKG_NOTIFY_ACK = 4,
TB_CFG_PKG_EVENT = 5,
TB_CFG_PKG_XDOMAIN_REQ = 6,
TB_CFG_PKG_XDOMAIN_RESP = 7,
TB_CFG_PKG_OVERRIDE = 8,
TB_CFG_PKG_RESET = 9,
TB_CFG_PKG_ICM_EVENT = 10,
TB_CFG_PKG_ICM_CMD = 11,
TB_CFG_PKG_ICM_RESP = 12,
TB_CFG_PKG_PREPARE_TO_SLEEP = 13,
};
/** /**
* struct tb_property_dir - XDomain property directory * struct tb_property_dir - XDomain property directory
* @uuid: Directory UUID or %NULL if root directory * @uuid: Directory UUID or %NULL if root directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment