aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/i810_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/i810_drv.h')
-rw-r--r--drivers/char/drm/i810_drv.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/drivers/char/drm/i810_drv.h b/drivers/char/drm/i810_drv.h
index 62ee4f58c59a..2d6b594afa0d 100644
--- a/drivers/char/drm/i810_drv.h
+++ b/drivers/char/drm/i810_drv.h
@@ -56,14 +56,14 @@
56#define DRIVER_PATCHLEVEL 0 56#define DRIVER_PATCHLEVEL 0
57 57
58typedef struct drm_i810_buf_priv { 58typedef struct drm_i810_buf_priv {
59 u32 *in_use; 59 u32 *in_use;
60 int my_use_idx; 60 int my_use_idx;
61 int currently_mapped; 61 int currently_mapped;
62 void *virtual; 62 void *virtual;
63 void *kernel_virtual; 63 void *kernel_virtual;
64} drm_i810_buf_priv_t; 64} drm_i810_buf_priv_t;
65 65
66typedef struct _drm_i810_ring_buffer{ 66typedef struct _drm_i810_ring_buffer {
67 int tail_mask; 67 int tail_mask;
68 unsigned long Start; 68 unsigned long Start;
69 unsigned long End; 69 unsigned long End;
@@ -79,16 +79,15 @@ typedef struct drm_i810_private {
79 drm_map_t *mmio_map; 79 drm_map_t *mmio_map;
80 80
81 drm_i810_sarea_t *sarea_priv; 81 drm_i810_sarea_t *sarea_priv;
82 drm_i810_ring_buffer_t ring; 82 drm_i810_ring_buffer_t ring;
83 83
84 void *hw_status_page; 84 void *hw_status_page;
85 unsigned long counter; 85 unsigned long counter;
86 86
87 dma_addr_t dma_status_page; 87 dma_addr_t dma_status_page;
88 88
89 drm_buf_t *mmap_buffer; 89 drm_buf_t *mmap_buffer;
90 90
91
92 u32 front_di1, back_di1, zi1; 91 u32 front_di1, back_di1, zi1;
93 92
94 int back_offset; 93 int back_offset;
@@ -97,7 +96,7 @@ typedef struct drm_i810_private {
97 int overlay_physical; 96 int overlay_physical;
98 int w, h; 97 int w, h;
99 int pitch; 98 int pitch;
100 int back_pitch; 99 int back_pitch;
101 int depth_pitch; 100 int depth_pitch;
102 101
103 int do_boxes; 102 int do_boxes;
@@ -107,19 +106,19 @@ typedef struct drm_i810_private {
107 int page_flipping; 106 int page_flipping;
108 107
109 wait_queue_head_t irq_queue; 108 wait_queue_head_t irq_queue;
110 atomic_t irq_received; 109 atomic_t irq_received;
111 atomic_t irq_emitted; 110 atomic_t irq_emitted;
112 111
113 int front_offset; 112 int front_offset;
114} drm_i810_private_t; 113} drm_i810_private_t;
115 114
116 /* i810_dma.c */ 115 /* i810_dma.c */
117extern void i810_reclaim_buffers(drm_device_t *dev, struct file *filp); 116extern void i810_reclaim_buffers(drm_device_t * dev, struct file *filp);
118 117
119extern int i810_driver_dma_quiescent(drm_device_t *dev); 118extern int i810_driver_dma_quiescent(drm_device_t * dev);
120extern void i810_driver_release(drm_device_t *dev, struct file *filp); 119extern void i810_driver_release(drm_device_t * dev, struct file *filp);
121extern void i810_driver_pretakedown(drm_device_t *dev); 120extern void i810_driver_pretakedown(drm_device_t * dev);
122extern void i810_driver_prerelease(drm_device_t *dev, DRMFILE filp); 121extern void i810_driver_prerelease(drm_device_t * dev, DRMFILE filp);
123extern int i810_driver_device_is_agp(drm_device_t * dev); 122extern int i810_driver_device_is_agp(drm_device_t * dev);
124 123
125#define I810_BASE(reg) ((unsigned long) \ 124#define I810_BASE(reg) ((unsigned long) \
@@ -170,7 +169,6 @@ extern int i810_driver_device_is_agp(drm_device_t * dev);
170#define INST_OP_FLUSH 0x02000000 169#define INST_OP_FLUSH 0x02000000
171#define INST_FLUSH_MAP_CACHE 0x00000001 170#define INST_FLUSH_MAP_CACHE 0x00000001
172 171
173
174#define BB1_START_ADDR_MASK (~0x7) 172#define BB1_START_ADDR_MASK (~0x7)
175#define BB1_PROTECTED (1<<0) 173#define BB1_PROTECTED (1<<0)
176#define BB1_UNPROTECTED (0<<0) 174#define BB1_UNPROTECTED (0<<0)
@@ -229,8 +227,8 @@ extern int i810_driver_device_is_agp(drm_device_t * dev);
229#define BR00_OP_SRC_COPY_BLT 0x10C00000 227#define BR00_OP_SRC_COPY_BLT 0x10C00000
230#define BR13_SOLID_PATTERN 0x80000000 228#define BR13_SOLID_PATTERN 0x80000000
231 229
232#define WAIT_FOR_PLANE_A_SCANLINES (1<<1) 230#define WAIT_FOR_PLANE_A_SCANLINES (1<<1)
233#define WAIT_FOR_PLANE_A_FLIP (1<<2) 231#define WAIT_FOR_PLANE_A_FLIP (1<<2)
234#define WAIT_FOR_VBLANK (1<<3) 232#define WAIT_FOR_VBLANK (1<<3)
235 233
236#endif 234#endif