1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_SURFACE_AGGREGATOR_CDEV_H
20 #define _UAPI_LINUX_SURFACE_AGGREGATOR_CDEV_H
21 #include <linux/ioctl.h>
22 #include <linux/types.h>
23 enum ssam_cdev_request_flags {
24   SSAM_CDEV_REQUEST_HAS_RESPONSE = 0x01,
25   SSAM_CDEV_REQUEST_UNSEQUENCED = 0x02,
26 };
27 struct ssam_cdev_request {
28   __u8 target_category;
29   __u8 target_id;
30   __u8 command_id;
31   __u8 instance_id;
32   __u16 flags;
33   __s16 status;
34   struct {
35     __u64 data;
36     __u16 length;
37     __u8 __pad[6];
38   } payload;
39   struct {
40     __u64 data;
41     __u16 length;
42     __u8 __pad[6];
43   } response;
44 } __attribute__((__packed__));
45 #define SSAM_CDEV_REQUEST _IOWR(0xA5, 1, struct ssam_cdev_request)
46 #endif
47