3 * Intel Management Engine Interface (Intel MEI) Linux driver
4 * Copyright (c) 2003-2012, Intel Corporation.
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.
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
25 * enum mei_hbm_state - host bus message protocol state
27 * @MEI_HBM_IDLE : protocol not started
28 * @MEI_HBM_START : start request message was sent
29 * @MEI_HBM_ENUM_CLIENTS : enumeration request was sent
30 * @MEI_HBM_CLIENT_PROPERTIES : acquiring clients properties
37 MEI_HBM_CLIENT_PROPERTIES,
41 int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
43 static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
48 hdr->msg_complete = 1;
52 void mei_hbm_idle(struct mei_device *dev);
53 void mei_hbm_reset(struct mei_device *dev);
54 int mei_hbm_start_req(struct mei_device *dev);
55 int mei_hbm_start_wait(struct mei_device *dev);
56 int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
57 int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
58 int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl);
59 int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
60 bool mei_hbm_version_is_supported(struct mei_device *dev);
61 int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd);
63 #endif /* _MEI_HBM_H_ */