diff options
Diffstat (limited to 'libc/kernel/uapi/linux/surface_aggregator/cdev.h')
-rw-r--r-- | libc/kernel/uapi/linux/surface_aggregator/cdev.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libc/kernel/uapi/linux/surface_aggregator/cdev.h b/libc/kernel/uapi/linux/surface_aggregator/cdev.h index 25bfd8ddd..2e097f049 100644 --- a/libc/kernel/uapi/linux/surface_aggregator/cdev.h +++ b/libc/kernel/uapi/linux/surface_aggregator/cdev.h @@ -42,5 +42,34 @@ struct ssam_cdev_request { __u8 __pad[6]; } response; } __attribute__((__packed__)); +struct ssam_cdev_notifier_desc { + __s32 priority; + __u8 target_category; +} __attribute__((__packed__)); +struct ssam_cdev_event_desc { + struct { + __u8 target_category; + __u8 target_id; + __u8 cid_enable; + __u8 cid_disable; + } reg; + struct { + __u8 target_category; + __u8 instance; + } id; + __u8 flags; +} __attribute__((__packed__)); +struct ssam_cdev_event { + __u8 target_category; + __u8 target_id; + __u8 command_id; + __u8 instance_id; + __u16 length; + __u8 data[]; +} __attribute__((__packed__)); #define SSAM_CDEV_REQUEST _IOWR(0xA5, 1, struct ssam_cdev_request) +#define SSAM_CDEV_NOTIF_REGISTER _IOW(0xA5, 2, struct ssam_cdev_notifier_desc) +#define SSAM_CDEV_NOTIF_UNREGISTER _IOW(0xA5, 3, struct ssam_cdev_notifier_desc) +#define SSAM_CDEV_EVENT_ENABLE _IOW(0xA5, 4, struct ssam_cdev_event_desc) +#define SSAM_CDEV_EVENT_DISABLE _IOW(0xA5, 5, struct ssam_cdev_event_desc) #endif |