diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-05-09 09:38:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-09 16:58:06 -0400 |
commit | 4f3afe1d8c8e5dc41bb5820c01b4f3cfc2dc1205 (patch) | |
tree | 87ba07904043f079fc13380f7aa8ff76f11f79b8 /drivers/misc | |
parent | b544f3fd3ac509850f8f1c28b302ae4e65b88346 (diff) |
mei: export mei.h for the user space
The header exports API for application layer
1. move under include/linux and add to the export list
2. update include path n the sources
3. update TODO
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/TODO | 1 | ||||
-rw-r--r-- | drivers/misc/mei/init.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/interface.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/interface.h | 2 | ||||
-rw-r--r-- | drivers/misc/mei/interrupt.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/iorw.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/main.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/mei-amt-version.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/mei.h | 110 | ||||
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 2 | ||||
-rw-r--r-- | drivers/misc/mei/wd.c | 2 |
11 files changed, 9 insertions, 120 deletions
diff --git a/drivers/misc/mei/TODO b/drivers/misc/mei/TODO index fc266018355e..ed4d16c30ab5 100644 --- a/drivers/misc/mei/TODO +++ b/drivers/misc/mei/TODO | |||
@@ -1,7 +1,6 @@ | |||
1 | TODO: | 1 | TODO: |
2 | - Cleanup and split the timer function | 2 | - Cleanup and split the timer function |
3 | Upon Unstaging: | 3 | Upon Unstaging: |
4 | - move mei.h to include/linux/mei.h | ||
5 | - Documentation/ioctl/ioctl-number.txt | 4 | - Documentation/ioctl/ioctl-number.txt |
6 | - move mei.txt under Documentation/mei/ | 5 | - move mei.txt under Documentation/mei/ |
7 | - move mei-amt-version.c under Documentation/mei | 6 | - move mei-amt-version.c under Documentation/mei |
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index afb0a583b566..a7d0bb0880ec 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "mei_dev.h" | 22 | #include "mei_dev.h" |
23 | #include "hw.h" | 23 | #include "hw.h" |
24 | #include "interface.h" | 24 | #include "interface.h" |
25 | #include "mei.h" | 25 | #include <linux/mei.h> |
26 | 26 | ||
27 | const uuid_le mei_amthi_guid = UUID_LE(0x12f80028, 0xb4b7, 0x4b2d, 0xac, | 27 | const uuid_le mei_amthi_guid = UUID_LE(0x12f80028, 0xb4b7, 0x4b2d, 0xac, |
28 | 0xa8, 0x46, 0xe0, 0xff, 0x65, | 28 | 0xa8, 0x46, 0xe0, 0xff, 0x65, |
diff --git a/drivers/misc/mei/interface.c b/drivers/misc/mei/interface.c index 9a2cfafc52a6..428d21e36416 100644 --- a/drivers/misc/mei/interface.c +++ b/drivers/misc/mei/interface.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/pci.h> | 17 | #include <linux/pci.h> |
18 | #include "mei_dev.h" | 18 | #include "mei_dev.h" |
19 | #include "mei.h" | 19 | #include <linux/mei.h> |
20 | #include "interface.h" | 20 | #include "interface.h" |
21 | 21 | ||
22 | 22 | ||
diff --git a/drivers/misc/mei/interface.h b/drivers/misc/mei/interface.h index 0d0043575a2a..ddff5d16616f 100644 --- a/drivers/misc/mei/interface.h +++ b/drivers/misc/mei/interface.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #ifndef _MEI_INTERFACE_H_ | 19 | #ifndef _MEI_INTERFACE_H_ |
20 | #define _MEI_INTERFACE_H_ | 20 | #define _MEI_INTERFACE_H_ |
21 | 21 | ||
22 | #include "mei.h" | 22 | #include <linux/mei.h> |
23 | #include "mei_dev.h" | 23 | #include "mei_dev.h" |
24 | 24 | ||
25 | 25 | ||
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 2007d2447b1c..93936f1b75eb 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/jiffies.h> | 22 | #include <linux/jiffies.h> |
23 | 23 | ||
24 | #include "mei_dev.h" | 24 | #include "mei_dev.h" |
25 | #include "mei.h" | 25 | #include <linux/mei.h> |
26 | #include "hw.h" | 26 | #include "hw.h" |
27 | #include "interface.h" | 27 | #include "interface.h" |
28 | 28 | ||
diff --git a/drivers/misc/mei/iorw.c b/drivers/misc/mei/iorw.c index 0a80dc4e62f3..f9cced69b65e 100644 --- a/drivers/misc/mei/iorw.c +++ b/drivers/misc/mei/iorw.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #include "mei_dev.h" | 36 | #include "mei_dev.h" |
37 | #include "hw.h" | 37 | #include "hw.h" |
38 | #include "mei.h" | 38 | #include <linux/mei.h> |
39 | #include "interface.h" | 39 | #include "interface.h" |
40 | 40 | ||
41 | 41 | ||
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 6510c5adac2a..c70333228337 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/miscdevice.h> | 38 | #include <linux/miscdevice.h> |
39 | 39 | ||
40 | #include "mei_dev.h" | 40 | #include "mei_dev.h" |
41 | #include "mei.h" | 41 | #include <linux/mei.h> |
42 | #include "interface.h" | 42 | #include "interface.h" |
43 | 43 | ||
44 | static const char mei_driver_name[] = "mei"; | 44 | static const char mei_driver_name[] = "mei"; |
diff --git a/drivers/misc/mei/mei-amt-version.c b/drivers/misc/mei/mei-amt-version.c index ac2a507be253..01804f216312 100644 --- a/drivers/misc/mei/mei-amt-version.c +++ b/drivers/misc/mei/mei-amt-version.c | |||
@@ -74,7 +74,7 @@ | |||
74 | #include <stdint.h> | 74 | #include <stdint.h> |
75 | #include <stdbool.h> | 75 | #include <stdbool.h> |
76 | #include <bits/wordsize.h> | 76 | #include <bits/wordsize.h> |
77 | #include "mei.h" | 77 | #include <linux/mei.h> |
78 | 78 | ||
79 | /***************************************************************************** | 79 | /***************************************************************************** |
80 | * Intel Management Engine Interface | 80 | * Intel Management Engine Interface |
diff --git a/drivers/misc/mei/mei.h b/drivers/misc/mei/mei.h deleted file mode 100644 index bc0d8b69c49e..000000000000 --- a/drivers/misc/mei/mei.h +++ /dev/null | |||
@@ -1,110 +0,0 @@ | |||
1 | /****************************************************************************** | ||
2 | * Intel Management Engine Interface (Intel MEI) Linux driver | ||
3 | * Intel MEI Interface Header | ||
4 | * | ||
5 | * This file is provided under a dual BSD/GPLv2 license. When using or | ||
6 | * redistributing this file, you may do so under either license. | ||
7 | * | ||
8 | * GPL LICENSE SUMMARY | ||
9 | * | ||
10 | * Copyright(c) 2003 - 2012 Intel Corporation. All rights reserved. | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of version 2 of the GNU General Public License as | ||
14 | * published by the Free Software Foundation. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, but | ||
17 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
19 | * General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, | ||
24 | * USA | ||
25 | * | ||
26 | * The full GNU General Public License is included in this distribution | ||
27 | * in the file called LICENSE.GPL. | ||
28 | * | ||
29 | * Contact Information: | ||
30 | * Intel Corporation. | ||
31 | * linux-mei@linux.intel.com | ||
32 | * http://www.intel.com | ||
33 | * | ||
34 | * BSD LICENSE | ||
35 | * | ||
36 | * Copyright(c) 2003 - 2012 Intel Corporation. All rights reserved. | ||
37 | * All rights reserved. | ||
38 | * | ||
39 | * Redistribution and use in source and binary forms, with or without | ||
40 | * modification, are permitted provided that the following conditions | ||
41 | * are met: | ||
42 | * | ||
43 | * * Redistributions of source code must retain the above copyright | ||
44 | * notice, this list of conditions and the following disclaimer. | ||
45 | * * Redistributions in binary form must reproduce the above copyright | ||
46 | * notice, this list of conditions and the following disclaimer in | ||
47 | * the documentation and/or other materials provided with the | ||
48 | * distribution. | ||
49 | * * Neither the name Intel Corporation nor the names of its | ||
50 | * contributors may be used to endorse or promote products derived | ||
51 | * from this software without specific prior written permission. | ||
52 | * | ||
53 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
54 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
55 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
56 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
57 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
58 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
59 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
60 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
61 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
62 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
63 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
64 | * | ||
65 | *****************************************************************************/ | ||
66 | |||
67 | #ifndef _LINUX_MEI_H | ||
68 | #define _LINUX_MEI_H | ||
69 | |||
70 | #include <linux/uuid.h> | ||
71 | |||
72 | /* | ||
73 | * This IOCTL is used to associate the current file descriptor with a | ||
74 | * FW Client (given by UUID). This opens a communication channel | ||
75 | * between a host client and a FW client. From this point every read and write | ||
76 | * will communicate with the associated FW client. | ||
77 | * Only in close() (file_operation release()) the communication between | ||
78 | * the clients is disconnected | ||
79 | * | ||
80 | * The IOCTL argument is a struct with a union that contains | ||
81 | * the input parameter and the output parameter for this IOCTL. | ||
82 | * | ||
83 | * The input parameter is UUID of the FW Client. | ||
84 | * The output parameter is the properties of the FW client | ||
85 | * (FW protocol version and max message size). | ||
86 | * | ||
87 | */ | ||
88 | #define IOCTL_MEI_CONNECT_CLIENT \ | ||
89 | _IOWR('H' , 0x01, struct mei_connect_client_data) | ||
90 | |||
91 | /* | ||
92 | * Intel MEI client information struct | ||
93 | */ | ||
94 | struct mei_client { | ||
95 | __u32 max_msg_length; | ||
96 | __u8 protocol_version; | ||
97 | __u8 reserved[3]; | ||
98 | }; | ||
99 | |||
100 | /* | ||
101 | * IOCTL Connect Client Data structure | ||
102 | */ | ||
103 | struct mei_connect_client_data { | ||
104 | union { | ||
105 | uuid_le in_client_uuid; | ||
106 | struct mei_client out_client_properties; | ||
107 | }; | ||
108 | }; | ||
109 | |||
110 | #endif /* _LINUX_MEI_H */ | ||
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 10b1b4e2f8ac..63d7ee97c5fb 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #include <linux/types.h> | 20 | #include <linux/types.h> |
21 | #include <linux/watchdog.h> | 21 | #include <linux/watchdog.h> |
22 | #include "mei.h" | 22 | #include <linux/mei.h> |
23 | #include "hw.h" | 23 | #include "hw.h" |
24 | 24 | ||
25 | /* | 25 | /* |
diff --git a/drivers/misc/mei/wd.c b/drivers/misc/mei/wd.c index 1e6285127e95..6be5605707b4 100644 --- a/drivers/misc/mei/wd.c +++ b/drivers/misc/mei/wd.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "mei_dev.h" | 24 | #include "mei_dev.h" |
25 | #include "hw.h" | 25 | #include "hw.h" |
26 | #include "interface.h" | 26 | #include "interface.h" |
27 | #include "mei.h" | 27 | #include <linux/mei.h> |
28 | 28 | ||
29 | static const u8 mei_start_wd_params[] = { 0x02, 0x12, 0x13, 0x10 }; | 29 | static const u8 mei_start_wd_params[] = { 0x02, 0x12, 0x13, 0x10 }; |
30 | static const u8 mei_stop_wd_params[] = { 0x02, 0x02, 0x14, 0x10 }; | 30 | static const u8 mei_stop_wd_params[] = { 0x02, 0x02, 0x14, 0x10 }; |