Back to index

libdrm  2.4.37
Classes | Defines | Typedefs
savage_drm.h File Reference

Go to the source code of this file.

Classes

struct  _drm_savage_sarea
struct  drm_savage_init
struct  drm_savage_cmdbuf
struct  drm_savage_event
union  drm_savage_cmd_header
struct  drm_savage_cmd_header.cmd
struct  drm_savage_cmd_header.state
struct  drm_savage_cmd_header.prim
struct  drm_savage_cmd_header.idx
struct  drm_savage_cmd_header.clear0
struct  drm_savage_cmd_header.clear1

Defines

#define __SAVAGE_SAREA_DEFINES__
#define SAVAGE_CARD_HEAP   0
#define SAVAGE_AGP_HEAP   1
#define SAVAGE_NR_TEX_HEAPS   2
#define SAVAGE_NR_TEX_REGIONS   16
#define SAVAGE_LOG_MIN_TEX_REGION_SIZE   16
#define DRM_SAVAGE_BCI_INIT   0x00
#define DRM_SAVAGE_BCI_CMDBUF   0x01
#define DRM_SAVAGE_BCI_EVENT_EMIT   0x02
#define DRM_SAVAGE_BCI_EVENT_WAIT   0x03
#define DRM_IOCTL_SAVAGE_INIT   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_INIT, drm_savage_init_t)
#define DRM_IOCTL_SAVAGE_CMDBUF   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_CMDBUF, drm_savage_cmdbuf_t)
#define DRM_IOCTL_SAVAGE_EVENT_EMIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_EMIT, drm_savage_event_emit_t)
#define DRM_IOCTL_SAVAGE_EVENT_WAIT   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_WAIT, drm_savage_event_wait_t)
#define SAVAGE_DMA_PCI   1
#define SAVAGE_DMA_AGP   3
#define SAVAGE_WAIT_2D   0x1 /* wait for 2D idle before updating event tag */
#define SAVAGE_WAIT_3D   0x2 /* wait for 3D idle before updating event tag */
#define SAVAGE_WAIT_IRQ   0x4 /* emit or wait for IRQ, not implemented yet */
#define SAVAGE_CMD_STATE   0 /* a range of state registers */
#define SAVAGE_CMD_DMA_PRIM   1 /* vertices from DMA buffer */
#define SAVAGE_CMD_VB_PRIM   2 /* vertices from client vertex buffer */
#define SAVAGE_CMD_DMA_IDX   3 /* indexed vertices from DMA buffer */
#define SAVAGE_CMD_VB_IDX   4 /* indexed vertices client vertex buffer */
#define SAVAGE_CMD_CLEAR   5 /* clear buffers */
#define SAVAGE_CMD_SWAP   6 /* swap buffers */
#define SAVAGE_PRIM_TRILIST   0 /* triangle list */
#define SAVAGE_PRIM_TRISTRIP   1 /* triangle strip */
#define SAVAGE_PRIM_TRIFAN   2 /* triangle fan */
#define SAVAGE_PRIM_TRILIST_201
#define SAVAGE_SKIP_Z   0x01
#define SAVAGE_SKIP_W   0x02
#define SAVAGE_SKIP_C0   0x04
#define SAVAGE_SKIP_C1   0x08
#define SAVAGE_SKIP_S0   0x10
#define SAVAGE_SKIP_T0   0x20
#define SAVAGE_SKIP_ST0   0x30
#define SAVAGE_SKIP_S1   0x40
#define SAVAGE_SKIP_T1   0x80
#define SAVAGE_SKIP_ST1   0xc0
#define SAVAGE_SKIP_ALL_S3D   0x3f
#define SAVAGE_SKIP_ALL_S4   0xff
#define SAVAGE_FRONT   0x1
#define SAVAGE_BACK   0x2
#define SAVAGE_DEPTH   0x4

Typedefs

typedef struct _drm_savage_sarea drm_savage_sarea_t
typedef struct _drm_savage_sareadrm_savage_sarea_ptr
typedef struct drm_savage_init drm_savage_init_t
typedef union drm_savage_cmd_header
typedef struct drm_savage_cmdbuf drm_savage_cmdbuf_t
typedef struct drm_savage_event drm_savage_event_emit_t
typedef struct drm_savage_event drm_savage_event_wait_t

Class Documentation

struct _drm_savage_sarea

Definition at line 47 of file savage_drm.h.

Class Members
int ctxOwner
unsigned int texAge
struct drm_savage_cmdbuf

Definition at line 104 of file savage_drm.h.

Collaboration diagram for drm_savage_cmdbuf:
Class Members
struct drm_clip_rect * box_addr
drm_savage_cmd_header_t * cmd_addr
int discard
unsigned int dma_idx
unsigned int nbox
unsigned int size
unsigned int * vb_addr
unsigned int vb_size
unsigned int vb_stride
struct drm_savage_event

Definition at line 123 of file savage_drm.h.

Class Members
unsigned int count
unsigned int flags
union drm_savage_cmd_header

Definition at line 168 of file savage_drm.h.

Class Members
struct drm_savage_cmd_header clear0
struct drm_savage_cmd_header clear1
struct drm_savage_cmd_header cmd
struct drm_savage_cmd_header idx
struct drm_savage_cmd_header prim
struct drm_savage_cmd_header state
struct drm_savage_cmd_header.cmd

Definition at line 169 of file savage_drm.h.

Class Members
unsigned char cmd
unsigned char pad0
unsigned short pad1
unsigned short pad2
unsigned short pad3
struct drm_savage_cmd_header.state

Definition at line 176 of file savage_drm.h.

Class Members
unsigned char cmd
unsigned short count
unsigned char global
unsigned short pad3
unsigned short start
struct drm_savage_cmd_header.prim

Definition at line 183 of file savage_drm.h.

Class Members
unsigned char cmd
unsigned short count
unsigned char prim
unsigned short skip
unsigned short start
struct drm_savage_cmd_header.idx

Definition at line 190 of file savage_drm.h.

Class Members
unsigned char cmd
unsigned short count
unsigned short pad3
unsigned char prim
unsigned short skip
struct drm_savage_cmd_header.clear0

Definition at line 197 of file savage_drm.h.

Class Members
unsigned char cmd
unsigned int flags
unsigned char pad0
unsigned short pad1
struct drm_savage_cmd_header.clear1

Definition at line 203 of file savage_drm.h.

Class Members
unsigned int mask
unsigned int value

Define Documentation

Definition at line 30 of file savage_drm.h.

Definition at line 67 of file savage_drm.h.

Definition at line 68 of file savage_drm.h.

Definition at line 69 of file savage_drm.h.

Definition at line 66 of file savage_drm.h.

#define DRM_SAVAGE_BCI_CMDBUF   0x01

Definition at line 62 of file savage_drm.h.

#define DRM_SAVAGE_BCI_EVENT_EMIT   0x02

Definition at line 63 of file savage_drm.h.

#define DRM_SAVAGE_BCI_EVENT_WAIT   0x03

Definition at line 64 of file savage_drm.h.

#define DRM_SAVAGE_BCI_INIT   0x00

Definition at line 61 of file savage_drm.h.

#define SAVAGE_AGP_HEAP   1

Definition at line 40 of file savage_drm.h.

#define SAVAGE_BACK   0x2

Definition at line 163 of file savage_drm.h.

#define SAVAGE_CARD_HEAP   0

Definition at line 39 of file savage_drm.h.

#define SAVAGE_CMD_CLEAR   5 /* clear buffers */

Definition at line 135 of file savage_drm.h.

#define SAVAGE_CMD_DMA_IDX   3 /* indexed vertices from DMA buffer */

Definition at line 133 of file savage_drm.h.

#define SAVAGE_CMD_DMA_PRIM   1 /* vertices from DMA buffer */

Definition at line 131 of file savage_drm.h.

#define SAVAGE_CMD_STATE   0 /* a range of state registers */

Definition at line 130 of file savage_drm.h.

#define SAVAGE_CMD_SWAP   6 /* swap buffers */

Definition at line 136 of file savage_drm.h.

#define SAVAGE_CMD_VB_IDX   4 /* indexed vertices client vertex buffer */

Definition at line 134 of file savage_drm.h.

#define SAVAGE_CMD_VB_PRIM   2 /* vertices from client vertex buffer */

Definition at line 132 of file savage_drm.h.

#define SAVAGE_DEPTH   0x4

Definition at line 164 of file savage_drm.h.

#define SAVAGE_DMA_AGP   3

Definition at line 72 of file savage_drm.h.

#define SAVAGE_DMA_PCI   1

Definition at line 71 of file savage_drm.h.

#define SAVAGE_FRONT   0x1

Definition at line 162 of file savage_drm.h.

Definition at line 43 of file savage_drm.h.

#define SAVAGE_NR_TEX_HEAPS   2

Definition at line 41 of file savage_drm.h.

#define SAVAGE_NR_TEX_REGIONS   16

Definition at line 42 of file savage_drm.h.

#define SAVAGE_PRIM_TRIFAN   2 /* triangle fan */

Definition at line 142 of file savage_drm.h.

#define SAVAGE_PRIM_TRILIST   0 /* triangle list */

Definition at line 140 of file savage_drm.h.

Value:
3      /* reorder verts for correct flat
                                    * shading on s3d */

Definition at line 143 of file savage_drm.h.

#define SAVAGE_PRIM_TRISTRIP   1 /* triangle strip */

Definition at line 141 of file savage_drm.h.

#define SAVAGE_SKIP_ALL_S3D   0x3f

Definition at line 157 of file savage_drm.h.

#define SAVAGE_SKIP_ALL_S4   0xff

Definition at line 158 of file savage_drm.h.

#define SAVAGE_SKIP_C0   0x04

Definition at line 149 of file savage_drm.h.

#define SAVAGE_SKIP_C1   0x08

Definition at line 150 of file savage_drm.h.

#define SAVAGE_SKIP_S0   0x10

Definition at line 151 of file savage_drm.h.

#define SAVAGE_SKIP_S1   0x40

Definition at line 154 of file savage_drm.h.

#define SAVAGE_SKIP_ST0   0x30

Definition at line 153 of file savage_drm.h.

#define SAVAGE_SKIP_ST1   0xc0

Definition at line 156 of file savage_drm.h.

#define SAVAGE_SKIP_T0   0x20

Definition at line 152 of file savage_drm.h.

#define SAVAGE_SKIP_T1   0x80

Definition at line 155 of file savage_drm.h.

#define SAVAGE_SKIP_W   0x02

Definition at line 148 of file savage_drm.h.

#define SAVAGE_SKIP_Z   0x01

Definition at line 147 of file savage_drm.h.

#define SAVAGE_WAIT_2D   0x1 /* wait for 2D idle before updating event tag */

Definition at line 120 of file savage_drm.h.

#define SAVAGE_WAIT_3D   0x2 /* wait for 3D idle before updating event tag */

Definition at line 121 of file savage_drm.h.

#define SAVAGE_WAIT_IRQ   0x4 /* emit or wait for IRQ, not implemented yet */

Definition at line 122 of file savage_drm.h.


Typedef Documentation

typedef union drm_savage_cmd_header

Definition at line 103 of file savage_drm.h.