mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-22 20:49:03 -04:00
wigig_sensing: add support for asynchronous events
Driver can now send asynchronous events to user space application. Available events are RESET and FW_READY. Change-Id: I8b3819927ac3e55b69be03d288600c81ad23e319 Signed-off-by: Gidon Studinski <gidons@codeaurora.org> Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
This commit is contained in:
parent
3d9b81e7f1
commit
03547d5eb7
3 changed files with 44 additions and 6 deletions
|
|
@ -27,8 +27,10 @@ struct wigig_sensing_change_mode {
|
|||
};
|
||||
|
||||
enum wigig_sensing_event {
|
||||
WIGIG_SENSING_EVENT_MIN,
|
||||
WIGIG_SENSING_EVENT_FW_READY,
|
||||
WIGIG_SENSING_EVENT_RESET,
|
||||
WIGIG_SENSING_EVENT_MAX,
|
||||
};
|
||||
|
||||
#define WIGIG_SENSING_IOC_MAGIC 'r'
|
||||
|
|
@ -84,7 +86,7 @@ enum wigig_sensing_event {
|
|||
WIGIG_SENSING_IOCTL_GET_NUM_DROPPED_BURSTS, uint32_t)
|
||||
|
||||
/**
|
||||
* Get number of bursts that where dropped due to data buffer overflow
|
||||
* Get asynchronous event (FW_READY, RESET)
|
||||
*/
|
||||
#define WIGIG_SENSING_IOC_GET_EVENT \
|
||||
_IOR(WIGIG_SENSING_IOC_MAGIC, WIGIG_SENSING_IOCTL_GET_EVENT, \
|
||||
|
|
|
|||
Loading…
Reference in a new issue