aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/amthif.c1
-rw-r--r--drivers/misc/mei/hbm.c1
-rw-r--r--drivers/misc/mei/hbm.h39
-rw-r--r--drivers/misc/mei/init.c1
-rw-r--r--drivers/misc/mei/interface.h7
-rw-r--r--drivers/misc/mei/interrupt.c1
-rw-r--r--drivers/misc/mei/iorw.c1
-rw-r--r--drivers/misc/mei/mei_dev.h10
-rw-r--r--drivers/misc/mei/wd.c1
9 files changed, 47 insertions, 15 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index 6e3cd31eae3b..add4254eb850 100644
--- a/drivers/misc/mei/amthif.c
+++ b/drivers/misc/mei/amthif.c
@@ -34,6 +34,7 @@
34#include <linux/mei.h> 34#include <linux/mei.h>
35 35
36#include "mei_dev.h" 36#include "mei_dev.h"
37#include "hbm.h"
37#include "interface.h" 38#include "interface.h"
38 39
39const uuid_le mei_amthi_guid = UUID_LE(0x12f80028, 0xb4b7, 0x4b2d, 0xac, 40const uuid_le mei_amthi_guid = UUID_LE(0x12f80028, 0xb4b7, 0x4b2d, 0xac,
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index 6b58b0a10378..9956aaf58aa4 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -20,6 +20,7 @@
20#include <linux/mei.h> 20#include <linux/mei.h>
21 21
22#include "mei_dev.h" 22#include "mei_dev.h"
23#include "hbm.h"
23#include "interface.h" 24#include "interface.h"
24 25
25/** 26/**
diff --git a/drivers/misc/mei/hbm.h b/drivers/misc/mei/hbm.h
new file mode 100644
index 000000000000..b552afbaf85c
--- /dev/null
+++ b/drivers/misc/mei/hbm.h
@@ -0,0 +1,39 @@
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
20void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
21
22static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
23{
24 hdr->host_addr = 0;
25 hdr->me_addr = 0;
26 hdr->length = length;
27 hdr->msg_complete = 1;
28 hdr->reserved = 0;
29}
30
31void mei_hbm_start_req(struct mei_device *dev);
32
33int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
34int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
35int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
36
37
38#endif /* _MEI_HBM_H_ */
39
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c
index 418a85f315f1..55895fc21ff1 100644
--- a/drivers/misc/mei/init.c
+++ b/drivers/misc/mei/init.c
@@ -22,6 +22,7 @@
22#include <linux/mei.h> 22#include <linux/mei.h>
23 23
24#include "mei_dev.h" 24#include "mei_dev.h"
25#include "hbm.h"
25#include "interface.h" 26#include "interface.h"
26 27
27const char *mei_dev_state_str(int state) 28const char *mei_dev_state_str(int state)
diff --git a/drivers/misc/mei/interface.h b/drivers/misc/mei/interface.h
index 90a3dfda9db5..3d06c087ddd2 100644
--- a/drivers/misc/mei/interface.h
+++ b/drivers/misc/mei/interface.h
@@ -72,12 +72,9 @@ void mei_watchdog_unregister(struct mei_device *dev);
72int mei_other_client_is_connecting(struct mei_device *dev, struct mei_cl *cl); 72int mei_other_client_is_connecting(struct mei_device *dev, struct mei_cl *cl);
73int mei_flow_ctrl_reduce(struct mei_device *dev, struct mei_cl *cl); 73int mei_flow_ctrl_reduce(struct mei_device *dev, struct mei_cl *cl);
74 74
75void mei_hbm_start_req(struct mei_device *dev); 75void mei_host_client_init(struct work_struct *work);
76
76 77
77int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);
78int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl);
79int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl);
80 78
81void mei_host_client_init(struct work_struct *work);
82 79
83#endif /* _MEI_INTERFACE_H_ */ 80#endif /* _MEI_INTERFACE_H_ */
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index a735c8b7ca82..2495e35ccb27 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -24,6 +24,7 @@
24#include <linux/mei.h> 24#include <linux/mei.h>
25 25
26#include "mei_dev.h" 26#include "mei_dev.h"
27#include "hbm.h"
27#include "interface.h" 28#include "interface.h"
28 29
29 30
diff --git a/drivers/misc/mei/iorw.c b/drivers/misc/mei/iorw.c
index d8e08bcf3263..4328c2d2ca54 100644
--- a/drivers/misc/mei/iorw.c
+++ b/drivers/misc/mei/iorw.c
@@ -36,6 +36,7 @@
36#include <linux/mei.h> 36#include <linux/mei.h>
37 37
38#include "mei_dev.h" 38#include "mei_dev.h"
39#include "hbm.h"
39#include "interface.h" 40#include "interface.h"
40 41
41/** 42/**
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h
index 54ddac324578..1b54e675d3f1 100644
--- a/drivers/misc/mei/mei_dev.h
+++ b/drivers/misc/mei/mei_dev.h
@@ -445,16 +445,6 @@ void mei_enable_interrupts(struct mei_device *dev);
445void mei_disable_interrupts(struct mei_device *dev); 445void mei_disable_interrupts(struct mei_device *dev);
446 446
447 447
448void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
449
450static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
451{
452 hdr->host_addr = 0;
453 hdr->me_addr = 0;
454 hdr->length = length;
455 hdr->msg_complete = 1;
456 hdr->reserved = 0;
457}
458 448
459#define MEI_HDR_FMT "hdr:host=%02d me=%02d len=%d comp=%1d" 449#define MEI_HDR_FMT "hdr:host=%02d me=%02d len=%d comp=%1d"
460#define MEI_HDR_PRM(hdr) \ 450#define MEI_HDR_PRM(hdr) \
diff --git a/drivers/misc/mei/wd.c b/drivers/misc/mei/wd.c
index 4f2e9db86478..9814bc1dba01 100644
--- a/drivers/misc/mei/wd.c
+++ b/drivers/misc/mei/wd.c
@@ -24,6 +24,7 @@
24#include <linux/mei.h> 24#include <linux/mei.h>
25 25
26#include "mei_dev.h" 26#include "mei_dev.h"
27#include "hbm.h"
27#include "interface.h" 28#include "interface.h"
28 29
29static const u8 mei_start_wd_params[] = { 0x02, 0x12, 0x13, 0x10 }; 30static const u8 mei_start_wd_params[] = { 0x02, 0x12, 0x13, 0x10 };