xref: /openbmc/linux/drivers/misc/mei/hbm.h (revision 0edb23fc3451c84350edcc999c023d225a49530d)
1*0edb23fcSTomas Winkler /*
2*0edb23fcSTomas Winkler  *
3*0edb23fcSTomas Winkler  * Intel Management Engine Interface (Intel MEI) Linux driver
4*0edb23fcSTomas Winkler  * Copyright (c) 2003-2012, Intel Corporation.
5*0edb23fcSTomas Winkler  *
6*0edb23fcSTomas Winkler  * This program is free software; you can redistribute it and/or modify it
7*0edb23fcSTomas Winkler  * under the terms and conditions of the GNU General Public License,
8*0edb23fcSTomas Winkler  * version 2, as published by the Free Software Foundation.
9*0edb23fcSTomas Winkler  *
10*0edb23fcSTomas Winkler  * This program is distributed in the hope it will be useful, but WITHOUT
11*0edb23fcSTomas Winkler  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12*0edb23fcSTomas Winkler  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13*0edb23fcSTomas Winkler  * more details.
14*0edb23fcSTomas Winkler  *
15*0edb23fcSTomas Winkler  */
16*0edb23fcSTomas Winkler 
17*0edb23fcSTomas Winkler #ifndef _MEI_HBM_H_
18*0edb23fcSTomas Winkler #define _MEI_HBM_H_
19*0edb23fcSTomas Winkler 
20*0edb23fcSTomas Winkler void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
21*0edb23fcSTomas Winkler 
22*0edb23fcSTomas Winkler static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
23*0edb23fcSTomas Winkler {
24*0edb23fcSTomas Winkler 	hdr->host_addr = 0;
25*0edb23fcSTomas Winkler 	hdr->me_addr = 0;
26*0edb23fcSTomas Winkler 	hdr->length = length;
27*0edb23fcSTomas Winkler 	hdr->msg_complete = 1;
28*0edb23fcSTomas Winkler 	hdr->reserved = 0;
29*0edb23fcSTomas Winkler }
30*0edb23fcSTomas Winkler 
31*0edb23fcSTomas Winkler void mei_hbm_start_req(struct mei_device *dev);
32*0edb23fcSTomas Winkler 
33*0edb23fcSTomas Winkler int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
34*0edb23fcSTomas Winkler int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
35*0edb23fcSTomas Winkler int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
36*0edb23fcSTomas Winkler 
37*0edb23fcSTomas Winkler 
38*0edb23fcSTomas Winkler #endif /* _MEI_HBM_H_ */
39*0edb23fcSTomas Winkler 
40