aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-11 02:32:08 -0400
committerDave Airlie <airlied@linux.ie>2007-07-11 02:32:08 -0400
commitcdd55a294c13f8bf05b2f4fee4c96934d5ebd2e4 (patch)
treeb759df2c65f321d2bdd8ff338048a6f67417ca95 /drivers/char/drm/drmP.h
parent8fc2fdf4c9437576f38e97c2f5b700ec77038984 (diff)
drm: detypef waitlist/freelist/buf_entry/device_dma/drm_queue structs
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index 288952837006..6cc848a83d54 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -319,7 +319,7 @@ struct drm_buf {
319}; 319};
320 320
321/** bufs is one longer than it has to be */ 321/** bufs is one longer than it has to be */
322typedef struct drm_waitlist { 322struct drm_waitlist {
323 int count; /**< Number of possible buffers */ 323 int count; /**< Number of possible buffers */
324 struct drm_buf **bufs; /**< List of pointers to buffers */ 324 struct drm_buf **bufs; /**< List of pointers to buffers */
325 struct drm_buf **rp; /**< Read pointer */ 325 struct drm_buf **rp; /**< Read pointer */
@@ -327,9 +327,9 @@ typedef struct drm_waitlist {
327 struct drm_buf **end; /**< End pointer */ 327 struct drm_buf **end; /**< End pointer */
328 spinlock_t read_lock; 328 spinlock_t read_lock;
329 spinlock_t write_lock; 329 spinlock_t write_lock;
330} drm_waitlist_t; 330};
331 331
332typedef struct drm_freelist { 332struct drm_freelist {
333 int initialized; /**< Freelist in use */ 333 int initialized; /**< Freelist in use */
334 atomic_t count; /**< Number of free buffers */ 334 atomic_t count; /**< Number of free buffers */
335 struct drm_buf *next; /**< End pointer */ 335 struct drm_buf *next; /**< End pointer */
@@ -339,7 +339,7 @@ typedef struct drm_freelist {
339 int high_mark; /**< High water mark */ 339 int high_mark; /**< High water mark */
340 atomic_t wfh; /**< If waiting for high mark */ 340 atomic_t wfh; /**< If waiting for high mark */
341 spinlock_t lock; 341 spinlock_t lock;
342} drm_freelist_t; 342};
343 343
344typedef struct drm_dma_handle { 344typedef struct drm_dma_handle {
345 dma_addr_t busaddr; 345 dma_addr_t busaddr;
@@ -350,16 +350,16 @@ typedef struct drm_dma_handle {
350/** 350/**
351 * Buffer entry. There is one of this for each buffer size order. 351 * Buffer entry. There is one of this for each buffer size order.
352 */ 352 */
353typedef struct drm_buf_entry { 353struct drm_buf_entry {
354 int buf_size; /**< size */ 354 int buf_size; /**< size */
355 int buf_count; /**< number of buffers */ 355 int buf_count; /**< number of buffers */
356 struct drm_buf *buflist; /**< buffer list */ 356 struct drm_buf *buflist; /**< buffer list */
357 int seg_count; 357 int seg_count;
358 int page_order; 358 int page_order;
359 drm_dma_handle_t **seglist; 359 struct drm_dma_handle **seglist;
360 360
361 drm_freelist_t freelist; 361 struct drm_freelist freelist;
362} drm_buf_entry_t; 362};
363 363
364/** File private data */ 364/** File private data */
365struct drm_file { 365struct drm_file {
@@ -378,7 +378,7 @@ struct drm_file {
378}; 378};
379 379
380/** Wait queue */ 380/** Wait queue */
381typedef struct drm_queue { 381struct drm_queue {
382 atomic_t use_count; /**< Outstanding uses (+1) */ 382 atomic_t use_count; /**< Outstanding uses (+1) */
383 atomic_t finalization; /**< Finalization in progress */ 383 atomic_t finalization; /**< Finalization in progress */
384 atomic_t block_count; /**< Count of processes waiting */ 384 atomic_t block_count; /**< Count of processes waiting */
@@ -392,9 +392,9 @@ typedef struct drm_queue {
392 atomic_t total_locks; /**< Total locks statistics */ 392 atomic_t total_locks; /**< Total locks statistics */
393#endif 393#endif
394 enum drm_ctx_flags flags; /**< Context preserving and 2D-only */ 394 enum drm_ctx_flags flags; /**< Context preserving and 2D-only */
395 drm_waitlist_t waitlist; /**< Pending buffers */ 395 struct drm_waitlist waitlist; /**< Pending buffers */
396 wait_queue_head_t flush_queue; /**< Processes waiting until flush */ 396 wait_queue_head_t flush_queue; /**< Processes waiting until flush */
397} drm_queue_t; 397};
398 398
399/** 399/**
400 * Lock data. 400 * Lock data.
@@ -413,9 +413,9 @@ typedef struct drm_lock_data {
413/** 413/**
414 * DMA data. 414 * DMA data.
415 */ 415 */
416typedef struct drm_device_dma { 416struct drm_device_dma {
417 417
418 drm_buf_entry_t bufs[DRM_MAX_ORDER + 1]; /**< buffers, grouped by their size order */ 418 struct drm_buf_entry bufs[DRM_MAX_ORDER + 1]; /**< buffers, grouped by their size order */
419 int buf_count; /**< total number of buffers */ 419 int buf_count; /**< total number of buffers */
420 struct drm_buf **buflist; /**< Vector of pointers into drm_device_dma::bufs */ 420 struct drm_buf **buflist; /**< Vector of pointers into drm_device_dma::bufs */
421 int seg_count; 421 int seg_count;
@@ -429,7 +429,7 @@ typedef struct drm_device_dma {
429 _DRM_DMA_USE_PCI_RO = 0x08 429 _DRM_DMA_USE_PCI_RO = 0x08
430 } flags; 430 } flags;
431 431
432} drm_device_dma_t; 432};
433 433
434/** 434/**
435 * AGP memory entry. Stored as a doubly linked list. 435 * AGP memory entry. Stored as a doubly linked list.
@@ -688,8 +688,8 @@ struct drm_device {
688 int queue_count; /**< Number of active DMA queues */ 688 int queue_count; /**< Number of active DMA queues */
689 int queue_reserved; /**< Number of reserved DMA queues */ 689 int queue_reserved; /**< Number of reserved DMA queues */
690 int queue_slots; /**< Actual length of queuelist */ 690 int queue_slots; /**< Actual length of queuelist */
691 drm_queue_t **queuelist; /**< Vector of pointers to DMA queues */ 691 struct drm_queue **queuelist; /**< Vector of pointers to DMA queues */
692 drm_device_dma_t *dma; /**< Optional pointer for DMA support */ 692 struct drm_device_dma *dma; /**< Optional pointer for DMA support */
693 /*@} */ 693 /*@} */
694 694
695 /** \name Context support */ 695 /** \name Context support */