diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 02:53:40 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 02:53:40 -0400 |
commit | 55910517af381eba4f978740e5e46e23eb269326 (patch) | |
tree | 22c82521d05029234634ebbf814b173570f18049 /drivers/char/drm/drm_agpsupport.c | |
parent | cdd55a294c13f8bf05b2f4fee4c96934d5ebd2e4 (diff) |
drm: detypedeffing continues...
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_agpsupport.c')
-rw-r--r-- | drivers/char/drm/drm_agpsupport.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/char/drm/drm_agpsupport.c b/drivers/char/drm/drm_agpsupport.c index 059476a4e7eb..354f0e3674bf 100644 --- a/drivers/char/drm/drm_agpsupport.c +++ b/drivers/char/drm/drm_agpsupport.c | |||
@@ -209,7 +209,7 @@ int drm_agp_enable_ioctl(struct inode *inode, struct file *filp, | |||
209 | */ | 209 | */ |
210 | int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request) | 210 | int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request) |
211 | { | 211 | { |
212 | drm_agp_mem_t *entry; | 212 | struct drm_agp_mem *entry; |
213 | DRM_AGP_MEM *memory; | 213 | DRM_AGP_MEM *memory; |
214 | unsigned long pages; | 214 | unsigned long pages; |
215 | u32 type; | 215 | u32 type; |
@@ -258,7 +258,7 @@ int drm_agp_alloc_ioctl(struct inode *inode, struct file *filp, | |||
258 | return err; | 258 | return err; |
259 | 259 | ||
260 | if (copy_to_user(argp, &request, sizeof(request))) { | 260 | if (copy_to_user(argp, &request, sizeof(request))) { |
261 | drm_agp_mem_t *entry; | 261 | struct drm_agp_mem *entry; |
262 | list_for_each_entry(entry, &dev->agp->memory, head) { | 262 | list_for_each_entry(entry, &dev->agp->memory, head) { |
263 | if (entry->handle == request.handle) | 263 | if (entry->handle == request.handle) |
264 | break; | 264 | break; |
@@ -281,10 +281,10 @@ int drm_agp_alloc_ioctl(struct inode *inode, struct file *filp, | |||
281 | * | 281 | * |
282 | * Walks through drm_agp_head::memory until finding a matching handle. | 282 | * Walks through drm_agp_head::memory until finding a matching handle. |
283 | */ | 283 | */ |
284 | static drm_agp_mem_t *drm_agp_lookup_entry(struct drm_device * dev, | 284 | static struct drm_agp_mem *drm_agp_lookup_entry(struct drm_device * dev, |
285 | unsigned long handle) | 285 | unsigned long handle) |
286 | { | 286 | { |
287 | drm_agp_mem_t *entry; | 287 | struct drm_agp_mem *entry; |
288 | 288 | ||
289 | list_for_each_entry(entry, &dev->agp->memory, head) { | 289 | list_for_each_entry(entry, &dev->agp->memory, head) { |
290 | if (entry->handle == handle) | 290 | if (entry->handle == handle) |
@@ -307,7 +307,7 @@ static drm_agp_mem_t *drm_agp_lookup_entry(struct drm_device * dev, | |||
307 | */ | 307 | */ |
308 | int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request) | 308 | int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request) |
309 | { | 309 | { |
310 | drm_agp_mem_t *entry; | 310 | struct drm_agp_mem *entry; |
311 | int ret; | 311 | int ret; |
312 | 312 | ||
313 | if (!dev->agp || !dev->agp->acquired) | 313 | if (!dev->agp || !dev->agp->acquired) |
@@ -352,7 +352,7 @@ int drm_agp_unbind_ioctl(struct inode *inode, struct file *filp, | |||
352 | */ | 352 | */ |
353 | int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request) | 353 | int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request) |
354 | { | 354 | { |
355 | drm_agp_mem_t *entry; | 355 | struct drm_agp_mem *entry; |
356 | int retcode; | 356 | int retcode; |
357 | int page; | 357 | int page; |
358 | 358 | ||
@@ -402,7 +402,7 @@ int drm_agp_bind_ioctl(struct inode *inode, struct file *filp, | |||
402 | */ | 402 | */ |
403 | int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request) | 403 | int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request) |
404 | { | 404 | { |
405 | drm_agp_mem_t *entry; | 405 | struct drm_agp_mem *entry; |
406 | 406 | ||
407 | if (!dev->agp || !dev->agp->acquired) | 407 | if (!dev->agp || !dev->agp->acquired) |
408 | return -EINVAL; | 408 | return -EINVAL; |
@@ -442,9 +442,9 @@ int drm_agp_free_ioctl(struct inode *inode, struct file *filp, | |||
442 | * via the inter_module_* functions. Creates and initializes a drm_agp_head | 442 | * via the inter_module_* functions. Creates and initializes a drm_agp_head |
443 | * structure. | 443 | * structure. |
444 | */ | 444 | */ |
445 | drm_agp_head_t *drm_agp_init(struct drm_device *dev) | 445 | struct drm_agp_head *drm_agp_init(struct drm_device *dev) |
446 | { | 446 | { |
447 | drm_agp_head_t *head = NULL; | 447 | struct drm_agp_head *head = NULL; |
448 | 448 | ||
449 | if (!(head = drm_alloc(sizeof(*head), DRM_MEM_AGPLISTS))) | 449 | if (!(head = drm_alloc(sizeof(*head), DRM_MEM_AGPLISTS))) |
450 | return NULL; | 450 | return NULL; |