diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 02:32:08 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 02:32:08 -0400 |
commit | cdd55a294c13f8bf05b2f4fee4c96934d5ebd2e4 (patch) | |
tree | b759df2c65f321d2bdd8ff338048a6f67417ca95 /drivers/char/drm/drm_bufs.c | |
parent | 8fc2fdf4c9437576f38e97c2f5b700ec77038984 (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/drm_bufs.c')
-rw-r--r-- | drivers/char/drm/drm_bufs.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index bdd301519769..3528453c8ece 100644 --- a/drivers/char/drm/drm_bufs.c +++ b/drivers/char/drm/drm_bufs.c | |||
@@ -504,7 +504,8 @@ int drm_rmmap_ioctl(struct inode *inode, struct file *filp, | |||
504 | * | 504 | * |
505 | * Frees any pages and buffers associated with the given entry. | 505 | * Frees any pages and buffers associated with the given entry. |
506 | */ | 506 | */ |
507 | static void drm_cleanup_buf_error(struct drm_device * dev, drm_buf_entry_t * entry) | 507 | static void drm_cleanup_buf_error(struct drm_device * dev, |
508 | struct drm_buf_entry * entry) | ||
508 | { | 509 | { |
509 | int i; | 510 | int i; |
510 | 511 | ||
@@ -551,8 +552,8 @@ static void drm_cleanup_buf_error(struct drm_device * dev, drm_buf_entry_t * ent | |||
551 | */ | 552 | */ |
552 | int drm_addbufs_agp(struct drm_device * dev, struct drm_buf_desc * request) | 553 | int drm_addbufs_agp(struct drm_device * dev, struct drm_buf_desc * request) |
553 | { | 554 | { |
554 | drm_device_dma_t *dma = dev->dma; | 555 | struct drm_device_dma *dma = dev->dma; |
555 | drm_buf_entry_t *entry; | 556 | struct drm_buf_entry *entry; |
556 | drm_agp_mem_t *agp_entry; | 557 | drm_agp_mem_t *agp_entry; |
557 | struct drm_buf *buf; | 558 | struct drm_buf *buf; |
558 | unsigned long offset; | 559 | unsigned long offset; |
@@ -721,13 +722,13 @@ EXPORT_SYMBOL(drm_addbufs_agp); | |||
721 | 722 | ||
722 | int drm_addbufs_pci(struct drm_device * dev, struct drm_buf_desc * request) | 723 | int drm_addbufs_pci(struct drm_device * dev, struct drm_buf_desc * request) |
723 | { | 724 | { |
724 | drm_device_dma_t *dma = dev->dma; | 725 | struct drm_device_dma *dma = dev->dma; |
725 | int count; | 726 | int count; |
726 | int order; | 727 | int order; |
727 | int size; | 728 | int size; |
728 | int total; | 729 | int total; |
729 | int page_order; | 730 | int page_order; |
730 | drm_buf_entry_t *entry; | 731 | struct drm_buf_entry *entry; |
731 | drm_dma_handle_t *dmah; | 732 | drm_dma_handle_t *dmah; |
732 | struct drm_buf *buf; | 733 | struct drm_buf *buf; |
733 | int alignment; | 734 | int alignment; |
@@ -947,8 +948,8 @@ EXPORT_SYMBOL(drm_addbufs_pci); | |||
947 | 948 | ||
948 | static int drm_addbufs_sg(struct drm_device * dev, struct drm_buf_desc * request) | 949 | static int drm_addbufs_sg(struct drm_device * dev, struct drm_buf_desc * request) |
949 | { | 950 | { |
950 | drm_device_dma_t *dma = dev->dma; | 951 | struct drm_device_dma *dma = dev->dma; |
951 | drm_buf_entry_t *entry; | 952 | struct drm_buf_entry *entry; |
952 | struct drm_buf *buf; | 953 | struct drm_buf *buf; |
953 | unsigned long offset; | 954 | unsigned long offset; |
954 | unsigned long agp_offset; | 955 | unsigned long agp_offset; |
@@ -1109,8 +1110,8 @@ static int drm_addbufs_sg(struct drm_device * dev, struct drm_buf_desc * request | |||
1109 | 1110 | ||
1110 | static int drm_addbufs_fb(struct drm_device * dev, struct drm_buf_desc * request) | 1111 | static int drm_addbufs_fb(struct drm_device * dev, struct drm_buf_desc * request) |
1111 | { | 1112 | { |
1112 | drm_device_dma_t *dma = dev->dma; | 1113 | struct drm_device_dma *dma = dev->dma; |
1113 | drm_buf_entry_t *entry; | 1114 | struct drm_buf_entry *entry; |
1114 | struct drm_buf *buf; | 1115 | struct drm_buf *buf; |
1115 | unsigned long offset; | 1116 | unsigned long offset; |
1116 | unsigned long agp_offset; | 1117 | unsigned long agp_offset; |
@@ -1339,7 +1340,7 @@ int drm_infobufs(struct inode *inode, struct file *filp, | |||
1339 | { | 1340 | { |
1340 | struct drm_file *priv = filp->private_data; | 1341 | struct drm_file *priv = filp->private_data; |
1341 | struct drm_device *dev = priv->head->dev; | 1342 | struct drm_device *dev = priv->head->dev; |
1342 | drm_device_dma_t *dma = dev->dma; | 1343 | struct drm_device_dma *dma = dev->dma; |
1343 | struct drm_buf_info request; | 1344 | struct drm_buf_info request; |
1344 | struct drm_buf_info __user *argp = (void __user *)arg; | 1345 | struct drm_buf_info __user *argp = (void __user *)arg; |
1345 | int i; | 1346 | int i; |
@@ -1374,8 +1375,8 @@ int drm_infobufs(struct inode *inode, struct file *filp, | |||
1374 | if (dma->bufs[i].buf_count) { | 1375 | if (dma->bufs[i].buf_count) { |
1375 | struct drm_buf_desc __user *to = | 1376 | struct drm_buf_desc __user *to = |
1376 | &request.list[count]; | 1377 | &request.list[count]; |
1377 | drm_buf_entry_t *from = &dma->bufs[i]; | 1378 | struct drm_buf_entry *from = &dma->bufs[i]; |
1378 | drm_freelist_t *list = &dma->bufs[i].freelist; | 1379 | struct drm_freelist *list = &dma->bufs[i].freelist; |
1379 | if (copy_to_user(&to->count, | 1380 | if (copy_to_user(&to->count, |
1380 | &from->buf_count, | 1381 | &from->buf_count, |
1381 | sizeof(from->buf_count)) || | 1382 | sizeof(from->buf_count)) || |
@@ -1427,10 +1428,10 @@ int drm_markbufs(struct inode *inode, struct file *filp, | |||
1427 | { | 1428 | { |
1428 | struct drm_file *priv = filp->private_data; | 1429 | struct drm_file *priv = filp->private_data; |
1429 | struct drm_device *dev = priv->head->dev; | 1430 | struct drm_device *dev = priv->head->dev; |
1430 | drm_device_dma_t *dma = dev->dma; | 1431 | struct drm_device_dma *dma = dev->dma; |
1431 | struct drm_buf_desc request; | 1432 | struct drm_buf_desc request; |
1432 | int order; | 1433 | int order; |
1433 | drm_buf_entry_t *entry; | 1434 | struct drm_buf_entry *entry; |
1434 | 1435 | ||
1435 | if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA)) | 1436 | if (!drm_core_check_feature(dev, DRIVER_HAVE_DMA)) |
1436 | return -EINVAL; | 1437 | return -EINVAL; |
@@ -1477,7 +1478,7 @@ int drm_freebufs(struct inode *inode, struct file *filp, | |||
1477 | { | 1478 | { |
1478 | struct drm_file *priv = filp->private_data; | 1479 | struct drm_file *priv = filp->private_data; |
1479 | struct drm_device *dev = priv->head->dev; | 1480 | struct drm_device *dev = priv->head->dev; |
1480 | drm_device_dma_t *dma = dev->dma; | 1481 | struct drm_device_dma *dma = dev->dma; |
1481 | struct drm_buf_free request; | 1482 | struct drm_buf_free request; |
1482 | int i; | 1483 | int i; |
1483 | int idx; | 1484 | int idx; |
@@ -1533,7 +1534,7 @@ int drm_mapbufs(struct inode *inode, struct file *filp, | |||
1533 | { | 1534 | { |
1534 | struct drm_file *priv = filp->private_data; | 1535 | struct drm_file *priv = filp->private_data; |
1535 | struct drm_device *dev = priv->head->dev; | 1536 | struct drm_device *dev = priv->head->dev; |
1536 | drm_device_dma_t *dma = dev->dma; | 1537 | struct drm_device_dma *dma = dev->dma; |
1537 | struct drm_buf_map __user *argp = (void __user *)arg; | 1538 | struct drm_buf_map __user *argp = (void __user *)arg; |
1538 | int retcode = 0; | 1539 | int retcode = 0; |
1539 | const int zero = 0; | 1540 | const int zero = 0; |