aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/mei_dev.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-01-08 16:07:22 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-08 19:40:46 -0500
commit781d0d89224bbbc438c2c0360cfd4822bb35d280 (patch)
treeccda09fa57cd18a9f875bf46d0ce35b925cd9219 /drivers/misc/mei/mei_dev.h
parent1a1aca42c989051dce34d49b4e04a25dafe01d74 (diff)
mei: normalize me host client linking routines
In order we can use the same code pattern for in-kernel and user space host clients we replace mei_cl_link_to_me with mei_cl_link function. We then have to keep me client lookupout of the new link function. The unlinking cannot be yet symetric due to amthif connection handling Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/mei_dev.h')
-rw-r--r--drivers/misc/mei/mei_dev.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h
index 285e8e01d429..dcd7a44a806e 100644
--- a/drivers/misc/mei/mei_dev.h
+++ b/drivers/misc/mei/mei_dev.h
@@ -67,16 +67,16 @@ extern const u8 mei_wd_state_independence_msg[3][4];
67 * Number of File descriptors/handles 67 * Number of File descriptors/handles
68 * that can be opened to the driver. 68 * that can be opened to the driver.
69 * 69 *
70 * Limit to 253: 256 Total Clients 70 * Limit to 255: 256 Total Clients
71 * minus internal client for MEI Bus Messags 71 * minus internal client for MEI Bus Messags
72 * minus internal client for AMTHI
73 * minus internal client for Watchdog
74 */ 72 */
75#define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 3) 73#define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 1)
76 74
77/* 75/*
78 * Internal Clients Number 76 * Internal Clients Number
79 */ 77 */
78#define MEI_HOST_CLIENT_ID_ANY (-1)
79#define MEI_HBM_HOST_CLIENT_ID 0 /* not used, just for documentation */
80#define MEI_WD_HOST_CLIENT_ID 1 80#define MEI_WD_HOST_CLIENT_ID 1
81#define MEI_IAMTHIF_HOST_CLIENT_ID 2 81#define MEI_IAMTHIF_HOST_CLIENT_ID 2
82 82
@@ -339,7 +339,7 @@ void mei_timer(struct work_struct *work);
339 */ 339 */
340void mei_amthif_reset_params(struct mei_device *dev); 340void mei_amthif_reset_params(struct mei_device *dev);
341 341
342void mei_amthif_host_init(struct mei_device *dev); 342int mei_amthif_host_init(struct mei_device *dev);
343 343
344int mei_amthif_write(struct mei_device *dev, struct mei_cl_cb *priv_cb); 344int mei_amthif_write(struct mei_device *dev, struct mei_cl_cb *priv_cb);
345 345