Files
ubports_kernel_google_msm/include/linux
David Herrmann dfab99ef47 HID: uhid: add internal message buffer
When receiving messages from the HID subsystem, we need to process them
and store them in an internal buffer so user-space can read() on the char
device to retrieve the messages.

This adds a static buffer for 32 messages to each uhid device. Each
message is dynamically allocated so the uhid_device structure does not get
too big.

uhid_queue() adds a message to the buffer. If the buffer is full, the
message is discarded. uhid_queue_event() is an helper for messages without
payload.

This also adds a public header: uhid.h. It contains the declarations for
the user-space API. It is built around "struct uhid_event" which contains
a type field which specifies the event type and each event can then add a
variable-length payload. For now, there is only a dummy event but later
patches will add new event types and payloads.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2013-03-04 12:45:02 -08:00
..
2013-02-27 18:16:16 -08:00
2012-04-23 14:23:32 +03:00
2013-02-27 18:12:49 -08:00
2012-04-27 11:03:38 -06:00
2012-04-09 13:57:51 -07:00
2013-02-27 18:13:43 -08:00
2013-02-25 11:30:04 -08:00
2013-02-25 11:29:27 -08:00
2012-04-09 13:57:52 -07:00
2012-03-29 15:38:31 +10:30
2013-02-25 11:29:22 -08:00
2013-02-20 02:50:23 -08:00
2012-05-22 14:01:06 -07:00
2013-02-20 01:31:50 -08:00
2012-04-30 15:30:18 -07:00
2013-02-27 18:16:02 -08:00
2013-03-04 12:44:09 -08:00
2013-02-25 11:33:57 -08:00
2013-02-20 02:50:20 -08:00
2012-04-12 12:57:08 +02:00
2012-04-09 13:53:16 -07:00
2012-04-27 10:46:45 +08:00
2012-04-09 13:57:58 -07:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-27 22:45:26 -04:00
2013-02-08 15:04:34 -08:00
2013-02-27 18:13:08 -08:00
2013-03-04 12:45:02 -08:00
2012-04-09 13:53:16 -07:00
2013-02-25 11:29:50 -08:00
2013-02-25 11:29:50 -08:00
2013-02-25 11:32:22 -08:00
2013-02-25 11:29:50 -08:00
2013-02-25 11:29:28 -08:00
2013-02-25 11:29:28 -08:00
2013-02-25 11:31:56 -08:00
2013-02-27 18:16:43 -08:00
2013-02-25 11:32:34 -08:00
2012-03-28 18:30:03 +01:00
2012-05-01 09:40:19 -04:00
2012-05-16 13:27:23 -07:00
2013-02-25 11:29:18 -08:00
2012-04-10 22:39:17 -06:00
2013-03-04 12:45:02 -08:00
2013-02-25 11:35:13 -08:00
2012-04-11 09:36:00 +01:00
2013-02-20 02:50:29 -08:00
2013-02-25 11:29:50 -08:00