diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-03-27 10:58:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 11:32:21 -0400 |
commit | 40e0b67be099175d069b0cf46f1102f352d46c61 (patch) | |
tree | 706bab97fd9c28db824f67a8509798ca46c76f0c /drivers/misc | |
parent | b68301e9acd30f7fd63533a145f5e003e25ac9bd (diff) |
mei: move mei-me to separate module
mei layer provides host bus message layer, client management,
and os interface
mei-me - provides access to ME hardware through
the pci bus
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/Kconfig | 5 | ||||
-rw-r--r-- | drivers/misc/mei/Makefile | 6 | ||||
-rw-r--r-- | drivers/misc/mei/init.c | 7 | ||||
-rw-r--r-- | drivers/misc/mei/interrupt.c | 4 | ||||
-rw-r--r-- | drivers/misc/mei/main.c | 4 |
5 files changed, 19 insertions, 7 deletions
diff --git a/drivers/misc/mei/Kconfig b/drivers/misc/mei/Kconfig index d21b4d006a55..c76fa31e9bf6 100644 --- a/drivers/misc/mei/Kconfig +++ b/drivers/misc/mei/Kconfig | |||
@@ -10,10 +10,9 @@ config INTEL_MEI | |||
10 | <http://software.intel.com/en-us/manageability/> | 10 | <http://software.intel.com/en-us/manageability/> |
11 | 11 | ||
12 | config INTEL_MEI_ME | 12 | config INTEL_MEI_ME |
13 | bool "ME Enabled Intel Chipsets" | 13 | tristate "ME Enabled Intel Chipsets" |
14 | depends on INTEL_MEI | 14 | select INTEL_MEI |
15 | depends on X86 && PCI && WATCHDOG_CORE | 15 | depends on X86 && PCI && WATCHDOG_CORE |
16 | default y | ||
17 | help | 16 | help |
18 | MEI support for ME Enabled Intel chipsets. | 17 | MEI support for ME Enabled Intel chipsets. |
19 | 18 | ||
diff --git a/drivers/misc/mei/Makefile b/drivers/misc/mei/Makefile index 040af6c7b147..2c336d087749 100644 --- a/drivers/misc/mei/Makefile +++ b/drivers/misc/mei/Makefile | |||
@@ -10,5 +10,7 @@ mei-objs += client.o | |||
10 | mei-objs += main.o | 10 | mei-objs += main.o |
11 | mei-objs += amthif.o | 11 | mei-objs += amthif.o |
12 | mei-objs += wd.o | 12 | mei-objs += wd.o |
13 | mei-$(CONFIG_INTEL_MEI_ME) += pci-me.o | 13 | |
14 | mei-$(CONFIG_INTEL_MEI_ME) += hw-me.o | 14 | obj-$(CONFIG_INTEL_MEI_ME) += mei-me.o |
15 | mei-me-objs := pci-me.o | ||
16 | mei-me-objs += hw-me.o | ||
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index b3f7c3e761a0..c1c8d760bc34 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -14,6 +14,7 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <linux/export.h> | ||
17 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
18 | #include <linux/sched.h> | 19 | #include <linux/sched.h> |
19 | #include <linux/wait.h> | 20 | #include <linux/wait.h> |
@@ -67,6 +68,7 @@ void mei_device_init(struct mei_device *dev) | |||
67 | mei_io_list_init(&dev->amthif_rd_complete_list); | 68 | mei_io_list_init(&dev->amthif_rd_complete_list); |
68 | 69 | ||
69 | } | 70 | } |
71 | EXPORT_SYMBOL_GPL(mei_device_init); | ||
70 | 72 | ||
71 | /** | 73 | /** |
72 | * mei_start - initializes host and fw to start work. | 74 | * mei_start - initializes host and fw to start work. |
@@ -136,6 +138,7 @@ err: | |||
136 | mutex_unlock(&dev->device_lock); | 138 | mutex_unlock(&dev->device_lock); |
137 | return -ENODEV; | 139 | return -ENODEV; |
138 | } | 140 | } |
141 | EXPORT_SYMBOL_GPL(mei_start); | ||
139 | 142 | ||
140 | /** | 143 | /** |
141 | * mei_reset - resets host and fw. | 144 | * mei_reset - resets host and fw. |
@@ -203,6 +206,7 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled) | |||
203 | /* remove all waiting requests */ | 206 | /* remove all waiting requests */ |
204 | mei_cl_all_write_clear(dev); | 207 | mei_cl_all_write_clear(dev); |
205 | } | 208 | } |
209 | EXPORT_SYMBOL_GPL(mei_reset); | ||
206 | 210 | ||
207 | void mei_stop(struct mei_device *dev) | 211 | void mei_stop(struct mei_device *dev) |
208 | { | 212 | { |
@@ -222,9 +226,8 @@ void mei_stop(struct mei_device *dev) | |||
222 | flush_scheduled_work(); | 226 | flush_scheduled_work(); |
223 | 227 | ||
224 | mei_watchdog_unregister(dev); | 228 | mei_watchdog_unregister(dev); |
225 | |||
226 | } | 229 | } |
227 | 230 | EXPORT_SYMBOL_GPL(mei_stop); | |
228 | 231 | ||
229 | 232 | ||
230 | 233 | ||
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 73fbce3e7746..6ce45ef2cd6c 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -15,6 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | 17 | ||
18 | #include <linux/export.h> | ||
18 | #include <linux/pci.h> | 19 | #include <linux/pci.h> |
19 | #include <linux/kthread.h> | 20 | #include <linux/kthread.h> |
20 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
@@ -78,6 +79,7 @@ void mei_irq_compl_handler(struct mei_device *dev, struct mei_cl_cb *compl_list) | |||
78 | mei_cl_complete_handler(cl, cb); | 79 | mei_cl_complete_handler(cl, cb); |
79 | } | 80 | } |
80 | } | 81 | } |
82 | EXPORT_SYMBOL_GPL(mei_irq_compl_handler); | ||
81 | /** | 83 | /** |
82 | * _mei_irq_thread_state_ok - checks if mei header matches file private data | 84 | * _mei_irq_thread_state_ok - checks if mei header matches file private data |
83 | * | 85 | * |
@@ -440,6 +442,7 @@ int mei_irq_read_handler(struct mei_device *dev, | |||
440 | end: | 442 | end: |
441 | return ret; | 443 | return ret; |
442 | } | 444 | } |
445 | EXPORT_SYMBOL_GPL(mei_irq_read_handler); | ||
443 | 446 | ||
444 | 447 | ||
445 | /** | 448 | /** |
@@ -590,6 +593,7 @@ int mei_irq_write_handler(struct mei_device *dev, struct mei_cl_cb *cmpl_list) | |||
590 | } | 593 | } |
591 | return 0; | 594 | return 0; |
592 | } | 595 | } |
596 | EXPORT_SYMBOL_GPL(mei_irq_write_handler); | ||
593 | 597 | ||
594 | 598 | ||
595 | 599 | ||
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 903f809b21f7..27b3df2ba070 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c | |||
@@ -758,12 +758,16 @@ int mei_register(struct device *dev) | |||
758 | mei_misc_device.parent = dev; | 758 | mei_misc_device.parent = dev; |
759 | return misc_register(&mei_misc_device); | 759 | return misc_register(&mei_misc_device); |
760 | } | 760 | } |
761 | EXPORT_SYMBOL_GPL(mei_register); | ||
761 | 762 | ||
762 | void mei_deregister(void) | 763 | void mei_deregister(void) |
763 | { | 764 | { |
764 | misc_deregister(&mei_misc_device); | 765 | misc_deregister(&mei_misc_device); |
765 | mei_misc_device.parent = NULL; | 766 | mei_misc_device.parent = NULL; |
766 | } | 767 | } |
768 | EXPORT_SYMBOL_GPL(mei_deregister); | ||
767 | 769 | ||
770 | MODULE_AUTHOR("Intel Corporation"); | ||
771 | MODULE_DESCRIPTION("Intel(R) Management Engine Interface"); | ||
768 | MODULE_LICENSE("GPL v2"); | 772 | MODULE_LICENSE("GPL v2"); |
769 | 773 | ||