diff options
Diffstat (limited to 'drivers/char/drm/i810_drv.h')
-rw-r--r-- | drivers/char/drm/i810_drv.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/drivers/char/drm/i810_drv.h b/drivers/char/drm/i810_drv.h index 62ee4f58c59a..c78f36aaa2f0 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 | ||
58 | typedef struct drm_i810_buf_priv { | 58 | typedef 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 | ||
66 | typedef struct _drm_i810_ring_buffer{ | 66 | typedef 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,21 +106,24 @@ 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 */ |
117 | extern void i810_reclaim_buffers(drm_device_t *dev, struct file *filp); | 116 | extern void i810_reclaim_buffers(drm_device_t * dev, struct file *filp); |
118 | 117 | ||
119 | extern int i810_driver_dma_quiescent(drm_device_t *dev); | 118 | extern int i810_driver_dma_quiescent(drm_device_t * dev); |
120 | extern void i810_driver_release(drm_device_t *dev, struct file *filp); | 119 | extern void i810_driver_release(drm_device_t * dev, struct file *filp); |
121 | extern void i810_driver_pretakedown(drm_device_t *dev); | 120 | extern void i810_driver_pretakedown(drm_device_t * dev); |
122 | extern void i810_driver_prerelease(drm_device_t *dev, DRMFILE filp); | 121 | extern void i810_driver_prerelease(drm_device_t * dev, DRMFILE filp); |
123 | extern int i810_driver_device_is_agp(drm_device_t * dev); | 122 | extern int i810_driver_device_is_agp(drm_device_t * dev); |
124 | 123 | ||
124 | extern drm_ioctl_desc_t i810_ioctls[]; | ||
125 | extern int i810_max_ioctl; | ||
126 | |||
125 | #define I810_BASE(reg) ((unsigned long) \ | 127 | #define I810_BASE(reg) ((unsigned long) \ |
126 | dev_priv->mmio_map->handle) | 128 | dev_priv->mmio_map->handle) |
127 | #define I810_ADDR(reg) (I810_BASE(reg) + reg) | 129 | #define I810_ADDR(reg) (I810_BASE(reg) + reg) |
@@ -170,7 +172,6 @@ extern int i810_driver_device_is_agp(drm_device_t * dev); | |||
170 | #define INST_OP_FLUSH 0x02000000 | 172 | #define INST_OP_FLUSH 0x02000000 |
171 | #define INST_FLUSH_MAP_CACHE 0x00000001 | 173 | #define INST_FLUSH_MAP_CACHE 0x00000001 |
172 | 174 | ||
173 | |||
174 | #define BB1_START_ADDR_MASK (~0x7) | 175 | #define BB1_START_ADDR_MASK (~0x7) |
175 | #define BB1_PROTECTED (1<<0) | 176 | #define BB1_PROTECTED (1<<0) |
176 | #define BB1_UNPROTECTED (0<<0) | 177 | #define BB1_UNPROTECTED (0<<0) |
@@ -229,8 +230,8 @@ extern int i810_driver_device_is_agp(drm_device_t * dev); | |||
229 | #define BR00_OP_SRC_COPY_BLT 0x10C00000 | 230 | #define BR00_OP_SRC_COPY_BLT 0x10C00000 |
230 | #define BR13_SOLID_PATTERN 0x80000000 | 231 | #define BR13_SOLID_PATTERN 0x80000000 |
231 | 232 | ||
232 | #define WAIT_FOR_PLANE_A_SCANLINES (1<<1) | 233 | #define WAIT_FOR_PLANE_A_SCANLINES (1<<1) |
233 | #define WAIT_FOR_PLANE_A_FLIP (1<<2) | 234 | #define WAIT_FOR_PLANE_A_FLIP (1<<2) |
234 | #define WAIT_FOR_VBLANK (1<<3) | 235 | #define WAIT_FOR_VBLANK (1<<3) |
235 | 236 | ||
236 | #endif | 237 | #endif |