diff options
Diffstat (limited to 'include/drm/radeon_drm.h')
-rw-r--r-- | include/drm/radeon_drm.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h index 41862e9a4c20..2ba61e18fc8b 100644 --- a/include/drm/radeon_drm.h +++ b/include/drm/radeon_drm.h | |||
@@ -506,6 +506,9 @@ typedef struct { | |||
506 | #define DRM_RADEON_GEM_WAIT_IDLE 0x24 | 506 | #define DRM_RADEON_GEM_WAIT_IDLE 0x24 |
507 | #define DRM_RADEON_CS 0x26 | 507 | #define DRM_RADEON_CS 0x26 |
508 | #define DRM_RADEON_INFO 0x27 | 508 | #define DRM_RADEON_INFO 0x27 |
509 | #define DRM_RADEON_GEM_SET_TILING 0x28 | ||
510 | #define DRM_RADEON_GEM_GET_TILING 0x29 | ||
511 | #define DRM_RADEON_GEM_BUSY 0x2a | ||
509 | 512 | ||
510 | #define DRM_IOCTL_RADEON_CP_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CP_INIT, drm_radeon_init_t) | 513 | #define DRM_IOCTL_RADEON_CP_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_RADEON_CP_INIT, drm_radeon_init_t) |
511 | #define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) | 514 | #define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) |
@@ -544,7 +547,9 @@ typedef struct { | |||
544 | #define DRM_IOCTL_RADEON_GEM_WAIT_IDLE DRM_IOW(DRM_COMMAND_BASE + DRM_RADEON_GEM_WAIT_IDLE, struct drm_radeon_gem_wait_idle) | 547 | #define DRM_IOCTL_RADEON_GEM_WAIT_IDLE DRM_IOW(DRM_COMMAND_BASE + DRM_RADEON_GEM_WAIT_IDLE, struct drm_radeon_gem_wait_idle) |
545 | #define DRM_IOCTL_RADEON_CS DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_CS, struct drm_radeon_cs) | 548 | #define DRM_IOCTL_RADEON_CS DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_CS, struct drm_radeon_cs) |
546 | #define DRM_IOCTL_RADEON_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_INFO, struct drm_radeon_info) | 549 | #define DRM_IOCTL_RADEON_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_INFO, struct drm_radeon_info) |
547 | 550 | #define DRM_IOCTL_RADEON_SET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_SET_TILING, struct drm_radeon_gem_set_tiling) | |
551 | #define DRM_IOCTL_RADEON_GET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_GET_TILING, struct drm_radeon_gem_get_tiling) | ||
552 | #define DRM_IOCTL_RADEON_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_GEM_BUSY, struct drm_radeon_gem_busy) | ||
548 | 553 | ||
549 | typedef struct drm_radeon_init { | 554 | typedef struct drm_radeon_init { |
550 | enum { | 555 | enum { |
@@ -704,6 +709,7 @@ typedef struct drm_radeon_indirect { | |||
704 | #define RADEON_PARAM_FB_LOCATION 14 /* FB location */ | 709 | #define RADEON_PARAM_FB_LOCATION 14 /* FB location */ |
705 | #define RADEON_PARAM_NUM_GB_PIPES 15 /* num GB pipes */ | 710 | #define RADEON_PARAM_NUM_GB_PIPES 15 /* num GB pipes */ |
706 | #define RADEON_PARAM_DEVICE_ID 16 | 711 | #define RADEON_PARAM_DEVICE_ID 16 |
712 | #define RADEON_PARAM_NUM_Z_PIPES 17 /* num Z pipes */ | ||
707 | 713 | ||
708 | typedef struct drm_radeon_getparam { | 714 | typedef struct drm_radeon_getparam { |
709 | int param; | 715 | int param; |
@@ -796,6 +802,24 @@ struct drm_radeon_gem_create { | |||
796 | uint32_t flags; | 802 | uint32_t flags; |
797 | }; | 803 | }; |
798 | 804 | ||
805 | #define RADEON_TILING_MACRO 0x1 | ||
806 | #define RADEON_TILING_MICRO 0x2 | ||
807 | #define RADEON_TILING_SWAP 0x4 | ||
808 | #define RADEON_TILING_SURFACE 0x8 /* this object requires a surface | ||
809 | * when mapped - i.e. front buffer */ | ||
810 | |||
811 | struct drm_radeon_gem_set_tiling { | ||
812 | uint32_t handle; | ||
813 | uint32_t tiling_flags; | ||
814 | uint32_t pitch; | ||
815 | }; | ||
816 | |||
817 | struct drm_radeon_gem_get_tiling { | ||
818 | uint32_t handle; | ||
819 | uint32_t tiling_flags; | ||
820 | uint32_t pitch; | ||
821 | }; | ||
822 | |||
799 | struct drm_radeon_gem_mmap { | 823 | struct drm_radeon_gem_mmap { |
800 | uint32_t handle; | 824 | uint32_t handle; |
801 | uint32_t pad; | 825 | uint32_t pad; |
@@ -817,7 +841,7 @@ struct drm_radeon_gem_wait_idle { | |||
817 | 841 | ||
818 | struct drm_radeon_gem_busy { | 842 | struct drm_radeon_gem_busy { |
819 | uint32_t handle; | 843 | uint32_t handle; |
820 | uint32_t busy; | 844 | uint32_t domain; |
821 | }; | 845 | }; |
822 | 846 | ||
823 | struct drm_radeon_gem_pread { | 847 | struct drm_radeon_gem_pread { |
@@ -874,6 +898,7 @@ struct drm_radeon_cs { | |||
874 | 898 | ||
875 | #define RADEON_INFO_DEVICE_ID 0x00 | 899 | #define RADEON_INFO_DEVICE_ID 0x00 |
876 | #define RADEON_INFO_NUM_GB_PIPES 0x01 | 900 | #define RADEON_INFO_NUM_GB_PIPES 0x01 |
901 | #define RADEON_INFO_NUM_Z_PIPES 0x02 | ||
877 | 902 | ||
878 | struct drm_radeon_info { | 903 | struct drm_radeon_info { |
879 | uint32_t request; | 904 | uint32_t request; |