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

Go to the source code of this file.

Data Structures

struct  _drm_savage_sarea
 
struct  drm_savage_init
 
struct  drm_savage_cmdbuf
 
struct  drm_savage_event
 
union  drm_savage_cmd_header
 

Macros

#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_BCI_INIT   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_INIT, drm_savage_init_t)
 
#define DRM_IOCTL_SAVAGE_BCI_CMDBUF   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_CMDBUF, drm_savage_cmdbuf_t)
 
#define DRM_IOCTL_SAVAGE_BCI_EVENT_EMIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_EMIT, drm_savage_event_emit_t)
 
#define DRM_IOCTL_SAVAGE_BCI_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 drm_savage_cmd_header_t
 
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
 

Macro Definition Documentation

#define __SAVAGE_SAREA_DEFINES__

Definition at line 30 of file savage_drm.h.

#define DRM_IOCTL_SAVAGE_BCI_CMDBUF   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_CMDBUF, drm_savage_cmdbuf_t)

Definition at line 67 of file savage_drm.h.

#define DRM_IOCTL_SAVAGE_BCI_EVENT_EMIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_EMIT, drm_savage_event_emit_t)

Definition at line 68 of file savage_drm.h.

#define DRM_IOCTL_SAVAGE_BCI_EVENT_WAIT   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_WAIT, drm_savage_event_wait_t)

Definition at line 69 of file savage_drm.h.

#define DRM_IOCTL_SAVAGE_BCI_INIT   DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_INIT, drm_savage_init_t)

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.

#define SAVAGE_LOG_MIN_TEX_REGION_SIZE   16

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.

#define SAVAGE_PRIM_TRILIST_201
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

Definition at line 103 of file savage_drm.h.