Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
i810_drm.h File Reference

Go to the source code of this file.

Data Structures

struct  _drm_i810_init
 
struct  _drm_i810_pre12_init
 
struct  _drm_i810_tex_region
 
struct  _drm_i810_sarea
 
struct  _drm_i810_clear
 
struct  _drm_i810_vertex
 
struct  _drm_i810_copy_t
 
struct  drm_i810_dma
 
struct  _drm_i810_overlay_t
 
struct  _drm_i810_mc
 

Macros

#define _I810_DEFINES_
 
#define I810_DMA_BUF_ORDER   12
 
#define I810_DMA_BUF_SZ   (1<<I810_DMA_BUF_ORDER)
 
#define I810_DMA_BUF_NR   256
 
#define I810_NR_SAREA_CLIPRECTS   8
 
#define I810_NR_TEX_REGIONS   64
 
#define I810_LOG_MIN_TEX_REGION_SIZE   16
 
#define I810_UPLOAD_TEX0IMAGE   0x1 /* handled clientside */
 
#define I810_UPLOAD_TEX1IMAGE   0x2 /* handled clientside */
 
#define I810_UPLOAD_CTX   0x4
 
#define I810_UPLOAD_BUFFERS   0x8
 
#define I810_UPLOAD_TEX0   0x10
 
#define I810_UPLOAD_TEX1   0x20
 
#define I810_UPLOAD_CLIPRECTS   0x40
 
#define I810_DESTREG_DI0   0 /* CMD_OP_DESTBUFFER_INFO (2 dwords) */
 
#define I810_DESTREG_DI1   1
 
#define I810_DESTREG_DV0   2 /* GFX_OP_DESTBUFFER_VARS (2 dwords) */
 
#define I810_DESTREG_DV1   3
 
#define I810_DESTREG_DR0   4 /* GFX_OP_DRAWRECT_INFO (4 dwords) */
 
#define I810_DESTREG_DR1   5
 
#define I810_DESTREG_DR2   6
 
#define I810_DESTREG_DR3   7
 
#define I810_DESTREG_DR4   8
 
#define I810_DEST_SETUP_SIZE   10
 
#define I810_CTXREG_CF0   0 /* GFX_OP_COLOR_FACTOR */
 
#define I810_CTXREG_CF1   1
 
#define I810_CTXREG_ST0   2 /* GFX_OP_STIPPLE */
 
#define I810_CTXREG_ST1   3
 
#define I810_CTXREG_VF   4 /* GFX_OP_VERTEX_FMT */
 
#define I810_CTXREG_MT   5 /* GFX_OP_MAP_TEXELS */
 
#define I810_CTXREG_MC0   6 /* GFX_OP_MAP_COLOR_STAGES - stage 0 */
 
#define I810_CTXREG_MC1   7 /* GFX_OP_MAP_COLOR_STAGES - stage 1 */
 
#define I810_CTXREG_MC2   8 /* GFX_OP_MAP_COLOR_STAGES - stage 2 */
 
#define I810_CTXREG_MA0   9 /* GFX_OP_MAP_ALPHA_STAGES - stage 0 */
 
#define I810_CTXREG_MA1   10 /* GFX_OP_MAP_ALPHA_STAGES - stage 1 */
 
#define I810_CTXREG_MA2   11 /* GFX_OP_MAP_ALPHA_STAGES - stage 2 */
 
#define I810_CTXREG_SDM   12 /* GFX_OP_SRC_DEST_MONO */
 
#define I810_CTXREG_FOG   13 /* GFX_OP_FOG_COLOR */
 
#define I810_CTXREG_B1   14 /* GFX_OP_BOOL_1 */
 
#define I810_CTXREG_B2   15 /* GFX_OP_BOOL_2 */
 
#define I810_CTXREG_LCS   16 /* GFX_OP_LINEWIDTH_CULL_SHADE_MODE */
 
#define I810_CTXREG_PV   17 /* GFX_OP_PV_RULE -- Invarient! */
 
#define I810_CTXREG_ZA   18 /* GFX_OP_ZBIAS_ALPHAFUNC */
 
#define I810_CTXREG_AA   19 /* GFX_OP_ANTIALIAS */
 
#define I810_CTX_SETUP_SIZE   20
 
#define I810_TEXREG_MI0   0 /* GFX_OP_MAP_INFO (4 dwords) */
 
#define I810_TEXREG_MI1   1
 
#define I810_TEXREG_MI2   2
 
#define I810_TEXREG_MI3   3
 
#define I810_TEXREG_MF   4 /* GFX_OP_MAP_FILTER */
 
#define I810_TEXREG_MLC   5 /* GFX_OP_MAP_LOD_CTL */
 
#define I810_TEXREG_MLL   6 /* GFX_OP_MAP_LOD_LIMITS */
 
#define I810_TEXREG_MCS   7 /* GFX_OP_MAP_COORD_SETS ??? */
 
#define I810_TEX_SETUP_SIZE   8
 
#define I810_FRONT   0x1
 
#define I810_BACK   0x2
 
#define I810_DEPTH   0x4
 
#define DRM_I810_INIT   0x00
 
#define DRM_I810_VERTEX   0x01
 
#define DRM_I810_CLEAR   0x02
 
#define DRM_I810_FLUSH   0x03
 
#define DRM_I810_GETAGE   0x04
 
#define DRM_I810_GETBUF   0x05
 
#define DRM_I810_SWAP   0x06
 
#define DRM_I810_COPY   0x07
 
#define DRM_I810_DOCOPY   0x08
 
#define DRM_I810_OV0INFO   0x09
 
#define DRM_I810_FSTATUS   0x0a
 
#define DRM_I810_OV0FLIP   0x0b
 
#define DRM_I810_MC   0x0c
 
#define DRM_I810_RSTATUS   0x0d
 
#define DRM_I810_FLIP   0x0e
 
#define DRM_IOCTL_I810_INIT   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_INIT, drm_i810_init_t)
 
#define DRM_IOCTL_I810_VERTEX   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_VERTEX, drm_i810_vertex_t)
 
#define DRM_IOCTL_I810_CLEAR   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_CLEAR, drm_i810_clear_t)
 
#define DRM_IOCTL_I810_FLUSH   DRM_IO( DRM_COMMAND_BASE + DRM_I810_FLUSH)
 
#define DRM_IOCTL_I810_GETAGE   DRM_IO( DRM_COMMAND_BASE + DRM_I810_GETAGE)
 
#define DRM_IOCTL_I810_GETBUF   DRM_IOWR(DRM_COMMAND_BASE + DRM_I810_GETBUF, drm_i810_dma_t)
 
#define DRM_IOCTL_I810_SWAP   DRM_IO( DRM_COMMAND_BASE + DRM_I810_SWAP)
 
#define DRM_IOCTL_I810_COPY   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_COPY, drm_i810_copy_t)
 
#define DRM_IOCTL_I810_DOCOPY   DRM_IO( DRM_COMMAND_BASE + DRM_I810_DOCOPY)
 
#define DRM_IOCTL_I810_OV0INFO   DRM_IOR( DRM_COMMAND_BASE + DRM_I810_OV0INFO, drm_i810_overlay_t)
 
#define DRM_IOCTL_I810_FSTATUS   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_FSTATUS)
 
#define DRM_IOCTL_I810_OV0FLIP   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_OV0FLIP)
 
#define DRM_IOCTL_I810_MC   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_MC, drm_i810_mc_t)
 
#define DRM_IOCTL_I810_RSTATUS   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_RSTATUS)
 
#define DRM_IOCTL_I810_FLIP   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_FLIP)
 
#define PR_TRIANGLES   (0x0<<18)
 
#define PR_TRISTRIP_0   (0x1<<18)
 
#define PR_TRISTRIP_1   (0x2<<18)
 
#define PR_TRIFAN   (0x3<<18)
 
#define PR_POLYGON   (0x4<<18)
 
#define PR_LINES   (0x5<<18)
 
#define PR_LINESTRIP   (0x6<<18)
 
#define PR_RECTS   (0x7<<18)
 
#define PR_MASK   (0x7<<18)
 

Typedefs

typedef enum _drm_i810_init_func drm_i810_init_func_t
 
typedef struct _drm_i810_init drm_i810_init_t
 
typedef struct _drm_i810_pre12_init drm_i810_pre12_init_t
 
typedef struct _drm_i810_tex_region drm_i810_tex_region_t
 
typedef struct _drm_i810_sarea drm_i810_sarea_t
 
typedef struct _drm_i810_clear drm_i810_clear_t
 
typedef struct _drm_i810_vertex drm_i810_vertex_t
 
typedef struct _drm_i810_copy_t drm_i810_copy_t
 
typedef struct drm_i810_dma drm_i810_dma_t
 
typedef struct _drm_i810_overlay_t drm_i810_overlay_t
 
typedef struct _drm_i810_mc drm_i810_mc_t
 

Enumerations

enum  _drm_i810_init_func { I810_INIT_DMA = 0x01, I810_CLEANUP_DMA = 0x02, I810_INIT_DMA_1_4 = 0x03 }
 

Macro Definition Documentation

#define _I810_DEFINES_

Definition at line 9 of file i810_drm.h.

#define DRM_I810_CLEAR   0x02

Definition at line 198 of file i810_drm.h.

#define DRM_I810_COPY   0x07

Definition at line 203 of file i810_drm.h.

#define DRM_I810_DOCOPY   0x08

Definition at line 204 of file i810_drm.h.

#define DRM_I810_FLIP   0x0e

Definition at line 210 of file i810_drm.h.

#define DRM_I810_FLUSH   0x03

Definition at line 199 of file i810_drm.h.

#define DRM_I810_FSTATUS   0x0a

Definition at line 206 of file i810_drm.h.

#define DRM_I810_GETAGE   0x04

Definition at line 200 of file i810_drm.h.

#define DRM_I810_GETBUF   0x05

Definition at line 201 of file i810_drm.h.

#define DRM_I810_INIT   0x00

Definition at line 196 of file i810_drm.h.

#define DRM_I810_MC   0x0c

Definition at line 208 of file i810_drm.h.

#define DRM_I810_OV0FLIP   0x0b

Definition at line 207 of file i810_drm.h.

#define DRM_I810_OV0INFO   0x09

Definition at line 205 of file i810_drm.h.

#define DRM_I810_RSTATUS   0x0d

Definition at line 209 of file i810_drm.h.

#define DRM_I810_SWAP   0x06

Definition at line 202 of file i810_drm.h.

#define DRM_I810_VERTEX   0x01

Definition at line 197 of file i810_drm.h.

#define DRM_IOCTL_I810_CLEAR   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_CLEAR, drm_i810_clear_t)

Definition at line 214 of file i810_drm.h.

#define DRM_IOCTL_I810_COPY   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_COPY, drm_i810_copy_t)

Definition at line 219 of file i810_drm.h.

#define DRM_IOCTL_I810_DOCOPY   DRM_IO( DRM_COMMAND_BASE + DRM_I810_DOCOPY)

Definition at line 220 of file i810_drm.h.

#define DRM_IOCTL_I810_FLIP   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_FLIP)

Definition at line 226 of file i810_drm.h.

#define DRM_IOCTL_I810_FLUSH   DRM_IO( DRM_COMMAND_BASE + DRM_I810_FLUSH)

Definition at line 215 of file i810_drm.h.

#define DRM_IOCTL_I810_FSTATUS   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_FSTATUS)

Definition at line 222 of file i810_drm.h.

#define DRM_IOCTL_I810_GETAGE   DRM_IO( DRM_COMMAND_BASE + DRM_I810_GETAGE)

Definition at line 216 of file i810_drm.h.

#define DRM_IOCTL_I810_GETBUF   DRM_IOWR(DRM_COMMAND_BASE + DRM_I810_GETBUF, drm_i810_dma_t)

Definition at line 217 of file i810_drm.h.

#define DRM_IOCTL_I810_INIT   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_INIT, drm_i810_init_t)

Definition at line 212 of file i810_drm.h.

#define DRM_IOCTL_I810_MC   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_MC, drm_i810_mc_t)

Definition at line 224 of file i810_drm.h.

#define DRM_IOCTL_I810_OV0FLIP   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_OV0FLIP)

Definition at line 223 of file i810_drm.h.

#define DRM_IOCTL_I810_OV0INFO   DRM_IOR( DRM_COMMAND_BASE + DRM_I810_OV0INFO, drm_i810_overlay_t)

Definition at line 221 of file i810_drm.h.

#define DRM_IOCTL_I810_RSTATUS   DRM_IO ( DRM_COMMAND_BASE + DRM_I810_RSTATUS)

Definition at line 225 of file i810_drm.h.

#define DRM_IOCTL_I810_SWAP   DRM_IO( DRM_COMMAND_BASE + DRM_I810_SWAP)

Definition at line 218 of file i810_drm.h.

#define DRM_IOCTL_I810_VERTEX   DRM_IOW( DRM_COMMAND_BASE + DRM_I810_VERTEX, drm_i810_vertex_t)

Definition at line 213 of file i810_drm.h.

#define I810_BACK   0x2

Definition at line 93 of file i810_drm.h.

#define I810_CTX_SETUP_SIZE   20

Definition at line 76 of file i810_drm.h.

#define I810_CTXREG_AA   19 /* GFX_OP_ANTIALIAS */

Definition at line 75 of file i810_drm.h.

#define I810_CTXREG_B1   14 /* GFX_OP_BOOL_1 */

Definition at line 70 of file i810_drm.h.

#define I810_CTXREG_B2   15 /* GFX_OP_BOOL_2 */

Definition at line 71 of file i810_drm.h.

#define I810_CTXREG_CF0   0 /* GFX_OP_COLOR_FACTOR */

Definition at line 56 of file i810_drm.h.

#define I810_CTXREG_CF1   1

Definition at line 57 of file i810_drm.h.

#define I810_CTXREG_FOG   13 /* GFX_OP_FOG_COLOR */

Definition at line 69 of file i810_drm.h.

#define I810_CTXREG_LCS   16 /* GFX_OP_LINEWIDTH_CULL_SHADE_MODE */

Definition at line 72 of file i810_drm.h.

#define I810_CTXREG_MA0   9 /* GFX_OP_MAP_ALPHA_STAGES - stage 0 */

Definition at line 65 of file i810_drm.h.

#define I810_CTXREG_MA1   10 /* GFX_OP_MAP_ALPHA_STAGES - stage 1 */

Definition at line 66 of file i810_drm.h.

#define I810_CTXREG_MA2   11 /* GFX_OP_MAP_ALPHA_STAGES - stage 2 */

Definition at line 67 of file i810_drm.h.

#define I810_CTXREG_MC0   6 /* GFX_OP_MAP_COLOR_STAGES - stage 0 */

Definition at line 62 of file i810_drm.h.

#define I810_CTXREG_MC1   7 /* GFX_OP_MAP_COLOR_STAGES - stage 1 */

Definition at line 63 of file i810_drm.h.

#define I810_CTXREG_MC2   8 /* GFX_OP_MAP_COLOR_STAGES - stage 2 */

Definition at line 64 of file i810_drm.h.

#define I810_CTXREG_MT   5 /* GFX_OP_MAP_TEXELS */

Definition at line 61 of file i810_drm.h.

#define I810_CTXREG_PV   17 /* GFX_OP_PV_RULE -- Invarient! */

Definition at line 73 of file i810_drm.h.

#define I810_CTXREG_SDM   12 /* GFX_OP_SRC_DEST_MONO */

Definition at line 68 of file i810_drm.h.

#define I810_CTXREG_ST0   2 /* GFX_OP_STIPPLE */

Definition at line 58 of file i810_drm.h.

#define I810_CTXREG_ST1   3

Definition at line 59 of file i810_drm.h.

#define I810_CTXREG_VF   4 /* GFX_OP_VERTEX_FMT */

Definition at line 60 of file i810_drm.h.

#define I810_CTXREG_ZA   18 /* GFX_OP_ZBIAS_ALPHAFUNC */

Definition at line 74 of file i810_drm.h.

#define I810_DEPTH   0x4

Definition at line 94 of file i810_drm.h.

#define I810_DEST_SETUP_SIZE   10

Definition at line 52 of file i810_drm.h.

#define I810_DESTREG_DI0   0 /* CMD_OP_DESTBUFFER_INFO (2 dwords) */

Definition at line 43 of file i810_drm.h.

#define I810_DESTREG_DI1   1

Definition at line 44 of file i810_drm.h.

#define I810_DESTREG_DR0   4 /* GFX_OP_DRAWRECT_INFO (4 dwords) */

Definition at line 47 of file i810_drm.h.

#define I810_DESTREG_DR1   5

Definition at line 48 of file i810_drm.h.

#define I810_DESTREG_DR2   6

Definition at line 49 of file i810_drm.h.

#define I810_DESTREG_DR3   7

Definition at line 50 of file i810_drm.h.

#define I810_DESTREG_DR4   8

Definition at line 51 of file i810_drm.h.

#define I810_DESTREG_DV0   2 /* GFX_OP_DESTBUFFER_VARS (2 dwords) */

Definition at line 45 of file i810_drm.h.

#define I810_DESTREG_DV1   3

Definition at line 46 of file i810_drm.h.

#define I810_DMA_BUF_NR   256

Definition at line 13 of file i810_drm.h.

#define I810_DMA_BUF_ORDER   12

Definition at line 11 of file i810_drm.h.

#define I810_DMA_BUF_SZ   (1<<I810_DMA_BUF_ORDER)

Definition at line 12 of file i810_drm.h.

#define I810_FRONT   0x1

Definition at line 92 of file i810_drm.h.

#define I810_LOG_MIN_TEX_REGION_SIZE   16

Definition at line 19 of file i810_drm.h.

#define I810_NR_SAREA_CLIPRECTS   8

Definition at line 14 of file i810_drm.h.

#define I810_NR_TEX_REGIONS   64

Definition at line 18 of file i810_drm.h.

#define I810_TEX_SETUP_SIZE   8

Definition at line 88 of file i810_drm.h.

#define I810_TEXREG_MCS   7 /* GFX_OP_MAP_COORD_SETS ??? */

Definition at line 87 of file i810_drm.h.

#define I810_TEXREG_MF   4 /* GFX_OP_MAP_FILTER */

Definition at line 84 of file i810_drm.h.

#define I810_TEXREG_MI0   0 /* GFX_OP_MAP_INFO (4 dwords) */

Definition at line 80 of file i810_drm.h.

#define I810_TEXREG_MI1   1

Definition at line 81 of file i810_drm.h.

#define I810_TEXREG_MI2   2

Definition at line 82 of file i810_drm.h.

#define I810_TEXREG_MI3   3

Definition at line 83 of file i810_drm.h.

#define I810_TEXREG_MLC   5 /* GFX_OP_MAP_LOD_CTL */

Definition at line 85 of file i810_drm.h.

#define I810_TEXREG_MLL   6 /* GFX_OP_MAP_LOD_LIMITS */

Definition at line 86 of file i810_drm.h.

#define I810_UPLOAD_BUFFERS   0x8

Definition at line 25 of file i810_drm.h.

#define I810_UPLOAD_CLIPRECTS   0x40

Definition at line 28 of file i810_drm.h.

#define I810_UPLOAD_CTX   0x4

Definition at line 24 of file i810_drm.h.

#define I810_UPLOAD_TEX0   0x10

Definition at line 26 of file i810_drm.h.

#define I810_UPLOAD_TEX0IMAGE   0x1 /* handled clientside */

Definition at line 22 of file i810_drm.h.

#define I810_UPLOAD_TEX1   0x20

Definition at line 27 of file i810_drm.h.

#define I810_UPLOAD_TEX1IMAGE   0x2 /* handled clientside */

Definition at line 23 of file i810_drm.h.

#define PR_LINES   (0x5<<18)

Definition at line 256 of file i810_drm.h.

#define PR_LINESTRIP   (0x6<<18)

Definition at line 257 of file i810_drm.h.

#define PR_MASK   (0x7<<18)

Definition at line 259 of file i810_drm.h.

#define PR_POLYGON   (0x4<<18)

Definition at line 255 of file i810_drm.h.

#define PR_RECTS   (0x7<<18)

Definition at line 258 of file i810_drm.h.

#define PR_TRIANGLES   (0x0<<18)

Definition at line 251 of file i810_drm.h.

#define PR_TRIFAN   (0x3<<18)

Definition at line 254 of file i810_drm.h.

#define PR_TRISTRIP_0   (0x1<<18)

Definition at line 252 of file i810_drm.h.

#define PR_TRISTRIP_1   (0x2<<18)

Definition at line 253 of file i810_drm.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
I810_INIT_DMA 
I810_CLEANUP_DMA 
I810_INIT_DMA_1_4 

Definition at line 96 of file i810_drm.h.