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