1# gpu_device ioctls defined in the kernel in include/uapi/linux/msm_kgsl.h 2define(`IOCTL_KGSL_DEVICE_GETPROPERTY', `0x00000902') 3define(`IOCTL_KGSL_DEVICE_WAITTIMESTAMP', `0x00000906') 4define(`IOCTL_KGSL_DEVICE_WAITTIMESTAMP_CTXTID', `0x00000907') 5define(`IOCTL_KGSL_RINGBUFFER_ISSUEIBCMDS', `0x00000910') 6define(`IOCTL_KGSL_CMDSTREAM_READTIMESTAMP', `0x00000911') 7define(`IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP', `0x00000912') 8define(`IOCTL_KGSL_DRAWCTXT_CREATE', `0x00000913') 9define(`IOCTL_KGSL_DRAWCTXT_DESTROY', `0x00000914') 10define(`IOCTL_KGSL_MAP_USER_MEM', `0x00000915') 11define(`IOCTL_KGSL_CMDSTREAM_READTIMESTAMP_CTXTID', `0x00000916') 12define(`IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_CTXTID', `0x00000917') 13define(`IOCTL_KGSL_SHAREDMEM_FROM_PMEM', `0x00000920') 14define(`IOCTL_KGSL_SHAREDMEM_FREE', `0x00000921') 15define(`IOCTL_KGSL_DRAWCTXT_BIND_GMEM_SHADOW', `0x00000922') 16define(`IOCTL_KGSL_SHAREDMEM_FROM_VMALLOC', `0x00000923') 17define(`IOCTL_KGSL_SHAREDMEM_FLUSH_CACHE', `0x00000924') 18define(`IOCTL_KGSL_DRAWCTXT_SET_BIN_BASE_OFFSET', `0x00000925') 19define(`IOCTL_KGSL_CMDWINDOW_WRITE', `0x0000092e') 20define(`IOCTL_KGSL_GPUMEM_ALLOC', `0x0000092f') 21define(`IOCTL_KGSL_CFF_SYNCMEM', `0x00000930') 22define(`IOCTL_KGSL_CFF_USER_EVENT', `0x00000931') 23define(`IOCTL_KGSL_SETPROPERTY', `0x00000932') 24define(`IOCTL_KGSL_TIMESTAMP_EVENT', `0x00000933') 25define(`IOCTL_KGSL_GPUMEM_ALLOC_ID', `0x00000934') 26define(`IOCTL_KGSL_GPUMEM_FREE_ID', `0x00000935') 27define(`IOCTL_KGSL_GPUMEM_GET_INFO', `0x00000936') 28define(`IOCTL_KGSL_GPUMEM_SYNC_CACHE', `0x00000937') 29define(`IOCTL_KGSL_PERFCOUNTER_GET', `0x00000938') 30define(`IOCTL_KGSL_PERFCOUNTER_PUT', `0x00000939') 31define(`IOCTL_KGSL_PERFCOUNTER_QUERY', `0x0000093a') 32define(`IOCTL_KGSL_PERFCOUNTER_READ', `0x0000093b') 33define(`IOCTL_KGSL_GPUMEM_SYNC_CACHE_BULK', `0x0000093c') 34define(`IOCTL_KGSL_SUBMIT_COMMANDS', `0x0000093d') 35define(`IOCTL_KGSL_SYNCSOURCE_CREATE', `0x00000940') 36define(`IOCTL_KGSL_SYNCSOURCE_DESTROY', `0x00000941') 37define(`IOCTL_KGSL_SYNCSOURCE_CREATE_FENCE', `0x00000942') 38define(`IOCTL_KGSL_SYNCSOURCE_SIGNAL_FENCE', `0x00000943') 39define(`IOCTL_KGSL_CFF_SYNC_GPUOBJ', `0x00000944') 40define(`IOCTL_KGSL_GPUOBJ_ALLOC', `0x00000945') 41define(`IOCTL_KGSL_GPUOBJ_FREE', `0x00000946') 42define(`IOCTL_KGSL_GPUOBJ_INFO', `0x00000947') 43define(`IOCTL_KGSL_GPUOBJ_IMPORT', `0x00000948') 44define(`IOCTL_KGSL_GPUOBJ_SYNC', `0x00000949') 45define(`IOCTL_KGSL_GPU_COMMAND', `0x0000094a') 46define(`IOCTL_KGSL_PREEMPTIONCOUNTER_QUERY', `0x0000094b') 47define(`IOCTL_KGSL_GPUOBJ_SET_INFO', `0x0000094c') 48 49# socket ioctls defined in the kernel in include/uapi/linux/msm_ipc.h 50define(`IPC_ROUTER_IOCTL_GET_VERSION', `0x0000c300') 51define(`IPC_ROUTER_IOCTL_GET_MTU', `0x0000c301') 52define(`IPC_ROUTER_IOCTL_LOOKUP_SERVER', `0x0000c302') 53define(`IPC_ROUTER_IOCTL_GET_CURR_PKT_SIZE', `0x0000c303') 54define(`IPC_ROUTER_IOCTL_BIND_CONTROL_PORT', `0x0000c304') 55define(`IPC_ROUTER_IOCTL_CONFIG_SEC_RULES', `0x0000c305') 56 57define(`RMNET_IOCTL_EXTENDED', `0x000089FD') 58