diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /drivers/staging/mei/interface.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'drivers/staging/mei/interface.h')
-rw-r--r-- | drivers/staging/mei/interface.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/drivers/staging/mei/interface.h b/drivers/staging/mei/interface.h new file mode 100644 index 00000000000..d0bf5cf4f3e --- /dev/null +++ b/drivers/staging/mei/interface.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * | ||
3 | * Intel Management Engine Interface (Intel MEI) Linux driver | ||
4 | * Copyright (c) 2003-2011, 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 | |||
18 | |||
19 | #ifndef _MEI_INTERFACE_H_ | ||
20 | #define _MEI_INTERFACE_H_ | ||
21 | |||
22 | #include "mei.h" | ||
23 | #include "mei_dev.h" | ||
24 | |||
25 | |||
26 | #define AMT_WD_VALUE 120 /* seconds */ | ||
27 | |||
28 | #define MEI_WATCHDOG_DATA_SIZE 16 | ||
29 | #define MEI_START_WD_DATA_SIZE 20 | ||
30 | #define MEI_WD_PARAMS_SIZE 4 | ||
31 | |||
32 | |||
33 | void mei_read_slots(struct mei_device *dev, | ||
34 | unsigned char *buffer, unsigned long buffer_length); | ||
35 | |||
36 | int mei_write_message(struct mei_device *dev, | ||
37 | struct mei_msg_hdr *header, | ||
38 | unsigned char *write_buffer, | ||
39 | unsigned long write_length); | ||
40 | |||
41 | int mei_host_buffer_is_empty(struct mei_device *dev); | ||
42 | |||
43 | int mei_count_full_read_slots(struct mei_device *dev); | ||
44 | |||
45 | int mei_count_empty_write_slots(struct mei_device *dev); | ||
46 | |||
47 | int mei_flow_ctrl_creds(struct mei_device *dev, struct mei_cl *cl); | ||
48 | |||
49 | int mei_wd_send(struct mei_device *dev); | ||
50 | int mei_wd_stop(struct mei_device *dev, bool preserve); | ||
51 | void mei_wd_host_init(struct mei_device *dev); | ||
52 | void mei_wd_start_setup(struct mei_device *dev); | ||
53 | |||
54 | int mei_flow_ctrl_reduce(struct mei_device *dev, struct mei_cl *cl); | ||
55 | |||
56 | int mei_send_flow_control(struct mei_device *dev, struct mei_cl *cl); | ||
57 | |||
58 | int mei_disconnect(struct mei_device *dev, struct mei_cl *cl); | ||
59 | int mei_other_client_is_connecting(struct mei_device *dev, struct mei_cl *cl); | ||
60 | int mei_connect(struct mei_device *dev, struct mei_cl *cl); | ||
61 | |||
62 | #endif /* _MEI_INTERFACE_H_ */ | ||