diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-06-10 15:16:23 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-06-18 13:42:02 +0200 |
commit | f80e13601c51a836b2aac583b8a3b4327c0c27ce (patch) | |
tree | e8aec7e0ce0523153a53404cb97454b74c702dc1 /include/linux/uhid.h | |
parent | e7191474a5459e6ba7039fadca6a32f3a5731909 (diff) |
HID: uhid: forward output request to user-space
If the hid-driver wants to send standardized data to the device it uses a
linux input_event. We forward this to the user-space transport-level
driver so they can perform the requested action on the device.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/uhid.h')
-rw-r--r-- | include/linux/uhid.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/uhid.h b/include/linux/uhid.h index 351650b7a0f..3fa48492101 100644 --- a/include/linux/uhid.h +++ b/include/linux/uhid.h @@ -29,6 +29,7 @@ enum uhid_event_type { UHID_STOP, UHID_OPEN, UHID_CLOSE, + UHID_OUTPUT_EV, UHID_INPUT, }; @@ -53,12 +54,19 @@ struct uhid_input_req { __u16 size; } __attribute__((__packed__)); +struct uhid_output_ev_req { + __u16 type; + __u16 code; + __s32 value; +} __attribute__((__packed__)); + struct uhid_event { __u32 type; union { struct uhid_create_req create; struct uhid_input_req input; + struct uhid_output_ev_req output_ev; } u; } __attribute__((__packed__)); |