aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp/hidp.h
diff options
context:
space:
mode:
authorAlan Ott <alan@signal11.us>2011-01-18 03:04:40 -0500
committerJiri Kosina <jkosina@suse.cz>2011-02-11 09:05:50 -0500
commit0ff1731a1ae51e8e48cd559d70db536281c47f8e (patch)
tree1313a34dfbe1840554aeb81dbad74719fff10b5c /net/bluetooth/hidp/hidp.h
parentb4dbde9da8ece42bbe4c70c26bac3b28dd6a3ddb (diff)
HID: bt: Add support for hidraw HIDIOCGFEATURE and HIDIOCSFEATURE
This patch adds support or getting and setting feature reports for bluetooth HID devices from HIDRAW. Signed-off-by: Alan Ott <alan@signal11.us> Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/bluetooth/hidp/hidp.h')
-rw-r--r--net/bluetooth/hidp/hidp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/bluetooth/hidp/hidp.h b/net/bluetooth/hidp/hidp.h
index 92e093e61f27..13de5fa03480 100644
--- a/net/bluetooth/hidp/hidp.h
+++ b/net/bluetooth/hidp/hidp.h
@@ -80,6 +80,7 @@
80#define HIDP_VIRTUAL_CABLE_UNPLUG 0 80#define HIDP_VIRTUAL_CABLE_UNPLUG 0
81#define HIDP_BOOT_PROTOCOL_MODE 1 81#define HIDP_BOOT_PROTOCOL_MODE 1
82#define HIDP_BLUETOOTH_VENDOR_ID 9 82#define HIDP_BLUETOOTH_VENDOR_ID 9
83#define HIDP_WAITING_FOR_RETURN 10
83#define HIDP_WAITING_FOR_SEND_ACK 11 84#define HIDP_WAITING_FOR_SEND_ACK 11
84 85
85struct hidp_connadd_req { 86struct hidp_connadd_req {
@@ -155,6 +156,13 @@ struct hidp_session {
155 struct sk_buff_head ctrl_transmit; 156 struct sk_buff_head ctrl_transmit;
156 struct sk_buff_head intr_transmit; 157 struct sk_buff_head intr_transmit;
157 158
159 /* Used in hidp_get_raw_report() */
160 int waiting_report_type; /* HIDP_DATA_RTYPE_* */
161 int waiting_report_number; /* -1 for not numbered */
162 struct mutex report_mutex;
163 struct sk_buff *report_return;
164 wait_queue_head_t report_queue;
165
158 /* Used in hidp_output_raw_report() */ 166 /* Used in hidp_output_raw_report() */
159 int output_report_success; /* boolean */ 167 int output_report_success; /* boolean */
160 168