Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
via_drm.h File Reference
#include <drm/drm.h>
#include "via_drmclient.h"

Go to the source code of this file.

Data Structures

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
 
struct  via_file_private
 

Macros

#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
}
 

Macro Definition Documentation

#define _VIA_DEFINES_

Definition at line 34 of file via_drm.h.

#define DRM_IOCTL_VIA_AGP_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_AGP_INIT, drm_via_agp_t)

Definition at line 85 of file via_drm.h.

#define DRM_IOCTL_VIA_ALLOCMEM   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_ALLOCMEM, drm_via_mem_t)

Definition at line 83 of file via_drm.h.

#define DRM_IOCTL_VIA_BLIT_SYNC   DRM_IOW(DRM_COMMAND_BASE + DRM_VIA_BLIT_SYNC, drm_via_blitsync_t)

Definition at line 97 of file via_drm.h.

#define DRM_IOCTL_VIA_CMDBUF_SIZE
#define DRM_IOCTL_VIA_CMDBUFFER   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_CMDBUFFER, drm_via_cmdbuffer_t)

Definition at line 90 of file via_drm.h.

#define DRM_IOCTL_VIA_DEC_FUTEX   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_DEC_FUTEX, drm_via_futex_t)

Definition at line 88 of file via_drm.h.

#define DRM_IOCTL_VIA_DMA_BLIT   DRM_IOW(DRM_COMMAND_BASE + DRM_VIA_DMA_BLIT, drm_via_dmablit_t)

Definition at line 96 of file via_drm.h.

#define DRM_IOCTL_VIA_DMA_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_DMA_INIT, drm_via_dma_init_t)

Definition at line 89 of file via_drm.h.

#define DRM_IOCTL_VIA_FB_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_FB_INIT, drm_via_fb_t)

Definition at line 86 of file via_drm.h.

#define DRM_IOCTL_VIA_FLUSH   DRM_IO( DRM_COMMAND_BASE + DRM_VIA_FLUSH)

Definition at line 91 of file via_drm.h.

#define DRM_IOCTL_VIA_FREEMEM   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_FREEMEM, drm_via_mem_t)

Definition at line 84 of file via_drm.h.

#define DRM_IOCTL_VIA_MAP_INIT   DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_MAP_INIT, drm_via_init_t)

Definition at line 87 of file via_drm.h.

#define DRM_IOCTL_VIA_PCICMD   DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_PCICMD, drm_via_cmdbuffer_t)

Definition at line 92 of file via_drm.h.

#define DRM_IOCTL_VIA_WAIT_IRQ   DRM_IOWR( DRM_COMMAND_BASE + DRM_VIA_WAIT_IRQ, drm_via_irqwait_t)

Definition at line 95 of file via_drm.h.

#define DRM_VIA_AGP_INIT   0x02

Definition at line 68 of file via_drm.h.

#define DRM_VIA_ALLOCMEM   0x00

Definition at line 66 of file via_drm.h.

#define DRM_VIA_BLIT_SYNC   0x0f

Definition at line 81 of file via_drm.h.

#define DRM_VIA_CMDBUF_SIZE   0x0b

Definition at line 77 of file via_drm.h.

#define DRM_VIA_CMDBUFFER   0x08

Definition at line 74 of file via_drm.h.

#define DRM_VIA_DEC_FUTEX   0x05

Definition at line 71 of file via_drm.h.

#define DRM_VIA_DMA_BLIT   0x0e

Definition at line 80 of file via_drm.h.

#define DRM_VIA_DMA_INIT   0x07

Definition at line 73 of file via_drm.h.

#define DRM_VIA_FB_INIT   0x03

Definition at line 69 of file via_drm.h.

#define DRM_VIA_FLUSH   0x09

Definition at line 75 of file via_drm.h.

#define DRM_VIA_FREEMEM   0x01

Definition at line 67 of file via_drm.h.

#define DRM_VIA_MAP_INIT   0x04

Definition at line 70 of file via_drm.h.

#define DRM_VIA_PCICMD   0x0a

Definition at line 76 of file via_drm.h.

#define DRM_VIA_WAIT_IRQ   0x0d

Definition at line 79 of file via_drm.h.

#define NOT_USED

Definition at line 78 of file via_drm.h.

#define NOT_USED

Definition at line 78 of file via_drm.h.

#define VIA_BACK   0x2

Definition at line 109 of file via_drm.h.

#define VIA_DEPTH   0x4

Definition at line 110 of file via_drm.h.

#define VIA_FRONT   0x1

Definition at line 108 of file via_drm.h.

#define VIA_IRQ_FLAGS_MASK   0xF0000000

Definition at line 226 of file via_drm.h.

#define VIA_LOG_MIN_TEX_REGION_SIZE   16

Definition at line 53 of file via_drm.h.

#define VIA_MAX_CACHELINE_SIZE   64

Definition at line 43 of file via_drm.h.

#define VIA_MEM_AGP   1 /* matches drm constant */

Definition at line 113 of file via_drm.h.

#define VIA_MEM_MIXED   3

Definition at line 115 of file via_drm.h.

#define VIA_MEM_SYSTEM   2

Definition at line 114 of file via_drm.h.

#define VIA_MEM_UNKNOWN   4

Definition at line 116 of file via_drm.h.

#define VIA_MEM_VIDEO   0 /* matches drm constant */

Definition at line 112 of file via_drm.h.

#define VIA_NR_SAREA_CLIPRECTS   8

Definition at line 40 of file via_drm.h.

#define VIA_NR_TEX_REGIONS   64

Definition at line 52 of file via_drm.h.

#define VIA_NR_XVMC_LOCKS   5

Definition at line 42 of file via_drm.h.

#define VIA_NR_XVMC_PORTS   10

Definition at line 41 of file via_drm.h.

#define VIA_STENCIL   0x8

Definition at line 111 of file via_drm.h.

#define VIA_TEX_SETUP_SIZE   8

Definition at line 104 of file via_drm.h.

#define VIA_UPLOAD_ALL   0xff

Definition at line 63 of file via_drm.h.

#define VIA_UPLOAD_BUFFERS   0x8

Definition at line 59 of file via_drm.h.

#define VIA_UPLOAD_CLIPRECTS   0x40

Definition at line 62 of file via_drm.h.

#define VIA_UPLOAD_CTX   0x4

Definition at line 58 of file via_drm.h.

#define VIA_UPLOAD_TEX0   0x10

Definition at line 60 of file via_drm.h.

#define VIA_UPLOAD_TEX0IMAGE   0x1 /* handled clientside */

Definition at line 56 of file via_drm.h.

#define VIA_UPLOAD_TEX1   0x20

Definition at line 61 of file via_drm.h.

#define VIA_UPLOAD_TEX1IMAGE   0x2 /* handled clientside */

Definition at line 57 of file via_drm.h.

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

Definition at line 44 of file via_drm.h.

Typedef Documentation

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 228 of file via_drm.h.

Enumerator:
VIA_IRQ_ABSOLUTE 
VIA_IRQ_RELATIVE 
VIA_IRQ_SIGNAL 
VIA_IRQ_FORCE_SEQUENCE 

Definition at line 219 of file via_drm.h.