1*cda5da8dSAndroid Build Coastguard Worker /* 2*cda5da8dSAndroid Build Coastguard Worker * This file is auto-generated. Modifications will be lost. 3*cda5da8dSAndroid Build Coastguard Worker * 4*cda5da8dSAndroid Build Coastguard Worker * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5*cda5da8dSAndroid Build Coastguard Worker * for more information. 6*cda5da8dSAndroid Build Coastguard Worker */ 7*cda5da8dSAndroid Build Coastguard Worker #ifndef __LINUX_PUBLIC_GNTALLOC_H__ 8*cda5da8dSAndroid Build Coastguard Worker #define __LINUX_PUBLIC_GNTALLOC_H__ 9*cda5da8dSAndroid Build Coastguard Worker #include <linux/types.h> 10*cda5da8dSAndroid Build Coastguard Worker #define IOCTL_GNTALLOC_ALLOC_GREF _IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref)) 11*cda5da8dSAndroid Build Coastguard Worker struct ioctl_gntalloc_alloc_gref { 12*cda5da8dSAndroid Build Coastguard Worker __u16 domid; 13*cda5da8dSAndroid Build Coastguard Worker __u16 flags; 14*cda5da8dSAndroid Build Coastguard Worker __u32 count; 15*cda5da8dSAndroid Build Coastguard Worker __u64 index; 16*cda5da8dSAndroid Build Coastguard Worker union { 17*cda5da8dSAndroid Build Coastguard Worker __u32 gref_ids[1]; 18*cda5da8dSAndroid Build Coastguard Worker __DECLARE_FLEX_ARRAY(__u32, gref_ids_flex); 19*cda5da8dSAndroid Build Coastguard Worker }; 20*cda5da8dSAndroid Build Coastguard Worker }; 21*cda5da8dSAndroid Build Coastguard Worker #define GNTALLOC_FLAG_WRITABLE 1 22*cda5da8dSAndroid Build Coastguard Worker #define IOCTL_GNTALLOC_DEALLOC_GREF _IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref)) 23*cda5da8dSAndroid Build Coastguard Worker struct ioctl_gntalloc_dealloc_gref { 24*cda5da8dSAndroid Build Coastguard Worker __u64 index; 25*cda5da8dSAndroid Build Coastguard Worker __u32 count; 26*cda5da8dSAndroid Build Coastguard Worker }; 27*cda5da8dSAndroid Build Coastguard Worker #define IOCTL_GNTALLOC_SET_UNMAP_NOTIFY _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntalloc_unmap_notify)) 28*cda5da8dSAndroid Build Coastguard Worker struct ioctl_gntalloc_unmap_notify { 29*cda5da8dSAndroid Build Coastguard Worker __u64 index; 30*cda5da8dSAndroid Build Coastguard Worker __u32 action; 31*cda5da8dSAndroid Build Coastguard Worker __u32 event_channel_port; 32*cda5da8dSAndroid Build Coastguard Worker }; 33*cda5da8dSAndroid Build Coastguard Worker #define UNMAP_NOTIFY_CLEAR_BYTE 0x1 34*cda5da8dSAndroid Build Coastguard Worker #define UNMAP_NOTIFY_SEND_EVENT 0x2 35*cda5da8dSAndroid Build Coastguard Worker #endif 36