cpufreq: qoriq: Fix cooling device registration issue during suspend
[deliverable/linux.git] / drivers / misc / mei / hbm.h
CommitLineData
0edb23fc
TW
1/*
2 *
3 * Intel Management Engine Interface (Intel MEI) Linux driver
4 * Copyright (c) 2003-2012, Intel Corporation.
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_HBM_H_
18#define _MEI_HBM_H_
19
9b0d5efc
TW
20struct mei_device;
21struct mei_msg_hdr;
22struct mei_cl;
23
24/**
25 * enum mei_hbm_state - host bus message protocol state
26 *
27 * @MEI_HBM_IDLE : protocol not started
cb02efc3 28 * @MEI_HBM_STARTING : start request message was sent
9b0d5efc
TW
29 * @MEI_HBM_ENUM_CLIENTS : enumeration request was sent
30 * @MEI_HBM_CLIENT_PROPERTIES : acquiring clients properties
5ebdc364 31 * @MEI_HBM_STARTED : enumeration was completed
cb02efc3 32 * @MEI_HBM_STOPPED : stopping exchange
9b0d5efc
TW
33 */
34enum mei_hbm_state {
35 MEI_HBM_IDLE = 0,
cb02efc3 36 MEI_HBM_STARTING,
9b0d5efc
TW
37 MEI_HBM_ENUM_CLIENTS,
38 MEI_HBM_CLIENT_PROPERTIES,
5ebdc364 39 MEI_HBM_STARTED,
544f9460 40 MEI_HBM_STOPPED,
9b0d5efc
TW
41};
42
1beeb4b9
AU
43const char *mei_hbm_state_str(enum mei_hbm_state state);
44
544f9460 45int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
0edb23fc 46
66ae460b 47void mei_hbm_idle(struct mei_device *dev);
84b3294a 48void mei_hbm_reset(struct mei_device *dev);
9b0d5efc
TW
49int mei_hbm_start_req(struct mei_device *dev);
50int mei_hbm_start_wait(struct mei_device *dev);
0edb23fc
TW
51int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
52int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
6bb948c9 53int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl);
0edb23fc 54int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
2c9b48ac 55bool mei_hbm_version_is_supported(struct mei_device *dev);
4fcbc99b 56int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd);
859ef2ff 57void mei_hbm_pg_resume(struct mei_device *dev);
965ae37a
TW
58int mei_hbm_cl_notify_req(struct mei_device *dev,
59 struct mei_cl *cl, u8 request);
0edb23fc
TW
60
61#endif /* _MEI_HBM_H_ */
62
This page took 0.169425 seconds and 5 git commands to generate.