diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-11-11 10:38:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-15 18:34:19 -0500 |
commit | aeba4a06f28fad11b1e61d150bd3cde3008b80c8 (patch) | |
tree | f30ec9285fb6ac3c6d3b52f9f3bf5ad81bec42c0 /drivers/misc/mei/hw.h | |
parent | ff8b2f4e424a489222d3c7d55fb2d04c9639ef98 (diff) |
mei: use the same bus msg for connect and disconnect request
structs hbm_client_connect_request and hbm_client_disconnect_request
have the same layout so we can drop the later
Add kdoc for the request and response structure so it is clear
they can be used for both purposes
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw.h')
-rw-r--r-- | drivers/misc/mei/hw.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index f21721aa4dc1..be8ca6b333ca 100644 --- a/drivers/misc/mei/hw.h +++ b/drivers/misc/mei/hw.h | |||
@@ -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 | ||