Go to the documentation of this file.
37 #include "via_drmclient.h"
40 #define VIA_NR_SAREA_CLIPRECTS 8
41 #define VIA_NR_XVMC_PORTS 10
42 #define VIA_NR_XVMC_LOCKS 5
43 #define VIA_MAX_CACHELINE_SIZE 64
44 #define XVMCLOCKPTR(saPriv,lockNo) \
45 ((volatile struct drm_hw_lock *)(((((unsigned long) (saPriv)->XvMCLockArea) + \
46 (VIA_MAX_CACHELINE_SIZE - 1)) & \
47 ~(VIA_MAX_CACHELINE_SIZE - 1)) + \
48 VIA_MAX_CACHELINE_SIZE*(lockNo)))
52 #define VIA_NR_TEX_REGIONS 64
53 #define VIA_LOG_MIN_TEX_REGION_SIZE 16
56 #define VIA_UPLOAD_TEX0IMAGE 0x1
57 #define VIA_UPLOAD_TEX1IMAGE 0x2
58 #define VIA_UPLOAD_CTX 0x4
59 #define VIA_UPLOAD_BUFFERS 0x8
60 #define VIA_UPLOAD_TEX0 0x10
61 #define VIA_UPLOAD_TEX1 0x20
62 #define VIA_UPLOAD_CLIPRECTS 0x40
63 #define VIA_UPLOAD_ALL 0xff
66 #define DRM_VIA_ALLOCMEM 0x00
67 #define DRM_VIA_FREEMEM 0x01
68 #define DRM_VIA_AGP_INIT 0x02
69 #define DRM_VIA_FB_INIT 0x03
70 #define DRM_VIA_MAP_INIT 0x04
71 #define DRM_VIA_DEC_FUTEX 0x05
73 #define DRM_VIA_DMA_INIT 0x07
74 #define DRM_VIA_CMDBUFFER 0x08
75 #define DRM_VIA_FLUSH 0x09
76 #define DRM_VIA_PCICMD 0x0a
77 #define DRM_VIA_CMDBUF_SIZE 0x0b
79 #define DRM_VIA_WAIT_IRQ 0x0d
80 #define DRM_VIA_DMA_BLIT 0x0e
81 #define DRM_VIA_BLIT_SYNC 0x0f
83 #define DRM_IOCTL_VIA_ALLOCMEM DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_ALLOCMEM, drm_via_mem_t)
84 #define DRM_IOCTL_VIA_FREEMEM DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_FREEMEM, drm_via_mem_t)
85 #define DRM_IOCTL_VIA_AGP_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_AGP_INIT, drm_via_agp_t)
86 #define DRM_IOCTL_VIA_FB_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_FB_INIT, drm_via_fb_t)
87 #define DRM_IOCTL_VIA_MAP_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_MAP_INIT, drm_via_init_t)
88 #define DRM_IOCTL_VIA_DEC_FUTEX DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_DEC_FUTEX, drm_via_futex_t)
89 #define DRM_IOCTL_VIA_DMA_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_VIA_DMA_INIT, drm_via_dma_init_t)
90 #define DRM_IOCTL_VIA_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_CMDBUFFER, drm_via_cmdbuffer_t)
91 #define DRM_IOCTL_VIA_FLUSH DRM_IO( DRM_COMMAND_BASE + DRM_VIA_FLUSH)
92 #define DRM_IOCTL_VIA_PCICMD DRM_IOW( DRM_COMMAND_BASE + DRM_VIA_PCICMD, drm_via_cmdbuffer_t)
93 #define DRM_IOCTL_VIA_CMDBUF_SIZE DRM_IOWR( DRM_COMMAND_BASE + DRM_VIA_CMDBUF_SIZE, \
94 drm_via_cmdbuf_size_t)
95 #define DRM_IOCTL_VIA_WAIT_IRQ DRM_IOWR( DRM_COMMAND_BASE + DRM_VIA_WAIT_IRQ, drm_via_irqwait_t)
96 #define DRM_IOCTL_VIA_DMA_BLIT DRM_IOW(DRM_COMMAND_BASE + DRM_VIA_DMA_BLIT, drm_via_dmablit_t)
97 #define DRM_IOCTL_VIA_BLIT_SYNC DRM_IOW(DRM_COMMAND_BASE + DRM_VIA_BLIT_SYNC, drm_via_blitsync_t)
104 #define VIA_TEX_SETUP_SIZE 8
108 #define VIA_FRONT 0x1
110 #define VIA_DEPTH 0x4
111 #define VIA_STENCIL 0x8
112 #define VIA_MEM_VIDEO 0
113 #define VIA_MEM_AGP 1
114 #define VIA_MEM_SYSTEM 2
115 #define VIA_MEM_MIXED 3
116 #define VIA_MEM_UNKNOWN 4
226 #define VIA_IRQ_FLAGS_MASK 0xF0000000