Add ioctl IOCTL_MEI_NOTIFY_SET for enabling and disabling async event notification. Add ioctl IOCTL_MEI_NOTIFY_GET for receiving and acking an event notification.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -107,4 +107,23 @@ struct mei_connect_client_data { · 106 unmodified lines | |||
| 107 | }; | 107 | }; |
| 108 | }; | 108 | }; |
| 109 | 109 | ||
| 110 | /** | ||
| 111 | * DOC: set and unset event notification for a connected client | ||
| 112 | * | ||
| 113 | * The IOCTL argument is 1 for enabling event notification and 0 for | ||
| 114 | * disabling the service | ||
| 115 | * Return: -EOPNOTSUPP if the devices doesn't support the feature | ||
| 116 | */ | ||
| 117 | #define IOCTL_MEI_NOTIFY_SET _IOW('H', 0x02, __u32) | ||
| 118 | |||
| 119 | /** | ||
| 120 | * DOC: retrieve notification | ||
| 121 | * | ||
| 122 | * The IOCTL output argument is 1 if an event was is pending and 0 otherwise | ||
| 123 | * the ioctl has to be called in order to acknowledge pending event | ||
| 124 | * | ||
| 125 | * Return: -EOPNOTSUPP if the devices doesn't support the feature | ||
| 126 | */ | ||
| 127 | #define IOCTL_MEI_NOTIFY_GET _IOR('H', 0x03, __u32) | ||
| 128 | |||
| 110 | #endif /* _LINUX_MEI_H */ | 129 | #endif /* _LINUX_MEI_H */ |