diff options
Diffstat (limited to 'drivers/misc/mei/hw.h')
-rw-r--r-- | drivers/misc/mei/hw.h | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index 9700532f02f..be8ca6b333c 100644 --- a/drivers/misc/mei/hw.h +++ b/drivers/misc/mei/hw.h | |||
@@ -20,16 +20,16 @@ | |||
20 | #include <linux/uuid.h> | 20 | #include <linux/uuid.h> |
21 | 21 | ||
22 | /* | 22 | /* |
23 | * Timeouts | 23 | * Timeouts in Seconds |
24 | */ | 24 | */ |
25 | #define MEI_INTEROP_TIMEOUT (HZ * 7) | 25 | #define MEI_INTEROP_TIMEOUT 7 /* Timeout on ready message */ |
26 | #define MEI_CONNECT_TIMEOUT 3 /* at least 2 seconds */ | 26 | #define MEI_CONNECT_TIMEOUT 3 /* HPS: at least 2 seconds */ |
27 | 27 | ||
28 | #define CONNECT_TIMEOUT 15 /* HPS definition */ | 28 | #define MEI_CL_CONNECT_TIMEOUT 15 /* HPS: Client Connect Timeout */ |
29 | #define INIT_CLIENTS_TIMEOUT 15 /* HPS definition */ | 29 | #define MEI_CLIENTS_INIT_TIMEOUT 15 /* HPS: Clients Enumeration Timeout */ |
30 | 30 | ||
31 | #define IAMTHIF_STALL_TIMER 12 /* seconds */ | 31 | #define MEI_IAMTHIF_STALL_TIMER 12 /* HPS */ |
32 | #define IAMTHIF_READ_TIMER 10000 /* ms */ | 32 | #define MEI_IAMTHIF_READ_TIMER 10 /* HPS */ |
33 | 33 | ||
34 | /* | 34 | /* |
35 | * Internal Clients Number | 35 | * Internal Clients Number |
@@ -293,6 +293,14 @@ struct hbm_props_response { | |||
293 | struct mei_client_properties client_properties; | 293 | struct mei_client_properties client_properties; |
294 | } __packed; | 294 | } __packed; |
295 | 295 | ||
296 | /** | ||
297 | * struct hbm_client_connect_request - connect/disconnect request | ||
298 | * | ||
299 | * @hbm_cmd - bus message command header | ||
300 | * @me_addr - address of the client in ME | ||
301 | * @host_addr - address of the client in the driver | ||
302 | * @reserved | ||
303 | */ | ||
296 | struct hbm_client_connect_request { | 304 | struct hbm_client_connect_request { |
297 | u8 hbm_cmd; | 305 | u8 hbm_cmd; |
298 | u8 me_addr; | 306 | u8 me_addr; |
@@ -300,6 +308,14 @@ struct hbm_client_connect_request { | |||
300 | u8 reserved; | 308 | u8 reserved; |
301 | } __packed; | 309 | } __packed; |
302 | 310 | ||
311 | /** | ||
312 | * struct hbm_client_connect_response - connect/disconnect response | ||
313 | * | ||
314 | * @hbm_cmd - bus message command header | ||
315 | * @me_addr - address of the client in ME | ||
316 | * @host_addr - address of the client in the driver | ||
317 | * @status - status of the request | ||
318 | */ | ||
303 | struct hbm_client_connect_response { | 319 | struct hbm_client_connect_response { |
304 | u8 hbm_cmd; | 320 | u8 hbm_cmd; |
305 | u8 me_addr; | 321 | u8 me_addr; |
@@ -307,12 +323,6 @@ struct hbm_client_connect_response { | |||
307 | u8 status; | 323 | u8 status; |
308 | } __packed; | 324 | } __packed; |
309 | 325 | ||
310 | struct hbm_client_disconnect_request { | ||
311 | u8 hbm_cmd; | ||
312 | u8 me_addr; | ||
313 | u8 host_addr; | ||
314 | u8 reserved[1]; | ||
315 | } __packed; | ||
316 | 326 | ||
317 | #define MEI_FC_MESSAGE_RESERVED_LENGTH 5 | 327 | #define MEI_FC_MESSAGE_RESERVED_LENGTH 5 |
318 | 328 | ||