diff options
Diffstat (limited to 'drivers/char/drm/drm_agpsupport.c')
-rw-r--r-- | drivers/char/drm/drm_agpsupport.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/drivers/char/drm/drm_agpsupport.c b/drivers/char/drm/drm_agpsupport.c index d1a9e508af4b..059476a4e7eb 100644 --- a/drivers/char/drm/drm_agpsupport.c +++ b/drivers/char/drm/drm_agpsupport.c | |||
@@ -48,7 +48,7 @@ | |||
48 | * Verifies the AGP device has been initialized and acquired and fills in the | 48 | * Verifies the AGP device has been initialized and acquired and fills in the |
49 | * drm_agp_info structure with the information in drm_agp_head::agp_info. | 49 | * drm_agp_info structure with the information in drm_agp_head::agp_info. |
50 | */ | 50 | */ |
51 | int drm_agp_info(drm_device_t * dev, struct drm_agp_info * info) | 51 | int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info) |
52 | { | 52 | { |
53 | DRM_AGP_KERN *kern; | 53 | DRM_AGP_KERN *kern; |
54 | 54 | ||
@@ -74,8 +74,8 @@ EXPORT_SYMBOL(drm_agp_info); | |||
74 | int drm_agp_info_ioctl(struct inode *inode, struct file *filp, | 74 | int drm_agp_info_ioctl(struct inode *inode, struct file *filp, |
75 | unsigned int cmd, unsigned long arg) | 75 | unsigned int cmd, unsigned long arg) |
76 | { | 76 | { |
77 | drm_file_t *priv = filp->private_data; | 77 | struct drm_file *priv = filp->private_data; |
78 | drm_device_t *dev = priv->head->dev; | 78 | struct drm_device *dev = priv->head->dev; |
79 | struct drm_agp_info info; | 79 | struct drm_agp_info info; |
80 | int err; | 80 | int err; |
81 | 81 | ||
@@ -97,7 +97,7 @@ int drm_agp_info_ioctl(struct inode *inode, struct file *filp, | |||
97 | * Verifies the AGP device hasn't been acquired before and calls | 97 | * Verifies the AGP device hasn't been acquired before and calls |
98 | * \c agp_backend_acquire. | 98 | * \c agp_backend_acquire. |
99 | */ | 99 | */ |
100 | int drm_agp_acquire(drm_device_t * dev) | 100 | int drm_agp_acquire(struct drm_device * dev) |
101 | { | 101 | { |
102 | if (!dev->agp) | 102 | if (!dev->agp) |
103 | return -ENODEV; | 103 | return -ENODEV; |
@@ -126,9 +126,9 @@ EXPORT_SYMBOL(drm_agp_acquire); | |||
126 | int drm_agp_acquire_ioctl(struct inode *inode, struct file *filp, | 126 | int drm_agp_acquire_ioctl(struct inode *inode, struct file *filp, |
127 | unsigned int cmd, unsigned long arg) | 127 | unsigned int cmd, unsigned long arg) |
128 | { | 128 | { |
129 | drm_file_t *priv = filp->private_data; | 129 | struct drm_file *priv = filp->private_data; |
130 | 130 | ||
131 | return drm_agp_acquire((drm_device_t *) priv->head->dev); | 131 | return drm_agp_acquire((struct drm_device *) priv->head->dev); |
132 | } | 132 | } |
133 | 133 | ||
134 | /** | 134 | /** |
@@ -139,7 +139,7 @@ int drm_agp_acquire_ioctl(struct inode *inode, struct file *filp, | |||
139 | * | 139 | * |
140 | * Verifies the AGP device has been acquired and calls \c agp_backend_release. | 140 | * Verifies the AGP device has been acquired and calls \c agp_backend_release. |
141 | */ | 141 | */ |
142 | int drm_agp_release(drm_device_t * dev) | 142 | int drm_agp_release(struct drm_device * dev) |
143 | { | 143 | { |
144 | if (!dev->agp || !dev->agp->acquired) | 144 | if (!dev->agp || !dev->agp->acquired) |
145 | return -EINVAL; | 145 | return -EINVAL; |
@@ -152,8 +152,8 @@ EXPORT_SYMBOL(drm_agp_release); | |||
152 | int drm_agp_release_ioctl(struct inode *inode, struct file *filp, | 152 | int drm_agp_release_ioctl(struct inode *inode, struct file *filp, |
153 | unsigned int cmd, unsigned long arg) | 153 | unsigned int cmd, unsigned long arg) |
154 | { | 154 | { |
155 | drm_file_t *priv = filp->private_data; | 155 | struct drm_file *priv = filp->private_data; |
156 | drm_device_t *dev = priv->head->dev; | 156 | struct drm_device *dev = priv->head->dev; |
157 | 157 | ||
158 | return drm_agp_release(dev); | 158 | return drm_agp_release(dev); |
159 | } | 159 | } |
@@ -168,7 +168,7 @@ int drm_agp_release_ioctl(struct inode *inode, struct file *filp, | |||
168 | * Verifies the AGP device has been acquired but not enabled, and calls | 168 | * Verifies the AGP device has been acquired but not enabled, and calls |
169 | * \c agp_enable. | 169 | * \c agp_enable. |
170 | */ | 170 | */ |
171 | int drm_agp_enable(drm_device_t * dev, struct drm_agp_mode mode) | 171 | int drm_agp_enable(struct drm_device * dev, struct drm_agp_mode mode) |
172 | { | 172 | { |
173 | if (!dev->agp || !dev->agp->acquired) | 173 | if (!dev->agp || !dev->agp->acquired) |
174 | return -EINVAL; | 174 | return -EINVAL; |
@@ -185,8 +185,8 @@ EXPORT_SYMBOL(drm_agp_enable); | |||
185 | int drm_agp_enable_ioctl(struct inode *inode, struct file *filp, | 185 | int drm_agp_enable_ioctl(struct inode *inode, struct file *filp, |
186 | unsigned int cmd, unsigned long arg) | 186 | unsigned int cmd, unsigned long arg) |
187 | { | 187 | { |
188 | drm_file_t *priv = filp->private_data; | 188 | struct drm_file *priv = filp->private_data; |
189 | drm_device_t *dev = priv->head->dev; | 189 | struct drm_device *dev = priv->head->dev; |
190 | struct drm_agp_mode mode; | 190 | struct drm_agp_mode mode; |
191 | 191 | ||
192 | if (copy_from_user(&mode, (struct drm_agp_mode __user *) arg, sizeof(mode))) | 192 | if (copy_from_user(&mode, (struct drm_agp_mode __user *) arg, sizeof(mode))) |
@@ -207,7 +207,7 @@ int drm_agp_enable_ioctl(struct inode *inode, struct file *filp, | |||
207 | * Verifies the AGP device is present and has been acquired, allocates the | 207 | * Verifies the AGP device is present and has been acquired, allocates the |
208 | * memory via alloc_agp() and creates a drm_agp_mem entry for it. | 208 | * memory via alloc_agp() and creates a drm_agp_mem entry for it. |
209 | */ | 209 | */ |
210 | int drm_agp_alloc(drm_device_t *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 | drm_agp_mem_t *entry; |
213 | DRM_AGP_MEM *memory; | 213 | DRM_AGP_MEM *memory; |
@@ -244,8 +244,8 @@ EXPORT_SYMBOL(drm_agp_alloc); | |||
244 | int drm_agp_alloc_ioctl(struct inode *inode, struct file *filp, | 244 | int drm_agp_alloc_ioctl(struct inode *inode, struct file *filp, |
245 | unsigned int cmd, unsigned long arg) | 245 | unsigned int cmd, unsigned long arg) |
246 | { | 246 | { |
247 | drm_file_t *priv = filp->private_data; | 247 | struct drm_file *priv = filp->private_data; |
248 | drm_device_t *dev = priv->head->dev; | 248 | struct drm_device *dev = priv->head->dev; |
249 | struct drm_agp_buffer request; | 249 | struct drm_agp_buffer request; |
250 | struct drm_agp_buffer __user *argp = (void __user *)arg; | 250 | struct drm_agp_buffer __user *argp = (void __user *)arg; |
251 | int err; | 251 | int err; |
@@ -281,7 +281,7 @@ 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(drm_device_t * dev, | 284 | static drm_agp_mem_t *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 | drm_agp_mem_t *entry; |
@@ -305,7 +305,7 @@ static drm_agp_mem_t *drm_agp_lookup_entry(drm_device_t * dev, | |||
305 | * Verifies the AGP device is present and acquired, looks-up the AGP memory | 305 | * Verifies the AGP device is present and acquired, looks-up the AGP memory |
306 | * entry and passes it to the unbind_agp() function. | 306 | * entry and passes it to the unbind_agp() function. |
307 | */ | 307 | */ |
308 | int drm_agp_unbind(drm_device_t *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 | drm_agp_mem_t *entry; |
311 | int ret; | 311 | int ret; |
@@ -326,8 +326,8 @@ EXPORT_SYMBOL(drm_agp_unbind); | |||
326 | int drm_agp_unbind_ioctl(struct inode *inode, struct file *filp, | 326 | int drm_agp_unbind_ioctl(struct inode *inode, struct file *filp, |
327 | unsigned int cmd, unsigned long arg) | 327 | unsigned int cmd, unsigned long arg) |
328 | { | 328 | { |
329 | drm_file_t *priv = filp->private_data; | 329 | struct drm_file *priv = filp->private_data; |
330 | drm_device_t *dev = priv->head->dev; | 330 | struct drm_device *dev = priv->head->dev; |
331 | struct drm_agp_binding request; | 331 | struct drm_agp_binding request; |
332 | 332 | ||
333 | if (copy_from_user | 333 | if (copy_from_user |
@@ -350,7 +350,7 @@ int drm_agp_unbind_ioctl(struct inode *inode, struct file *filp, | |||
350 | * is currently bound into the GATT. Looks-up the AGP memory entry and passes | 350 | * is currently bound into the GATT. Looks-up the AGP memory entry and passes |
351 | * it to bind_agp() function. | 351 | * it to bind_agp() function. |
352 | */ | 352 | */ |
353 | int drm_agp_bind(drm_device_t *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 | drm_agp_mem_t *entry; |
356 | int retcode; | 356 | int retcode; |
@@ -375,8 +375,8 @@ EXPORT_SYMBOL(drm_agp_bind); | |||
375 | int drm_agp_bind_ioctl(struct inode *inode, struct file *filp, | 375 | int drm_agp_bind_ioctl(struct inode *inode, struct file *filp, |
376 | unsigned int cmd, unsigned long arg) | 376 | unsigned int cmd, unsigned long arg) |
377 | { | 377 | { |
378 | drm_file_t *priv = filp->private_data; | 378 | struct drm_file *priv = filp->private_data; |
379 | drm_device_t *dev = priv->head->dev; | 379 | struct drm_device *dev = priv->head->dev; |
380 | struct drm_agp_binding request; | 380 | struct drm_agp_binding request; |
381 | 381 | ||
382 | if (copy_from_user | 382 | if (copy_from_user |
@@ -400,7 +400,7 @@ int drm_agp_bind_ioctl(struct inode *inode, struct file *filp, | |||
400 | * unbind_agp(). Frees it via free_agp() as well as the entry itself | 400 | * unbind_agp(). Frees it via free_agp() as well as the entry itself |
401 | * and unlinks from the doubly linked list it's inserted in. | 401 | * and unlinks from the doubly linked list it's inserted in. |
402 | */ | 402 | */ |
403 | int drm_agp_free(drm_device_t *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 | drm_agp_mem_t *entry; |
406 | 406 | ||
@@ -422,8 +422,8 @@ EXPORT_SYMBOL(drm_agp_free); | |||
422 | int drm_agp_free_ioctl(struct inode *inode, struct file *filp, | 422 | int drm_agp_free_ioctl(struct inode *inode, struct file *filp, |
423 | unsigned int cmd, unsigned long arg) | 423 | unsigned int cmd, unsigned long arg) |
424 | { | 424 | { |
425 | drm_file_t *priv = filp->private_data; | 425 | struct drm_file *priv = filp->private_data; |
426 | drm_device_t *dev = priv->head->dev; | 426 | struct drm_device *dev = priv->head->dev; |
427 | struct drm_agp_buffer request; | 427 | struct drm_agp_buffer request; |
428 | 428 | ||
429 | if (copy_from_user | 429 | if (copy_from_user |
@@ -442,7 +442,7 @@ 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(drm_device_t * dev) | 445 | drm_agp_head_t *drm_agp_init(struct drm_device *dev) |
446 | { | 446 | { |
447 | drm_agp_head_t *head = NULL; | 447 | drm_agp_head_t *head = NULL; |
448 | 448 | ||