1
2
3
4
5
6
7#ifndef _MEI_HBM_H_
8#define _MEI_HBM_H_
9
10struct mei_device;
11struct mei_msg_hdr;
12struct mei_cl;
13
14
15
16
17
18
19
20
21
22
23
24
25
26enum mei_hbm_state {
27 MEI_HBM_IDLE = 0,
28 MEI_HBM_STARTING,
29 MEI_HBM_CAP_SETUP,
30 MEI_HBM_DR_SETUP,
31 MEI_HBM_ENUM_CLIENTS,
32 MEI_HBM_CLIENT_PROPERTIES,
33 MEI_HBM_STARTED,
34 MEI_HBM_STOPPED,
35};
36
37const char *mei_hbm_state_str(enum mei_hbm_state state);
38
39int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
40
41void mei_hbm_idle(struct mei_device *dev);
42void mei_hbm_reset(struct mei_device *dev);
43int mei_hbm_start_req(struct mei_device *dev);
44int mei_hbm_start_wait(struct mei_device *dev);
45int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
46int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
47int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl);
48int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
49bool mei_hbm_version_is_supported(struct mei_device *dev);
50int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd);
51void mei_hbm_pg_resume(struct mei_device *dev);
52int mei_hbm_cl_notify_req(struct mei_device *dev,
53 struct mei_cl *cl, u8 request);
54
55#endif
56
57