Back to index

libdrm  2.4.37
Classes | Defines | Typedefs | Enumerations
mach64_drm.h File Reference

Go to the source code of this file.

Classes

struct  drm_mach64_context_regs_t
struct  drm_mach64_sarea
struct  drm_mach64_init
struct  drm_mach64_clear
struct  drm_mach64_vertex
struct  drm_mach64_blit
struct  drm_mach64_getparam

Defines

#define __MACH64_SAREA_DEFINES__
#define MACH64_UPLOAD_DST_OFF_PITCH   0x0001
#define MACH64_UPLOAD_Z_OFF_PITCH   0x0002
#define MACH64_UPLOAD_Z_ALPHA_CNTL   0x0004
#define MACH64_UPLOAD_SCALE_3D_CNTL   0x0008
#define MACH64_UPLOAD_DP_FOG_CLR   0x0010
#define MACH64_UPLOAD_DP_WRITE_MASK   0x0020
#define MACH64_UPLOAD_DP_PIX_WIDTH   0x0040
#define MACH64_UPLOAD_SETUP_CNTL   0x0080
#define MACH64_UPLOAD_MISC   0x0100
#define MACH64_UPLOAD_TEXTURE   0x0200
#define MACH64_UPLOAD_TEX0IMAGE   0x0400
#define MACH64_UPLOAD_TEX1IMAGE   0x0800
#define MACH64_UPLOAD_CLIPRECTS   0x1000 /* handled client-side */
#define MACH64_UPLOAD_CONTEXT   0x00ff
#define MACH64_UPLOAD_ALL   0x1fff
#define MACH64_BUFFER_SIZE   16384
#define MACH64_MAX_QUEUED_FRAMES   3U
#define MACH64_HOSTDATA_BLIT_OFFSET   104
#define MACH64_NR_SAREA_CLIPRECTS   8
#define MACH64_CARD_HEAP   0
#define MACH64_AGP_HEAP   1
#define MACH64_NR_TEX_HEAPS   2
#define MACH64_NR_TEX_REGIONS   64
#define MACH64_LOG_TEX_GRANULARITY   16
#define MACH64_TEX_MAXLEVELS   1
#define MACH64_NR_CONTEXT_REGS   15
#define MACH64_NR_TEXTURE_REGS   4
#define DRM_MACH64_INIT   0x00
#define DRM_MACH64_IDLE   0x01
#define DRM_MACH64_RESET   0x02
#define DRM_MACH64_SWAP   0x03
#define DRM_MACH64_CLEAR   0x04
#define DRM_MACH64_VERTEX   0x05
#define DRM_MACH64_BLIT   0x06
#define DRM_MACH64_FLUSH   0x07
#define DRM_MACH64_GETPARAM   0x08
#define DRM_IOCTL_MACH64_INIT   DRM_IOW( DRM_COMMAND_BASE + DRM_MACH64_INIT, drm_mach64_init_t)
#define DRM_IOCTL_MACH64_IDLE   DRM_IO( DRM_COMMAND_BASE + DRM_MACH64_IDLE )
#define DRM_IOCTL_MACH64_RESET   DRM_IO( DRM_COMMAND_BASE + DRM_MACH64_RESET )
#define DRM_IOCTL_MACH64_SWAP   DRM_IO( DRM_COMMAND_BASE + DRM_MACH64_SWAP )
#define DRM_IOCTL_MACH64_CLEAR   DRM_IOW( DRM_COMMAND_BASE + DRM_MACH64_CLEAR, drm_mach64_clear_t)
#define DRM_IOCTL_MACH64_VERTEX   DRM_IOW( DRM_COMMAND_BASE + DRM_MACH64_VERTEX, drm_mach64_vertex_t)
#define DRM_IOCTL_MACH64_BLIT   DRM_IOW( DRM_COMMAND_BASE + DRM_MACH64_BLIT, drm_mach64_blit_t)
#define DRM_IOCTL_MACH64_FLUSH   DRM_IO( DRM_COMMAND_BASE + DRM_MACH64_FLUSH )
#define DRM_IOCTL_MACH64_GETPARAM   DRM_IOWR( DRM_COMMAND_BASE + DRM_MACH64_GETPARAM, drm_mach64_getparam_t)
#define MACH64_FRONT   0x1
#define MACH64_BACK   0x2
#define MACH64_DEPTH   0x4
#define MACH64_PRIM_POINTS   0x00000000
#define MACH64_PRIM_LINES   0x00000001
#define MACH64_PRIM_LINE_LOOP   0x00000002
#define MACH64_PRIM_LINE_STRIP   0x00000003
#define MACH64_PRIM_TRIANGLES   0x00000004
#define MACH64_PRIM_TRIANGLE_STRIP   0x00000005
#define MACH64_PRIM_TRIANGLE_FAN   0x00000006
#define MACH64_PRIM_QUADS   0x00000007
#define MACH64_PRIM_QUAD_STRIP   0x00000008
#define MACH64_PRIM_POLYGON   0x00000009

Typedefs

typedef struct drm_mach64_sarea drm_mach64_sarea_t
typedef enum _drm_mach64_dma_mode_t drm_mach64_dma_mode_t
typedef struct drm_mach64_init drm_mach64_init_t
typedef struct drm_mach64_clear drm_mach64_clear_t
typedef struct drm_mach64_vertex drm_mach64_vertex_t
typedef struct drm_mach64_blit drm_mach64_blit_t
typedef struct drm_mach64_getparam drm_mach64_getparam_t

Enumerations

enum  _drm_mach64_dma_mode_t { MACH64_MODE_DMA_ASYNC, MACH64_MODE_DMA_SYNC, MACH64_MODE_MMIO }

Class Documentation

struct drm_mach64_context_regs_t

Definition at line 94 of file mach64_drm.h.

Class Members
unsigned int alpha_tst_cntl
unsigned int clr_cmp_cntl
unsigned int dp_fog_clr
unsigned int dp_mix
unsigned int dp_pix_width
unsigned int dp_src
unsigned int dp_write_mask
unsigned int dst_off_pitch
unsigned int gui_traj_cntl
unsigned int sc_left_right
unsigned int sc_top_bottom
unsigned int scale_3d_cntl
unsigned int secondary_tex_off
unsigned int setup_cntl
unsigned int tex_cntl
unsigned int tex_offset
unsigned int tex_size_pitch
unsigned int z_cntl
unsigned int z_off_pitch
struct drm_mach64_sarea

Definition at line 123 of file mach64_drm.h.

Collaboration diagram for drm_mach64_sarea:
Class Members
drm_mach64_context_regs_t context_state
int ctx_owner
unsigned int dirty
unsigned int frames_queued
unsigned int nbox
unsigned int tex_age
unsigned int vertsize
struct drm_mach64_clear

Definition at line 225 of file mach64_drm.h.

Class Members
unsigned int clear_color
unsigned int clear_depth
unsigned int flags
int h
int w
int x
int y
struct drm_mach64_vertex

Definition at line 232 of file mach64_drm.h.

Class Members
void * buf
int discard
int prim
unsigned long used
struct drm_mach64_blit

Definition at line 239 of file mach64_drm.h.

Class Members
void * buf
int format
unsigned short height
int offset
int pitch
unsigned short width
unsigned short x
unsigned short y

Define Documentation

Definition at line 41 of file mach64_drm.h.

Definition at line 172 of file mach64_drm.h.

Definition at line 170 of file mach64_drm.h.

Definition at line 173 of file mach64_drm.h.

Definition at line 174 of file mach64_drm.h.

Definition at line 167 of file mach64_drm.h.

Definition at line 166 of file mach64_drm.h.

Definition at line 168 of file mach64_drm.h.

Definition at line 169 of file mach64_drm.h.

Definition at line 171 of file mach64_drm.h.

#define DRM_MACH64_BLIT   0x06

Definition at line 162 of file mach64_drm.h.

#define DRM_MACH64_CLEAR   0x04

Definition at line 160 of file mach64_drm.h.

#define DRM_MACH64_FLUSH   0x07

Definition at line 163 of file mach64_drm.h.

#define DRM_MACH64_GETPARAM   0x08

Definition at line 164 of file mach64_drm.h.

#define DRM_MACH64_IDLE   0x01

Definition at line 157 of file mach64_drm.h.

#define DRM_MACH64_INIT   0x00

Definition at line 156 of file mach64_drm.h.

#define DRM_MACH64_RESET   0x02

Definition at line 158 of file mach64_drm.h.

#define DRM_MACH64_SWAP   0x03

Definition at line 159 of file mach64_drm.h.

#define DRM_MACH64_VERTEX   0x05

Definition at line 161 of file mach64_drm.h.

#define MACH64_AGP_HEAP   1

Definition at line 82 of file mach64_drm.h.

#define MACH64_BACK   0x2

Definition at line 179 of file mach64_drm.h.

#define MACH64_BUFFER_SIZE   16384

Definition at line 66 of file mach64_drm.h.

#define MACH64_CARD_HEAP   0

Definition at line 81 of file mach64_drm.h.

#define MACH64_DEPTH   0x4

Definition at line 180 of file mach64_drm.h.

#define MACH64_FRONT   0x1

Definition at line 178 of file mach64_drm.h.

#define MACH64_HOSTDATA_BLIT_OFFSET   104

Definition at line 75 of file mach64_drm.h.

#define MACH64_LOG_TEX_GRANULARITY   16

Definition at line 85 of file mach64_drm.h.

#define MACH64_MAX_QUEUED_FRAMES   3U

Definition at line 71 of file mach64_drm.h.

#define MACH64_NR_CONTEXT_REGS   15

Definition at line 89 of file mach64_drm.h.

#define MACH64_NR_SAREA_CLIPRECTS   8

Definition at line 79 of file mach64_drm.h.

#define MACH64_NR_TEX_HEAPS   2

Definition at line 83 of file mach64_drm.h.

#define MACH64_NR_TEX_REGIONS   64

Definition at line 84 of file mach64_drm.h.

#define MACH64_NR_TEXTURE_REGS   4

Definition at line 90 of file mach64_drm.h.

#define MACH64_PRIM_LINE_LOOP   0x00000002

Definition at line 186 of file mach64_drm.h.

#define MACH64_PRIM_LINE_STRIP   0x00000003

Definition at line 187 of file mach64_drm.h.

#define MACH64_PRIM_LINES   0x00000001

Definition at line 185 of file mach64_drm.h.

#define MACH64_PRIM_POINTS   0x00000000

Definition at line 184 of file mach64_drm.h.

#define MACH64_PRIM_POLYGON   0x00000009

Definition at line 193 of file mach64_drm.h.

#define MACH64_PRIM_QUAD_STRIP   0x00000008

Definition at line 192 of file mach64_drm.h.

#define MACH64_PRIM_QUADS   0x00000007

Definition at line 191 of file mach64_drm.h.

#define MACH64_PRIM_TRIANGLE_FAN   0x00000006

Definition at line 190 of file mach64_drm.h.

#define MACH64_PRIM_TRIANGLE_STRIP   0x00000005

Definition at line 189 of file mach64_drm.h.

#define MACH64_PRIM_TRIANGLES   0x00000004

Definition at line 188 of file mach64_drm.h.

#define MACH64_TEX_MAXLEVELS   1

Definition at line 87 of file mach64_drm.h.

#define MACH64_UPLOAD_ALL   0x1fff

Definition at line 62 of file mach64_drm.h.

#define MACH64_UPLOAD_CLIPRECTS   0x1000 /* handled client-side */

Definition at line 60 of file mach64_drm.h.

#define MACH64_UPLOAD_CONTEXT   0x00ff

Definition at line 61 of file mach64_drm.h.

#define MACH64_UPLOAD_DP_FOG_CLR   0x0010

Definition at line 52 of file mach64_drm.h.

#define MACH64_UPLOAD_DP_PIX_WIDTH   0x0040

Definition at line 54 of file mach64_drm.h.

#define MACH64_UPLOAD_DP_WRITE_MASK   0x0020

Definition at line 53 of file mach64_drm.h.

#define MACH64_UPLOAD_DST_OFF_PITCH   0x0001

Definition at line 48 of file mach64_drm.h.

#define MACH64_UPLOAD_MISC   0x0100

Definition at line 56 of file mach64_drm.h.

#define MACH64_UPLOAD_SCALE_3D_CNTL   0x0008

Definition at line 51 of file mach64_drm.h.

#define MACH64_UPLOAD_SETUP_CNTL   0x0080

Definition at line 55 of file mach64_drm.h.

#define MACH64_UPLOAD_TEX0IMAGE   0x0400

Definition at line 58 of file mach64_drm.h.

#define MACH64_UPLOAD_TEX1IMAGE   0x0800

Definition at line 59 of file mach64_drm.h.

#define MACH64_UPLOAD_TEXTURE   0x0200

Definition at line 57 of file mach64_drm.h.

#define MACH64_UPLOAD_Z_ALPHA_CNTL   0x0004

Definition at line 50 of file mach64_drm.h.

#define MACH64_UPLOAD_Z_OFF_PITCH   0x0002

Definition at line 49 of file mach64_drm.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
MACH64_MODE_DMA_ASYNC 
MACH64_MODE_DMA_SYNC 
MACH64_MODE_MMIO 

Definition at line 195 of file mach64_drm.h.