Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * Intel Management Engine Interface (Intel MEI) Linux driver |
Tomas Winkler | 733ba91 | 2012-02-09 19:25:53 +0200 | [diff] [blame] | 4 | * Copyright (c) 2003-2012, Intel Corporation. |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms and conditions of the GNU General Public License, |
| 8 | * version 2, as published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 13 | * more details. |
| 14 | * |
| 15 | */ |
| 16 | |
| 17 | #ifndef _MEI_HW_TYPES_H_ |
| 18 | #define _MEI_HW_TYPES_H_ |
| 19 | |
| 20 | #include <linux/uuid.h> |
| 21 | |
| 22 | /* |
Tomas Winkler | 3870c32 | 2012-11-01 21:17:14 +0200 | [diff] [blame] | 23 | * Timeouts in Seconds |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 24 | */ |
Tomas Winkler | 7d93e58 | 2014-01-14 23:10:10 +0200 | [diff] [blame] | 25 | #define MEI_HW_READY_TIMEOUT 2 /* Timeout on ready message */ |
Tomas Winkler | 3870c32 | 2012-11-01 21:17:14 +0200 | [diff] [blame] | 26 | #define MEI_CONNECT_TIMEOUT 3 /* HPS: at least 2 seconds */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 27 | |
Tomas Winkler | 3870c32 | 2012-11-01 21:17:14 +0200 | [diff] [blame] | 28 | #define MEI_CL_CONNECT_TIMEOUT 15 /* HPS: Client Connect Timeout */ |
| 29 | #define MEI_CLIENTS_INIT_TIMEOUT 15 /* HPS: Clients Enumeration Timeout */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 30 | |
Tomas Winkler | 3870c32 | 2012-11-01 21:17:14 +0200 | [diff] [blame] | 31 | #define MEI_IAMTHIF_STALL_TIMER 12 /* HPS */ |
| 32 | #define MEI_IAMTHIF_READ_TIMER 10 /* HPS */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 33 | |
Tomas Winkler | ba9cdd0 | 2014-03-18 22:52:00 +0200 | [diff] [blame] | 34 | #define MEI_PGI_TIMEOUT 1 /* PG Isolation time response 1 sec */ |
Tomas Winkler | 7d93e58 | 2014-01-14 23:10:10 +0200 | [diff] [blame] | 35 | #define MEI_HBM_TIMEOUT 1 /* 1 second */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 36 | |
| 37 | /* |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 38 | * MEI Version |
| 39 | */ |
Tomas Winkler | 61a1aea7 | 2014-03-18 22:52:07 +0200 | [diff] [blame] | 40 | #define HBM_MINOR_VERSION 1 |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 41 | #define HBM_MAJOR_VERSION 1 |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 42 | |
Tomas Winkler | ee7e5af | 2014-03-18 22:51:58 +0200 | [diff] [blame] | 43 | /* |
| 44 | * MEI version with PGI support |
| 45 | */ |
| 46 | #define HBM_MINOR_VERSION_PGI 1 |
| 47 | #define HBM_MAJOR_VERSION_PGI 1 |
| 48 | |
Tomas Winkler | 70ef835 | 2015-07-23 21:37:12 +0300 | [diff] [blame] | 49 | /* |
| 50 | * MEI version with Dynamic clients support |
| 51 | */ |
| 52 | #define HBM_MINOR_VERSION_DC 0 |
| 53 | #define HBM_MAJOR_VERSION_DC 2 |
| 54 | |
Alexander Usyskin | 1890135 | 2015-07-23 21:37:13 +0300 | [diff] [blame^] | 55 | /* |
| 56 | * MEI version with disconnect on connection timeout support |
| 57 | */ |
| 58 | #define HBM_MINOR_VERSION_DOT 0 |
| 59 | #define HBM_MAJOR_VERSION_DOT 2 |
| 60 | |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 61 | /* Host bus message command opcode */ |
| 62 | #define MEI_HBM_CMD_OP_MSK 0x7f |
| 63 | /* Host bus message command RESPONSE */ |
| 64 | #define MEI_HBM_CMD_RES_MSK 0x80 |
| 65 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 66 | /* |
| 67 | * MEI Bus Message Command IDs |
| 68 | */ |
| 69 | #define HOST_START_REQ_CMD 0x01 |
| 70 | #define HOST_START_RES_CMD 0x81 |
| 71 | |
| 72 | #define HOST_STOP_REQ_CMD 0x02 |
| 73 | #define HOST_STOP_RES_CMD 0x82 |
| 74 | |
| 75 | #define ME_STOP_REQ_CMD 0x03 |
| 76 | |
| 77 | #define HOST_ENUM_REQ_CMD 0x04 |
| 78 | #define HOST_ENUM_RES_CMD 0x84 |
| 79 | |
| 80 | #define HOST_CLIENT_PROPERTIES_REQ_CMD 0x05 |
| 81 | #define HOST_CLIENT_PROPERTIES_RES_CMD 0x85 |
| 82 | |
| 83 | #define CLIENT_CONNECT_REQ_CMD 0x06 |
| 84 | #define CLIENT_CONNECT_RES_CMD 0x86 |
| 85 | |
| 86 | #define CLIENT_DISCONNECT_REQ_CMD 0x07 |
| 87 | #define CLIENT_DISCONNECT_RES_CMD 0x87 |
| 88 | |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 89 | #define MEI_FLOW_CONTROL_CMD 0x08 |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 90 | |
Tomas Winkler | 4fcbc99 | 2014-03-18 22:51:55 +0200 | [diff] [blame] | 91 | #define MEI_PG_ISOLATION_ENTRY_REQ_CMD 0x0a |
| 92 | #define MEI_PG_ISOLATION_ENTRY_RES_CMD 0x8a |
| 93 | #define MEI_PG_ISOLATION_EXIT_REQ_CMD 0x0b |
| 94 | #define MEI_PG_ISOLATION_EXIT_RES_CMD 0x8b |
| 95 | |
Tomas Winkler | 70ef835 | 2015-07-23 21:37:12 +0300 | [diff] [blame] | 96 | #define MEI_HBM_ADD_CLIENT_REQ_CMD 0x0f |
| 97 | #define MEI_HBM_ADD_CLIENT_RES_CMD 0x8f |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 98 | /* |
| 99 | * MEI Stop Reason |
| 100 | * used by hbm_host_stop_request.reason |
| 101 | */ |
| 102 | enum mei_stop_reason_types { |
| 103 | DRIVER_STOP_REQUEST = 0x00, |
| 104 | DEVICE_D1_ENTRY = 0x01, |
| 105 | DEVICE_D2_ENTRY = 0x02, |
| 106 | DEVICE_D3_ENTRY = 0x03, |
| 107 | SYSTEM_S1_ENTRY = 0x04, |
| 108 | SYSTEM_S2_ENTRY = 0x05, |
| 109 | SYSTEM_S3_ENTRY = 0x06, |
| 110 | SYSTEM_S4_ENTRY = 0x07, |
| 111 | SYSTEM_S5_ENTRY = 0x08 |
| 112 | }; |
| 113 | |
Tomas Winkler | 89778d6 | 2014-08-21 14:29:16 +0300 | [diff] [blame] | 114 | |
| 115 | /** |
Alexander Usyskin | a8605ea | 2014-09-29 16:31:49 +0300 | [diff] [blame] | 116 | * enum mei_hbm_status - mei host bus messages return values |
Tomas Winkler | 89778d6 | 2014-08-21 14:29:16 +0300 | [diff] [blame] | 117 | * |
Alexander Usyskin | a8605ea | 2014-09-29 16:31:49 +0300 | [diff] [blame] | 118 | * @MEI_HBMS_SUCCESS : status success |
| 119 | * @MEI_HBMS_CLIENT_NOT_FOUND : client not found |
| 120 | * @MEI_HBMS_ALREADY_EXISTS : connection already established |
| 121 | * @MEI_HBMS_REJECTED : connection is rejected |
| 122 | * @MEI_HBMS_INVALID_PARAMETER : invalid parameter |
| 123 | * @MEI_HBMS_NOT_ALLOWED : operation not allowed |
| 124 | * @MEI_HBMS_ALREADY_STARTED : system is already started |
| 125 | * @MEI_HBMS_NOT_STARTED : system not started |
Alexander Usyskin | ce23139 | 2014-09-29 16:31:50 +0300 | [diff] [blame] | 126 | * |
| 127 | * @MEI_HBMS_MAX : sentinel |
Tomas Winkler | 89778d6 | 2014-08-21 14:29:16 +0300 | [diff] [blame] | 128 | */ |
| 129 | enum mei_hbm_status { |
| 130 | MEI_HBMS_SUCCESS = 0, |
| 131 | MEI_HBMS_CLIENT_NOT_FOUND = 1, |
| 132 | MEI_HBMS_ALREADY_EXISTS = 2, |
| 133 | MEI_HBMS_REJECTED = 3, |
| 134 | MEI_HBMS_INVALID_PARAMETER = 4, |
| 135 | MEI_HBMS_NOT_ALLOWED = 5, |
| 136 | MEI_HBMS_ALREADY_STARTED = 6, |
| 137 | MEI_HBMS_NOT_STARTED = 7, |
| 138 | |
| 139 | MEI_HBMS_MAX |
| 140 | }; |
| 141 | |
| 142 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 143 | /* |
| 144 | * Client Connect Status |
| 145 | * used by hbm_client_connect_response.status |
| 146 | */ |
Alexander Usyskin | 285e299 | 2014-02-17 15:13:20 +0200 | [diff] [blame] | 147 | enum mei_cl_connect_status { |
Tomas Winkler | 89778d6 | 2014-08-21 14:29:16 +0300 | [diff] [blame] | 148 | MEI_CL_CONN_SUCCESS = MEI_HBMS_SUCCESS, |
| 149 | MEI_CL_CONN_NOT_FOUND = MEI_HBMS_CLIENT_NOT_FOUND, |
| 150 | MEI_CL_CONN_ALREADY_STARTED = MEI_HBMS_ALREADY_EXISTS, |
| 151 | MEI_CL_CONN_OUT_OF_RESOURCES = MEI_HBMS_REJECTED, |
| 152 | MEI_CL_CONN_MESSAGE_SMALL = MEI_HBMS_INVALID_PARAMETER, |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 153 | }; |
| 154 | |
| 155 | /* |
| 156 | * Client Disconnect Status |
| 157 | */ |
Alexander Usyskin | 285e299 | 2014-02-17 15:13:20 +0200 | [diff] [blame] | 158 | enum mei_cl_disconnect_status { |
Tomas Winkler | 89778d6 | 2014-08-21 14:29:16 +0300 | [diff] [blame] | 159 | MEI_CL_DISCONN_SUCCESS = MEI_HBMS_SUCCESS |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 160 | }; |
| 161 | |
| 162 | /* |
| 163 | * MEI BUS Interface Section |
| 164 | */ |
| 165 | struct mei_msg_hdr { |
| 166 | u32 me_addr:8; |
| 167 | u32 host_addr:8; |
| 168 | u32 length:9; |
Tomas Winkler | 479327f | 2013-12-17 15:56:56 +0200 | [diff] [blame] | 169 | u32 reserved:5; |
| 170 | u32 internal:1; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 171 | u32 msg_complete:1; |
| 172 | } __packed; |
| 173 | |
| 174 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 175 | struct mei_bus_message { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 176 | u8 hbm_cmd; |
| 177 | u8 data[0]; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 178 | } __packed; |
| 179 | |
Tomas Winkler | cd51ed6 | 2012-12-25 19:06:09 +0200 | [diff] [blame] | 180 | /** |
| 181 | * struct hbm_cl_cmd - client specific host bus command |
| 182 | * CONNECT, DISCONNECT, and FlOW CONTROL |
| 183 | * |
Alexander Usyskin | a8605ea | 2014-09-29 16:31:49 +0300 | [diff] [blame] | 184 | * @hbm_cmd: bus message command header |
| 185 | * @me_addr: address of the client in ME |
| 186 | * @host_addr: address of the client in the driver |
| 187 | * @data: generic data |
Tomas Winkler | cd51ed6 | 2012-12-25 19:06:09 +0200 | [diff] [blame] | 188 | */ |
| 189 | struct mei_hbm_cl_cmd { |
| 190 | u8 hbm_cmd; |
| 191 | u8 me_addr; |
| 192 | u8 host_addr; |
| 193 | u8 data; |
| 194 | }; |
| 195 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 196 | struct hbm_version { |
| 197 | u8 minor_version; |
| 198 | u8 major_version; |
| 199 | } __packed; |
| 200 | |
| 201 | struct hbm_host_version_request { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 202 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 203 | u8 reserved; |
| 204 | struct hbm_version host_version; |
| 205 | } __packed; |
| 206 | |
| 207 | struct hbm_host_version_response { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 208 | u8 hbm_cmd; |
Tomas Winkler | 4b00706 | 2012-02-23 21:52:55 +0200 | [diff] [blame] | 209 | u8 host_version_supported; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 210 | struct hbm_version me_max_version; |
| 211 | } __packed; |
| 212 | |
| 213 | struct hbm_host_stop_request { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 214 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 215 | u8 reason; |
| 216 | u8 reserved[2]; |
| 217 | } __packed; |
| 218 | |
| 219 | struct hbm_host_stop_response { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 220 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 221 | u8 reserved[3]; |
| 222 | } __packed; |
| 223 | |
| 224 | struct hbm_me_stop_request { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 225 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 226 | u8 reason; |
| 227 | u8 reserved[2]; |
| 228 | } __packed; |
| 229 | |
Tomas Winkler | 70ef835 | 2015-07-23 21:37:12 +0300 | [diff] [blame] | 230 | /** |
| 231 | * struct hbm_host_enum_request - enumeration request from host to fw |
| 232 | * |
| 233 | * @hbm_cmd: bus message command header |
| 234 | * @allow_add: allow dynamic clients add HBM version >= 2.0 |
| 235 | * @reserved: reserved |
| 236 | */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 237 | struct hbm_host_enum_request { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 238 | u8 hbm_cmd; |
Tomas Winkler | 70ef835 | 2015-07-23 21:37:12 +0300 | [diff] [blame] | 239 | u8 allow_add; |
| 240 | u8 reserved[2]; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 241 | } __packed; |
| 242 | |
| 243 | struct hbm_host_enum_response { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 244 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 245 | u8 reserved[3]; |
| 246 | u8 valid_addresses[32]; |
| 247 | } __packed; |
| 248 | |
| 249 | struct mei_client_properties { |
| 250 | uuid_le protocol_name; |
| 251 | u8 protocol_version; |
| 252 | u8 max_number_of_connections; |
| 253 | u8 fixed_address; |
| 254 | u8 single_recv_buf; |
| 255 | u32 max_msg_length; |
| 256 | } __packed; |
| 257 | |
| 258 | struct hbm_props_request { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 259 | u8 hbm_cmd; |
Tomas Winkler | 3438c1f | 2014-08-21 14:29:10 +0300 | [diff] [blame] | 260 | u8 me_addr; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 261 | u8 reserved[2]; |
| 262 | } __packed; |
| 263 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 264 | struct hbm_props_response { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 265 | u8 hbm_cmd; |
Tomas Winkler | 3438c1f | 2014-08-21 14:29:10 +0300 | [diff] [blame] | 266 | u8 me_addr; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 267 | u8 status; |
| 268 | u8 reserved[1]; |
| 269 | struct mei_client_properties client_properties; |
| 270 | } __packed; |
| 271 | |
Tomas Winkler | aeba4a0 | 2012-11-11 17:38:04 +0200 | [diff] [blame] | 272 | /** |
Tomas Winkler | 70ef835 | 2015-07-23 21:37:12 +0300 | [diff] [blame] | 273 | * struct hbm_add_client_request - request to add a client |
| 274 | * might be sent by fw after enumeration has already completed |
| 275 | * |
| 276 | * @hbm_cmd: bus message command header |
| 277 | * @me_addr: address of the client in ME |
| 278 | * @reserved: reserved |
| 279 | * @client_properties: client properties |
| 280 | */ |
| 281 | struct hbm_add_client_request { |
| 282 | u8 hbm_cmd; |
| 283 | u8 me_addr; |
| 284 | u8 reserved[2]; |
| 285 | struct mei_client_properties client_properties; |
| 286 | } __packed; |
| 287 | |
| 288 | /** |
| 289 | * struct hbm_add_client_response - response to add a client |
| 290 | * sent by the host to report client addition status to fw |
| 291 | * |
| 292 | * @hbm_cmd: bus message command header |
| 293 | * @me_addr: address of the client in ME |
| 294 | * @status: if HBMS_SUCCESS then the client can now accept connections. |
| 295 | * @reserved: reserved |
| 296 | */ |
| 297 | struct hbm_add_client_response { |
| 298 | u8 hbm_cmd; |
| 299 | u8 me_addr; |
| 300 | u8 status; |
| 301 | u8 reserved[1]; |
| 302 | } __packed; |
| 303 | |
| 304 | /** |
Tomas Winkler | 4fcbc99 | 2014-03-18 22:51:55 +0200 | [diff] [blame] | 305 | * struct hbm_power_gate - power gate request/response |
| 306 | * |
Alexander Usyskin | a8605ea | 2014-09-29 16:31:49 +0300 | [diff] [blame] | 307 | * @hbm_cmd: bus message command header |
| 308 | * @reserved: reserved |
Tomas Winkler | 4fcbc99 | 2014-03-18 22:51:55 +0200 | [diff] [blame] | 309 | */ |
| 310 | struct hbm_power_gate { |
| 311 | u8 hbm_cmd; |
| 312 | u8 reserved[3]; |
| 313 | } __packed; |
| 314 | |
| 315 | /** |
Tomas Winkler | aeba4a0 | 2012-11-11 17:38:04 +0200 | [diff] [blame] | 316 | * struct hbm_client_connect_request - connect/disconnect request |
| 317 | * |
Alexander Usyskin | a8605ea | 2014-09-29 16:31:49 +0300 | [diff] [blame] | 318 | * @hbm_cmd: bus message command header |
| 319 | * @me_addr: address of the client in ME |
| 320 | * @host_addr: address of the client in the driver |
| 321 | * @reserved: reserved |
Tomas Winkler | aeba4a0 | 2012-11-11 17:38:04 +0200 | [diff] [blame] | 322 | */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 323 | struct hbm_client_connect_request { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 324 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 325 | u8 me_addr; |
| 326 | u8 host_addr; |
| 327 | u8 reserved; |
| 328 | } __packed; |
| 329 | |
Tomas Winkler | aeba4a0 | 2012-11-11 17:38:04 +0200 | [diff] [blame] | 330 | /** |
| 331 | * struct hbm_client_connect_response - connect/disconnect response |
| 332 | * |
Alexander Usyskin | a8605ea | 2014-09-29 16:31:49 +0300 | [diff] [blame] | 333 | * @hbm_cmd: bus message command header |
| 334 | * @me_addr: address of the client in ME |
| 335 | * @host_addr: address of the client in the driver |
| 336 | * @status: status of the request |
Tomas Winkler | aeba4a0 | 2012-11-11 17:38:04 +0200 | [diff] [blame] | 337 | */ |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 338 | struct hbm_client_connect_response { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 339 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 340 | u8 me_addr; |
| 341 | u8 host_addr; |
| 342 | u8 status; |
| 343 | } __packed; |
| 344 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 345 | |
| 346 | #define MEI_FC_MESSAGE_RESERVED_LENGTH 5 |
| 347 | |
| 348 | struct hbm_flow_control { |
Tomas Winkler | 1ca7e78 | 2012-02-26 23:18:57 +0200 | [diff] [blame] | 349 | u8 hbm_cmd; |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 350 | u8 me_addr; |
| 351 | u8 host_addr; |
| 352 | u8 reserved[MEI_FC_MESSAGE_RESERVED_LENGTH]; |
| 353 | } __packed; |
| 354 | |
Oren Weil | 5a6003f | 2011-05-15 13:43:45 +0300 | [diff] [blame] | 355 | |
| 356 | #endif |