summaryrefslogtreecommitdiff
path: root/sys
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
parentb2ad1bccf2c866d0c964557e2c441e60c45cd58e (diff)
detypedef drm_buf_entry_t too.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/drmP.h26
-rw-r--r--sys/dev/pci/drm/drm_bufs.c8
2 files changed, 17 insertions, 17 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 *);
diff --git a/sys/dev/pci/drm/drm_bufs.c b/sys/dev/pci/drm/drm_bufs.c
index 26b1cc0f3fb..8158b2f18e1 100644
--- a/sys/dev/pci/drm/drm_bufs.c
+++ b/sys/dev/pci/drm/drm_bufs.c
@@ -370,7 +370,7 @@ drm_dma_setup(struct drm_device *dev)
}
void
-drm_cleanup_buf(struct drm_device *dev, drm_buf_entry_t *entry)
+drm_cleanup_buf(struct drm_device *dev, struct drm_buf_entry *entry)
{
int i;
@@ -478,7 +478,7 @@ int
drm_addbufs_agp(struct drm_device *dev, struct drm_buf_desc *request)
{
drm_device_dma_t *dma = dev->dma;
- drm_buf_entry_t *entry;
+ struct drm_buf_entry *entry;
struct drm_buf *buf, **temp_buflist;
unsigned long agp_offset, offset;
int alignment, count, order, page_order, size;
@@ -603,7 +603,7 @@ drm_addbufs_pci(struct drm_device *dev, struct drm_buf_desc *request)
{
drm_device_dma_t *dma = dev->dma;
struct drm_buf *buf, **temp_buflist;
- drm_buf_entry_t *entry;
+ struct drm_buf_entry *entry;
int alignment, byte_count, count, i, order;
int page_count, page_order, size, total;
unsigned long offset, *temp_pagelist;
@@ -736,7 +736,7 @@ int
drm_addbufs_sg(struct drm_device *dev, struct drm_buf_desc *request)
{
drm_device_dma_t *dma = dev->dma;
- drm_buf_entry_t *entry;
+ struct drm_buf_entry *entry;
struct drm_buf *buf, **temp_buflist;
unsigned long agp_offset, offset;
int alignment, byte_count, count, i, order;