2013-03-22 16:34:09 +02:00
/*
* Copyright ( c ) 2012 - 2013 , NVIDIA CORPORATION . All rights reserved .
*
2014-02-11 13:40:52 +01:00
* Permission is hereby granted , free of charge , to any person obtaining a
* copy of this software and associated documentation files ( the " Software " ) ,
* to deal in the Software without restriction , including without limitation
* the rights to use , copy , modify , merge , publish , distribute , sublicense ,
* and / or sell copies of the Software , and to permit persons to whom the
* Software is furnished to do so , subject to the following conditions :
2013-03-22 16:34:09 +02:00
*
2014-02-11 13:40:52 +01:00
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software .
2013-03-22 16:34:09 +02:00
*
2014-02-11 13:40:52 +01:00
* THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
* IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL
* THE COPYRIGHT HOLDER ( S ) OR AUTHOR ( S ) BE LIABLE FOR ANY CLAIM , DAMAGES OR
* OTHER LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE ,
* ARISING FROM , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE .
2013-03-22 16:34:09 +02:00
*/
# ifndef _UAPI_TEGRA_DRM_H_
# define _UAPI_TEGRA_DRM_H_
2015-11-30 15:10:54 +01:00
# include "drm.h"
2013-04-26 19:49:51 +02:00
2016-04-07 19:35:50 +01:00
# if defined(__cplusplus)
extern " C " {
# endif
2013-10-07 09:47:58 +02:00
# define DRM_TEGRA_GEM_CREATE_TILED (1 << 0)
# define DRM_TEGRA_GEM_CREATE_BOTTOM_UP (1 << 1)
2013-10-04 22:34:01 +02:00
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_gem_create - parameters for the GEM object creation IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_gem_create {
2018-05-16 16:43:11 +02:00
/**
* @ size :
*
* The size , in bytes , of the buffer object to be created .
*/
2013-03-22 16:34:09 +02:00
__u64 size ;
2018-05-16 16:43:11 +02:00
/**
* @ flags :
*
* A bitmask of flags that influence the creation of GEM objects :
*
* DRM_TEGRA_GEM_CREATE_TILED
* Use the 16 x16 tiling format for this buffer .
*
* DRM_TEGRA_GEM_CREATE_BOTTOM_UP
* The buffer has a bottom - up layout .
*/
2013-03-22 16:34:09 +02:00
__u32 flags ;
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* The handle of the created GEM object . Set by the kernel upon
* successful completion of the IOCTL .
*/
2013-03-22 16:34:09 +02:00
__u32 handle ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_gem_mmap - parameters for the GEM mmap IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_gem_mmap {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle of the GEM object to obtain an mmap offset for .
*/
2013-03-22 16:34:09 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2015-01-30 13:57:01 -05:00
__u32 pad ;
2018-05-16 16:43:11 +02:00
/**
* @ offset :
*
* The mmap offset for the given GEM object . Set by the kernel upon
* successful completion of the IOCTL .
*/
2015-01-30 13:57:01 -05:00
__u64 offset ;
2013-03-22 16:34:09 +02:00
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_syncpt_read - parameters for the read syncpoint IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_syncpt_read {
2018-05-16 16:43:11 +02:00
/**
* @ id :
*
* ID of the syncpoint to read the current value from .
*/
2013-03-22 16:34:09 +02:00
__u32 id ;
2018-05-16 16:43:11 +02:00
/**
* @ value :
*
* The current syncpoint value . Set by the kernel upon successful
* completion of the IOCTL .
*/
2013-03-22 16:34:09 +02:00
__u32 value ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_syncpt_incr - parameters for the increment syncpoint IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_syncpt_incr {
2018-05-16 16:43:11 +02:00
/**
* @ id :
*
* ID of the syncpoint to increment .
*/
2013-03-22 16:34:09 +02:00
__u32 id ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2013-03-22 16:34:09 +02:00
__u32 pad ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_syncpt_wait - parameters for the wait syncpoint IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_syncpt_wait {
2018-05-16 16:43:11 +02:00
/**
* @ id :
*
* ID of the syncpoint to wait on .
*/
2013-03-22 16:34:09 +02:00
__u32 id ;
2018-05-16 16:43:11 +02:00
/**
* @ thresh :
*
* Threshold value for which to wait .
*/
2013-03-22 16:34:09 +02:00
__u32 thresh ;
2018-05-16 16:43:11 +02:00
/**
* @ timeout :
*
* Timeout , in milliseconds , to wait .
*/
2013-03-22 16:34:09 +02:00
__u32 timeout ;
2018-05-16 16:43:11 +02:00
/**
* @ value :
*
* The new syncpoint value after the wait . Set by the kernel upon
* successful completion of the IOCTL .
*/
2013-03-22 16:34:09 +02:00
__u32 value ;
} ;
# define DRM_TEGRA_NO_TIMEOUT (0xffffffff)
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_open_channel - parameters for the open channel IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_open_channel {
2018-05-16 16:43:11 +02:00
/**
* @ client :
*
* The client ID for this channel .
*/
2013-03-22 16:34:09 +02:00
__u32 client ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2013-03-22 16:34:09 +02:00
__u32 pad ;
2018-05-16 16:43:11 +02:00
/**
* @ context :
*
* The application context of this channel . Set by the kernel upon
* successful completion of the IOCTL . This context needs to be passed
* to the DRM_TEGRA_CHANNEL_CLOSE or the DRM_TEGRA_SUBMIT IOCTLs .
*/
2013-03-22 16:34:09 +02:00
__u64 context ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_close_channel - parameters for the close channel IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_close_channel {
2018-05-16 16:43:11 +02:00
/**
* @ context :
*
* The application context of this channel . This is obtained from the
* DRM_TEGRA_OPEN_CHANNEL IOCTL .
*/
2013-03-22 16:34:09 +02:00
__u64 context ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_get_syncpt - parameters for the get syncpoint IOCTL
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_get_syncpt {
2018-05-16 16:43:11 +02:00
/**
* @ context :
*
* The application context identifying the channel for which to obtain
* the syncpoint ID .
*/
2013-03-22 16:34:09 +02:00
__u64 context ;
2018-05-16 16:43:11 +02:00
/**
* @ index :
*
* Index of the client syncpoint for which to obtain the ID .
*/
2013-03-22 16:34:09 +02:00
__u32 index ;
2018-05-16 16:43:11 +02:00
/**
* @ id :
*
* The ID of the given syncpoint . Set by the kernel upon successful
* completion of the IOCTL .
*/
2013-03-22 16:34:09 +02:00
__u32 id ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_get_syncpt_base - parameters for the get wait base IOCTL
*/
2013-10-14 15:21:54 +03:00
struct drm_tegra_get_syncpt_base {
2018-05-16 16:43:11 +02:00
/**
* @ context :
*
* The application context identifying for which channel to obtain the
* wait base .
*/
2013-10-14 15:21:54 +03:00
__u64 context ;
2018-05-16 16:43:11 +02:00
/**
* @ syncpt :
*
* ID of the syncpoint for which to obtain the wait base .
*/
2013-10-14 15:21:54 +03:00
__u32 syncpt ;
2018-05-16 16:43:11 +02:00
/**
* @ id :
*
* The ID of the wait base corresponding to the client syncpoint . Set
* by the kernel upon successful completion of the IOCTL .
*/
2013-10-14 15:21:54 +03:00
__u32 id ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_syncpt - syncpoint increment operation
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_syncpt {
2018-05-16 16:43:11 +02:00
/**
* @ id :
*
* ID of the syncpoint to operate on .
*/
2013-03-22 16:34:09 +02:00
__u32 id ;
2018-05-16 16:43:11 +02:00
/**
* @ incrs :
*
* Number of increments to perform for the syncpoint .
*/
2013-03-22 16:34:09 +02:00
__u32 incrs ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_cmdbuf - structure describing a command buffer
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_cmdbuf {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle to a GEM object containing the command buffer .
*/
2013-03-22 16:34:09 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ offset :
*
* Offset , in bytes , into the GEM object identified by @ handle at
* which the command buffer starts .
*/
2013-03-22 16:34:09 +02:00
__u32 offset ;
2018-05-16 16:43:11 +02:00
/**
* @ words :
*
* Number of 32 - bit words in this command buffer .
*/
2013-03-22 16:34:09 +02:00
__u32 words ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2013-03-22 16:34:09 +02:00
__u32 pad ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_reloc - GEM object relocation structure
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_reloc {
struct {
2018-05-16 16:43:11 +02:00
/**
* @ cmdbuf . handle :
*
* Handle to the GEM object containing the command buffer for
* which to perform this GEM object relocation .
*/
2013-03-22 16:34:09 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ cmdbuf . offset :
*
* Offset , in bytes , into the command buffer at which to
* insert the relocated address .
*/
2013-03-22 16:34:09 +02:00
__u32 offset ;
} cmdbuf ;
struct {
2018-05-16 16:43:11 +02:00
/**
* @ target . handle :
*
* Handle to the GEM object to be relocated .
*/
2013-03-22 16:34:09 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ target . offset :
*
* Offset , in bytes , into the target GEM object at which the
* relocated data starts .
*/
2013-03-22 16:34:09 +02:00
__u32 offset ;
} target ;
2018-05-16 16:43:11 +02:00
/**
* @ shift :
*
* The number of bits by which to shift relocated addresses .
*/
2013-03-22 16:34:09 +02:00
__u32 shift ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2013-03-22 16:34:09 +02:00
__u32 pad ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_waitchk - wait check structure
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_waitchk {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle to the GEM object containing a command stream on which to
* perform the wait check .
*/
2013-03-22 16:34:09 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ offset :
*
* Offset , in bytes , of the location in the command stream to perform
* the wait check on .
*/
2013-03-22 16:34:09 +02:00
__u32 offset ;
2018-05-16 16:43:11 +02:00
/**
* @ syncpt :
*
* ID of the syncpoint to wait check .
*/
2013-03-22 16:34:09 +02:00
__u32 syncpt ;
2018-05-16 16:43:11 +02:00
/**
* @ thresh :
*
* Threshold value for which to check .
*/
2013-03-22 16:34:09 +02:00
__u32 thresh ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_submit - job submission structure
*/
2013-03-22 16:34:09 +02:00
struct drm_tegra_submit {
2018-05-16 16:43:11 +02:00
/**
* @ context :
*
* The application context identifying the channel to use for the
* execution of this job .
*/
2013-03-22 16:34:09 +02:00
__u64 context ;
2018-05-16 16:43:11 +02:00
/**
* @ num_syncpts :
*
* The number of syncpoints operated on by this job . This defines the
* length of the array pointed to by @ syncpts .
*/
2013-03-22 16:34:09 +02:00
__u32 num_syncpts ;
2018-05-16 16:43:11 +02:00
/**
* @ num_cmdbufs :
*
* The number of command buffers to execute as part of this job . This
* defines the length of the array pointed to by @ cmdbufs .
*/
2013-03-22 16:34:09 +02:00
__u32 num_cmdbufs ;
2018-05-16 16:43:11 +02:00
/**
* @ num_relocs :
*
* The number of relocations to perform before executing this job .
* This defines the length of the array pointed to by @ relocs .
*/
2013-03-22 16:34:09 +02:00
__u32 num_relocs ;
2018-05-16 16:43:11 +02:00
/**
* @ num_waitchks :
*
* The number of wait checks to perform as part of this job . This
* defines the length of the array pointed to by @ waitchks .
*/
2013-03-22 16:34:09 +02:00
__u32 num_waitchks ;
2018-05-16 16:43:11 +02:00
/**
* @ waitchk_mask :
*
* Bitmask of valid wait checks .
*/
2013-03-22 16:34:09 +02:00
__u32 waitchk_mask ;
2018-05-16 16:43:11 +02:00
/**
* @ timeout :
*
* Timeout , in milliseconds , before this job is cancelled .
*/
2013-03-22 16:34:09 +02:00
__u32 timeout ;
2018-05-16 16:43:11 +02:00
/**
* @ syncpts :
*
* A pointer to an array of & struct drm_tegra_syncpt structures that
* specify the syncpoint operations performed as part of this job .
* The number of elements in the array must be equal to the value
* given by @ num_syncpts .
*/
2013-03-22 16:34:09 +02:00
__u64 syncpts ;
2018-05-16 16:43:11 +02:00
/**
* @ cmdbufs :
*
* A pointer to an array of & struct drm_tegra_cmdbuf structures that
* define the command buffers to execute as part of this job . The
* number of elements in the array must be equal to the value given
* by @ num_syncpts .
*/
2013-03-22 16:34:09 +02:00
__u64 cmdbufs ;
2018-05-16 16:43:11 +02:00
/**
* @ relocs :
*
* A pointer to an array of & struct drm_tegra_reloc structures that
* specify the relocations that need to be performed before executing
* this job . The number of elements in the array must be equal to the
* value given by @ num_relocs .
*/
2013-03-22 16:34:09 +02:00
__u64 relocs ;
2018-05-16 16:43:11 +02:00
/**
* @ waitchks :
*
* A pointer to an array of & struct drm_tegra_waitchk structures that
* specify the wait checks to be performed while executing this job .
* The number of elements in the array must be equal to the value
* given by @ num_waitchks .
*/
2013-03-22 16:34:09 +02:00
__u64 waitchks ;
2018-05-16 16:43:11 +02:00
/**
* @ fence :
*
* The threshold of the syncpoint associated with this job after it
* has been completed . Set by the kernel upon successful completion of
* the IOCTL . This can be used with the DRM_TEGRA_SYNCPT_WAIT IOCTL to
* wait for this job to be finished .
*/
__u32 fence ;
/**
* @ reserved :
*
* This field is reserved for future use . Must be 0.
*/
__u32 reserved [ 5 ] ;
2013-03-22 16:34:09 +02:00
} ;
2014-06-03 14:56:57 +02:00
# define DRM_TEGRA_GEM_TILING_MODE_PITCH 0
# define DRM_TEGRA_GEM_TILING_MODE_TILED 1
# define DRM_TEGRA_GEM_TILING_MODE_BLOCK 2
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_gem_set_tiling - parameters for the set tiling IOCTL
*/
2014-06-03 14:56:57 +02:00
struct drm_tegra_gem_set_tiling {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle to the GEM object for which to set the tiling parameters .
*/
2014-06-03 14:56:57 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ mode :
*
* The tiling mode to set . Must be one of :
*
* DRM_TEGRA_GEM_TILING_MODE_PITCH
* pitch linear format
*
* DRM_TEGRA_GEM_TILING_MODE_TILED
* 16 x16 tiling format
*
* DRM_TEGRA_GEM_TILING_MODE_BLOCK
* 16 Bx2 tiling format
*/
2014-06-03 14:56:57 +02:00
__u32 mode ;
2018-05-16 16:43:11 +02:00
/**
* @ value :
*
* The value to set for the tiling mode parameter .
*/
2014-06-03 14:56:57 +02:00
__u32 value ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2014-06-03 14:56:57 +02:00
__u32 pad ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_gem_get_tiling - parameters for the get tiling IOCTL
*/
2014-06-03 14:56:57 +02:00
struct drm_tegra_gem_get_tiling {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle to the GEM object for which to query the tiling parameters .
*/
2014-06-03 14:56:57 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ mode :
*
* The tiling mode currently associated with the GEM object . Set by
* the kernel upon successful completion of the IOCTL .
*/
2014-06-03 14:56:57 +02:00
__u32 mode ;
2018-05-16 16:43:11 +02:00
/**
* @ value :
*
* The tiling mode parameter currently associated with the GEM object .
* Set by the kernel upon successful completion of the IOCTL .
*/
2014-06-03 14:56:57 +02:00
__u32 value ;
2018-05-16 16:43:11 +02:00
/**
* @ pad :
*
* Structure padding that may be used in the future . Must be 0.
*/
2014-06-03 14:56:57 +02:00
__u32 pad ;
} ;
2014-06-10 12:04:03 +02:00
# define DRM_TEGRA_GEM_BOTTOM_UP (1 << 0)
# define DRM_TEGRA_GEM_FLAGS (DRM_TEGRA_GEM_BOTTOM_UP)
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_gem_set_flags - parameters for the set flags IOCTL
*/
2014-06-10 12:04:03 +02:00
struct drm_tegra_gem_set_flags {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle to the GEM object for which to set the flags .
*/
2014-06-10 12:04:03 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ flags :
*
* The flags to set for the GEM object .
*/
2014-06-10 12:04:03 +02:00
__u32 flags ;
} ;
2018-05-16 16:43:11 +02:00
/**
* struct drm_tegra_gem_get_flags - parameters for the get flags IOCTL
*/
2014-06-10 12:04:03 +02:00
struct drm_tegra_gem_get_flags {
2018-05-16 16:43:11 +02:00
/**
* @ handle :
*
* Handle to the GEM object for which to query the flags .
*/
2014-06-10 12:04:03 +02:00
__u32 handle ;
2018-05-16 16:43:11 +02:00
/**
* @ flags :
*
* The flags currently associated with the GEM object . Set by the
* kernel upon successful completion of the IOCTL .
*/
2014-06-10 12:04:03 +02:00
__u32 flags ;
} ;
2013-10-14 15:21:54 +03:00
# define DRM_TEGRA_GEM_CREATE 0x00
# define DRM_TEGRA_GEM_MMAP 0x01
# define DRM_TEGRA_SYNCPT_READ 0x02
# define DRM_TEGRA_SYNCPT_INCR 0x03
# define DRM_TEGRA_SYNCPT_WAIT 0x04
# define DRM_TEGRA_OPEN_CHANNEL 0x05
# define DRM_TEGRA_CLOSE_CHANNEL 0x06
# define DRM_TEGRA_GET_SYNCPT 0x07
# define DRM_TEGRA_SUBMIT 0x08
# define DRM_TEGRA_GET_SYNCPT_BASE 0x09
2014-06-03 14:56:57 +02:00
# define DRM_TEGRA_GEM_SET_TILING 0x0a
# define DRM_TEGRA_GEM_GET_TILING 0x0b
2014-06-10 12:04:03 +02:00
# define DRM_TEGRA_GEM_SET_FLAGS 0x0c
# define DRM_TEGRA_GEM_GET_FLAGS 0x0d
2013-03-22 16:34:09 +02:00
# define DRM_IOCTL_TEGRA_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_CREATE, struct drm_tegra_gem_create)
# define DRM_IOCTL_TEGRA_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_MMAP, struct drm_tegra_gem_mmap)
# define DRM_IOCTL_TEGRA_SYNCPT_READ DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SYNCPT_READ, struct drm_tegra_syncpt_read)
# define DRM_IOCTL_TEGRA_SYNCPT_INCR DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SYNCPT_INCR, struct drm_tegra_syncpt_incr)
# define DRM_IOCTL_TEGRA_SYNCPT_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SYNCPT_WAIT, struct drm_tegra_syncpt_wait)
# define DRM_IOCTL_TEGRA_OPEN_CHANNEL DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_OPEN_CHANNEL, struct drm_tegra_open_channel)
2018-05-05 08:12:53 +02:00
# define DRM_IOCTL_TEGRA_CLOSE_CHANNEL DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_CLOSE_CHANNEL, struct drm_tegra_close_channel)
2013-03-22 16:34:09 +02:00
# define DRM_IOCTL_TEGRA_GET_SYNCPT DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GET_SYNCPT, struct drm_tegra_get_syncpt)
# define DRM_IOCTL_TEGRA_SUBMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SUBMIT, struct drm_tegra_submit)
2013-10-14 15:21:54 +03:00
# define DRM_IOCTL_TEGRA_GET_SYNCPT_BASE DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GET_SYNCPT_BASE, struct drm_tegra_get_syncpt_base)
2014-06-03 14:56:57 +02:00
# define DRM_IOCTL_TEGRA_GEM_SET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_SET_TILING, struct drm_tegra_gem_set_tiling)
# define DRM_IOCTL_TEGRA_GEM_GET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_GET_TILING, struct drm_tegra_gem_get_tiling)
2014-06-10 12:04:03 +02:00
# define DRM_IOCTL_TEGRA_GEM_SET_FLAGS DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_SET_FLAGS, struct drm_tegra_gem_set_flags)
# define DRM_IOCTL_TEGRA_GEM_GET_FLAGS DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_GET_FLAGS, struct drm_tegra_gem_get_flags)
2013-03-22 16:34:09 +02:00
2016-04-07 19:35:50 +01:00
# if defined(__cplusplus)
}
# endif
2013-03-22 16:34:09 +02:00
# endif