Back to index

libdrm  2.4.37
Classes | Defines | Typedefs | Enumerations
via_drm.h File Reference
#include "drm.h"
#include "via_drmclient.h"

Go to the source code of this file.

Classes

struct  drm_via_agp_t
struct  drm_via_fb_t
struct  drm_via_mem_t
struct  _drm_via_init
struct  _drm_via_futex
struct  _drm_via_dma_init
struct  _drm_via_cmdbuffer
struct  _drm_via_tex_region
struct  _drm_via_sarea
struct  _drm_via_cmdbuf_size
struct  drm_via_wait_irq_request
union  drm_via_irqwait
struct  drm_via_blitsync
struct  drm_via_dmablit

Defines

#define _VIA_DEFINES_
#define VIA_NR_SAREA_CLIPRECTS   8
#define VIA_NR_XVMC_PORTS   10
#define VIA_NR_XVMC_LOCKS   5
#define VIA_MAX_CACHELINE_SIZE   64
#define XVMCLOCKPTR(saPriv, lockNo)
#define VIA_NR_TEX_REGIONS   64
#define VIA_LOG_MIN_TEX_REGION_SIZE   16
#define VIA_UPLOAD_TEX0IMAGE   0x1 /* handled clientside */
#define VIA_UPLOAD_TEX1IMAGE   0x2 /* handled clientside */
#define VIA_UPLOAD_CTX   0x4
#define VIA_UPLOAD_BUFFERS   0x8
#define VIA_UPLOAD_TEX0   0x10
#define VIA_UPLOAD_TEX1   0x20
#define VIA_UPLOAD_CLIPRECTS   0x40
#define VIA_UPLOAD_ALL   0xff
#define DRM_VIA_ALLOCMEM   0x00
#define DRM_VIA_FREEMEM   0x01
#define DRM_VIA_AGP_INIT   0x02
#define DRM_VIA_FB_INIT   0x03
#define DRM_VIA_MAP_INIT   0x04
#define DRM_VIA_DEC_FUTEX   0x05
#define NOT_USED
#define DRM_VIA_DMA_INIT   0x07
#define DRM_VIA_CMDBUFFER   0x08
#define DRM_VIA_FLUSH   0x09
#define DRM_VIA_PCICMD   0x0a
#define DRM_VIA_CMDBUF_SIZE   0x0b
#define NOT_USED
#define DRM_VIA_WAIT_IRQ   0x0d
#define DRM_VIA_DMA_BLIT   0x0e
#define DRM_VIA_BLIT_SYNC   0x0f
#define DRM_IOCTL_VIA_ALLOCMEM   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_ALLOCMEM, drm_via_mem_t)
#define DRM_IOCTL_VIA_FREEMEM   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_FREEMEM, drm_via_mem_t)
#define DRM_IOCTL_VIA_AGP_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_AGP_INIT, drm_via_agp_t)
#define DRM_IOCTL_VIA_FB_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_FB_INIT, drm_via_fb_t)
#define DRM_IOCTL_VIA_MAP_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_MAP_INIT, drm_via_init_t)
#define DRM_IOCTL_VIA_DEC_FUTEX   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_DEC_FUTEX, drm_via_futex_t)
#define DRM_IOCTL_VIA_DMA_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_DMA_INIT, drm_via_dma_init_t)
#define DRM_IOCTL_VIA_CMDBUFFER   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_CMDBUFFER, drm_via_cmdbuffer_t)
#define DRM_IOCTL_VIA_FLUSH   DRM_IO( DRM_COMMAND_BASE + DRM_VIA_FLUSH)
#define DRM_IOCTL_VIA_PCICMD   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_PCICMD, drm_via_cmdbuffer_t)
#define DRM_IOCTL_VIA_CMDBUF_SIZE
#define DRM_IOCTL_VIA_WAIT_IRQ   DRM_IOWR( DRM_COMMAND_BASE + DRM_VIA_WAIT_IRQ, drm_via_irqwait_t)
#define DRM_IOCTL_VIA_DMA_BLIT   DRM_IOW(DRM_COMMAND_BASE + DRM_VIA_DMA_BLIT, drm_via_dmablit_t)
#define DRM_IOCTL_VIA_BLIT_SYNC   DRM_IOW(DRM_COMMAND_BASE + DRM_VIA_BLIT_SYNC, drm_via_blitsync_t)
#define VIA_TEX_SETUP_SIZE   8
#define VIA_FRONT   0x1
#define VIA_BACK   0x2
#define VIA_DEPTH   0x4
#define VIA_STENCIL   0x8
#define VIA_MEM_VIDEO   0 /* matches drm constant */
#define VIA_MEM_AGP   1 /* matches drm constant */
#define VIA_MEM_SYSTEM   2
#define VIA_MEM_MIXED   3
#define VIA_MEM_UNKNOWN   4
#define VIA_IRQ_FLAGS_MASK   0xF0000000

Typedefs

typedef struct _drm_via_init drm_via_init_t
typedef struct _drm_via_futex drm_via_futex_t
typedef struct _drm_via_dma_init drm_via_dma_init_t
typedef struct _drm_via_cmdbuffer drm_via_cmdbuffer_t
typedef struct _drm_via_tex_region drm_via_tex_region_t
typedef struct _drm_via_sarea drm_via_sarea_t
typedef struct _drm_via_cmdbuf_size drm_via_cmdbuf_size_t
typedef union drm_via_irqwait drm_via_irqwait_t
typedef struct drm_via_blitsync drm_via_blitsync_t
typedef struct drm_via_dmablit drm_via_dmablit_t

Enumerations

enum  via_irq_seq_type_t { VIA_IRQ_ABSOLUTE = 0x0, VIA_IRQ_RELATIVE = 0x1, VIA_IRQ_SIGNAL = 0x10000000, VIA_IRQ_FORCE_SEQUENCE = 0x20000000 }
enum  drm_via_irqs {
  drm_via_irq_hqv0 = 0, drm_via_irq_hqv1, drm_via_irq_dma0_dd, drm_via_irq_dma0_td,
  drm_via_irq_dma1_dd, drm_via_irq_dma1_td, drm_via_irq_num
}

Class Documentation

struct drm_via_agp_t

Definition at line 116 of file via_drm.h.

Class Members
__u32 offset
__u32 size
struct drm_via_fb_t

Definition at line 121 of file via_drm.h.

Class Members
__u32 offset
__u32 size
struct drm_via_mem_t

Definition at line 126 of file via_drm.h.

Class Members
__u32 context
unsigned long index
unsigned long offset
__u32 size
__u32 type
struct _drm_via_cmdbuffer

Definition at line 168 of file via_drm.h.

Class Members
char * buf
unsigned long size
struct _drm_via_tex_region

Definition at line 176 of file via_drm.h.

Class Members
int age
unsigned char inUse
unsigned char next
unsigned char prev
struct _drm_via_sarea

Definition at line 182 of file via_drm.h.

Collaboration diagram for _drm_via_sarea:
Class Members
int ctxOwner
unsigned int dirty
unsigned int nbox
unsigned int pfCurrentOffset
int texAge
drm_via_tex_region_t texList
int vertexPrim
unsigned int XvMCCtxNoGrabbed
unsigned int XvMCDisplaying
char XvMCLockArea
unsigned int XvMCSubPicOn
struct drm_via_wait_irq_request

Definition at line 236 of file via_drm.h.

Class Members
unsigned irq
__u32 sequence
__u32 signal
via_irq_seq_type_t type
union drm_via_irqwait

Definition at line 243 of file via_drm.h.

struct drm_via_blitsync

Definition at line 248 of file via_drm.h.

Class Members
unsigned engine
__u32 sync_handle
struct drm_via_dmablit

Definition at line 259 of file via_drm.h.

Collaboration diagram for drm_via_dmablit:
Class Members
__u32 fb_addr
__u32 fb_stride
__u32 flags
__u32 line_length
unsigned char * mem_addr
__u32 mem_stride
__u32 num_lines
drm_via_blitsync_t sync
int to_fb

Define Documentation

#define _VIA_DEFINES_

Definition at line 34 of file via_drm.h.

Definition at line 83 of file via_drm.h.

Definition at line 81 of file via_drm.h.

Definition at line 95 of file via_drm.h.

Definition at line 88 of file via_drm.h.

Definition at line 86 of file via_drm.h.

Definition at line 94 of file via_drm.h.

Definition at line 87 of file via_drm.h.

Definition at line 84 of file via_drm.h.

Definition at line 89 of file via_drm.h.

Definition at line 82 of file via_drm.h.

Definition at line 85 of file via_drm.h.

Definition at line 90 of file via_drm.h.

Definition at line 93 of file via_drm.h.

#define DRM_VIA_AGP_INIT   0x02

Definition at line 66 of file via_drm.h.

#define DRM_VIA_ALLOCMEM   0x00

Definition at line 64 of file via_drm.h.

#define DRM_VIA_BLIT_SYNC   0x0f

Definition at line 79 of file via_drm.h.

#define DRM_VIA_CMDBUF_SIZE   0x0b

Definition at line 75 of file via_drm.h.

#define DRM_VIA_CMDBUFFER   0x08

Definition at line 72 of file via_drm.h.

#define DRM_VIA_DEC_FUTEX   0x05

Definition at line 69 of file via_drm.h.

#define DRM_VIA_DMA_BLIT   0x0e

Definition at line 78 of file via_drm.h.

#define DRM_VIA_DMA_INIT   0x07

Definition at line 71 of file via_drm.h.

#define DRM_VIA_FB_INIT   0x03

Definition at line 67 of file via_drm.h.

#define DRM_VIA_FLUSH   0x09

Definition at line 73 of file via_drm.h.

#define DRM_VIA_FREEMEM   0x01

Definition at line 65 of file via_drm.h.

#define DRM_VIA_MAP_INIT   0x04

Definition at line 68 of file via_drm.h.

#define DRM_VIA_PCICMD   0x0a

Definition at line 74 of file via_drm.h.

#define DRM_VIA_WAIT_IRQ   0x0d

Definition at line 77 of file via_drm.h.

#define NOT_USED

Definition at line 76 of file via_drm.h.

#define NOT_USED

Definition at line 76 of file via_drm.h.

#define VIA_BACK   0x2

Definition at line 107 of file via_drm.h.

#define VIA_DEPTH   0x4

Definition at line 108 of file via_drm.h.

#define VIA_FRONT   0x1

Definition at line 106 of file via_drm.h.

#define VIA_IRQ_FLAGS_MASK   0xF0000000

Definition at line 224 of file via_drm.h.

#define VIA_LOG_MIN_TEX_REGION_SIZE   16

Definition at line 51 of file via_drm.h.

#define VIA_MAX_CACHELINE_SIZE   64

Definition at line 41 of file via_drm.h.

#define VIA_MEM_AGP   1 /* matches drm constant */

Definition at line 111 of file via_drm.h.

#define VIA_MEM_MIXED   3

Definition at line 113 of file via_drm.h.

#define VIA_MEM_SYSTEM   2

Definition at line 112 of file via_drm.h.

#define VIA_MEM_UNKNOWN   4

Definition at line 114 of file via_drm.h.

#define VIA_MEM_VIDEO   0 /* matches drm constant */

Definition at line 110 of file via_drm.h.

#define VIA_NR_SAREA_CLIPRECTS   8

Definition at line 38 of file via_drm.h.

#define VIA_NR_TEX_REGIONS   64

Definition at line 50 of file via_drm.h.

#define VIA_NR_XVMC_LOCKS   5

Definition at line 40 of file via_drm.h.

#define VIA_NR_XVMC_PORTS   10

Definition at line 39 of file via_drm.h.

#define VIA_STENCIL   0x8

Definition at line 109 of file via_drm.h.

#define VIA_TEX_SETUP_SIZE   8

Definition at line 102 of file via_drm.h.

#define VIA_UPLOAD_ALL   0xff

Definition at line 61 of file via_drm.h.

#define VIA_UPLOAD_BUFFERS   0x8

Definition at line 57 of file via_drm.h.

#define VIA_UPLOAD_CLIPRECTS   0x40

Definition at line 60 of file via_drm.h.

#define VIA_UPLOAD_CTX   0x4

Definition at line 56 of file via_drm.h.

#define VIA_UPLOAD_TEX0   0x10

Definition at line 58 of file via_drm.h.

#define VIA_UPLOAD_TEX0IMAGE   0x1 /* handled clientside */

Definition at line 54 of file via_drm.h.

#define VIA_UPLOAD_TEX1   0x20

Definition at line 59 of file via_drm.h.

#define VIA_UPLOAD_TEX1IMAGE   0x2 /* handled clientside */

Definition at line 55 of file via_drm.h.

#define XVMCLOCKPTR (   saPriv,
  lockNo 
)
Value:
((__volatile__ struct drm_hw_lock *)(((((unsigned long) (saPriv)->XvMCLockArea) + \
                                  (VIA_MAX_CACHELINE_SIZE - 1)) &     \
                                 ~(VIA_MAX_CACHELINE_SIZE - 1)) +     \
                                VIA_MAX_CACHELINE_SIZE*(lockNo)))

Definition at line 42 of file via_drm.h.


Typedef Documentation

typedef struct _drm_via_init drm_via_init_t

Enumeration Type Documentation

Enumerator:
drm_via_irq_hqv0 
drm_via_irq_hqv1 
drm_via_irq_dma0_dd 
drm_via_irq_dma0_td 
drm_via_irq_dma1_dd 
drm_via_irq_dma1_td 
drm_via_irq_num 

Definition at line 226 of file via_drm.h.

Enumerator:
VIA_IRQ_ABSOLUTE 
VIA_IRQ_RELATIVE 
VIA_IRQ_SIGNAL 
VIA_IRQ_FORCE_SEQUENCE 

Definition at line 217 of file via_drm.h.