summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 15:04:47 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 15:04:47 +0000
commit7b36fc26690cdea7f594ad97bc5560e049be723f (patch)
treedf781e2dafb6d224e652322c6f4e89039861cc30 /sys/dev/pci/drm/drmP.h
parentb2ad1bccf2c866d0c964557e2c441e60c45cd58e (diff)
detypedef drm_buf_entry_t too.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 54a89e00dde..75f822ba573 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -217,14 +217,14 @@ struct drm_dmamem {
bus_dma_segment_t segs[1];
};
-typedef struct drm_buf_entry {
+struct drm_buf_entry {
struct drm_dmamem **seglist;
struct drm_buf *buflist;
- int buf_size;
int buf_count;
+ int buf_size;
int page_order;
int seg_count;
-} drm_buf_entry_t;
+};
struct drm_file {
SPLAY_ENTRY(drm_file) link;
@@ -252,15 +252,15 @@ struct drm_lock_data {
* not concurrently accessed, so no locking is needed.
*/
typedef struct drm_device_dma {
- struct rwlock dma_lock;
- drm_buf_entry_t bufs[DRM_MAX_ORDER+1];
- struct drm_buf **buflist; /* Vector of pointers info bufs */
- unsigned long *pagelist;
- unsigned long byte_count;
- int buf_use; /* Buffers in use -- cannot alloc */
- int buf_count;
- int page_count;
- int seg_count;
+ struct rwlock dma_lock;
+ struct drm_buf_entry bufs[DRM_MAX_ORDER+1];
+ struct drm_buf **buflist; /* Vector of pointers info bufs*/
+ unsigned long *pagelist;
+ unsigned long byte_count;
+ int buf_use; /* Buffers used no more alloc */
+ int buf_count;
+ int page_count;
+ int seg_count;
enum {
_DRM_DMA_USE_AGP = 0x01,
_DRM_DMA_USE_SG = 0x02
@@ -519,7 +519,7 @@ int drm_mapbufs(struct drm_device *, void *, struct drm_file *);
int drm_dma(struct drm_device *, void *, struct drm_file *);
int drm_dma_setup(struct drm_device *);
void drm_dma_takedown(struct drm_device *);
-void drm_cleanup_buf(struct drm_device *, drm_buf_entry_t *);
+void drm_cleanup_buf(struct drm_device *, struct drm_buf_entry *);
void drm_free_buffer(struct drm_device *, struct drm_buf *);
void drm_reclaim_buffers(struct drm_device *, struct drm_file *);