# known used gpu ioctls # 0xc00c0902 # 0x400c0907 # 0xc0080913 # 0x40040914 # 0xc01c0915 # 0x40100917 # 0x40040921 # 0x400c0932 # 0xc0140933 # 0xc01c0934 # 0xc0080935 # 0xc0280936 # 0x00000937 # 0x00000938 # 0x00000939 # 0xc02c093d define(`gpu_unused_ioctls', `{ IOCTL_KGSL_DEVICE_WAITTIMESTAMP IOCTL_KGSL_RINGBUFFER_ISSUEIBCMDS IOCTL_KGSL_CMDSTREAM_READTIMESTAMP_OLD IOCTL_KGSL_CMDSTREAM_READTIMESTAMP IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_OLD IOCTL_KGSL_CMDSTREAM_READTIMESTAMP_CTXTID IOCTL_KGSL_SHAREDMEM_FROM_PMEM IOCTL_KGSL_CFF_USER_EVENT IOCTL_KGSL_DRAWCTXT_BIND_GMEM_SHADOW IOCTL_KGSL_SHAREDMEM_FROM_VMALLOC IOCTL_KGSL_SHAREDMEM_FLUSH_CACHE IOCTL_KGSL_DRAWCTXT_SET_BIN_BASE_OFFSET IOCTL_KGSL_CMDWINDOW_WRITE IOCTL_KGSL_GPUMEM_ALLOC IOCTL_KGSL_CFF_SYNCMEM IOCTL_KGSL_TIMESTAMP_EVENT_OLD IOCTL_KGSL_GPUMEM_SYNC_CACHE IOCTL_KGSL_PERFCOUNTER_QUERY IOCTL_KGSL_PERFCOUNTER_READ IOCTL_KGSL_GPUMEM_SYNC_CACHE_BULK }') define(`gpu_used_ioctls', `{ IOCTL_KGSL_DEVICE_GETPROPERTY IOCTL_KGSL_DEVICE_WAITTIMESTAMP_CTXTID IOCTL_KGSL_DRAWCTXT_CREATE IOCTL_KGSL_DRAWCTXT_DESTROY IOCTL_KGSL_MAP_USER_MEM IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_CTXTID IOCTL_KGSL_SHAREDMEM_FREE IOCTL_KGSL_SETPROPERTY IOCTL_KGSL_TIMESTAMP_EVENT IOCTL_KGSL_GPUMEM_ALLOC_ID IOCTL_KGSL_GPUMEM_FREE_ID IOCTL_KGSL_GPUMEM_GET_INFO IOCTL_KGSL_GPUMEM_SYNC_CACHE IOCTL_KGSL_PERFCOUNTER_GET IOCTL_KGSL_PERFCOUNTER_PUT IOCTL_KGSL_SUBMIT_COMMANDS }')