diff options
author | Eric Anholt <eric@anholt.net> | 2008-05-27 14:12:51 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-05-27 14:25:08 -0700 |
commit | ad8eb0ed01d96cc16cdafd3b48c0f0cd73d315b4 (patch) | |
tree | ffdb89715ad81040eb38613d16a835c0741947b2 /bsd-core/drm_context.c | |
parent | 49075b678fad6c3a5cadd1af67a37332b9255ace (diff) | |
download | libdrm-ad8eb0ed01d96cc16cdafd3b48c0f0cd73d315b4.tar.gz libdrm-ad8eb0ed01d96cc16cdafd3b48c0f0cd73d315b4.tar.bz2 libdrm-ad8eb0ed01d96cc16cdafd3b48c0f0cd73d315b4.zip |
[FreeBSD] Convert from drm_device_t to struct drm_device for consistency.
Diffstat (limited to 'bsd-core/drm_context.c')
-rw-r--r-- | bsd-core/drm_context.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/bsd-core/drm_context.c b/bsd-core/drm_context.c index 4155ee92..6d44fbec 100644 --- a/bsd-core/drm_context.c +++ b/bsd-core/drm_context.c @@ -38,7 +38,7 @@ * Context bitmap support */ -void drm_ctxbitmap_free(drm_device_t *dev, int ctx_handle) +void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle) { if (ctx_handle < 0 || ctx_handle >= DRM_MAX_CTXBITMAP || dev->ctx_bitmap == NULL) { @@ -54,7 +54,7 @@ void drm_ctxbitmap_free(drm_device_t *dev, int ctx_handle) return; } -int drm_ctxbitmap_next(drm_device_t *dev) +int drm_ctxbitmap_next(struct drm_device *dev) { int bit; @@ -101,7 +101,7 @@ int drm_ctxbitmap_next(drm_device_t *dev) return bit; } -int drm_ctxbitmap_init(drm_device_t *dev) +int drm_ctxbitmap_init(struct drm_device *dev) { int i; int temp; @@ -124,7 +124,7 @@ int drm_ctxbitmap_init(drm_device_t *dev) return 0; } -void drm_ctxbitmap_cleanup(drm_device_t *dev) +void drm_ctxbitmap_cleanup(struct drm_device *dev) { DRM_LOCK(); if (dev->context_sareas != NULL) @@ -137,7 +137,8 @@ void drm_ctxbitmap_cleanup(drm_device_t *dev) * Per Context SAREA Support */ -int drm_getsareactx( drm_device_t *dev, void *data, struct drm_file *file_priv ) +int drm_getsareactx(struct drm_device *dev, void *data, + struct drm_file *file_priv) { drm_ctx_priv_map_t *request = data; drm_local_map_t *map; @@ -157,7 +158,8 @@ int drm_getsareactx( drm_device_t *dev, void *data, struct drm_file *file_priv ) return 0; } -int drm_setsareactx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_setsareactx(struct drm_device *dev, void *data, + struct drm_file *file_priv) { drm_ctx_priv_map_t *request = data; drm_local_map_t *map = NULL; @@ -184,7 +186,7 @@ bad: * The actual DRM context handling routines */ -int drm_context_switch(drm_device_t *dev, int old, int new) +int drm_context_switch(struct drm_device *dev, int old, int new) { if ( test_and_set_bit( 0, &dev->context_flag ) ) { DRM_ERROR( "Reentering -- FIXME\n" ); @@ -201,7 +203,7 @@ int drm_context_switch(drm_device_t *dev, int old, int new) return 0; } -int drm_context_switch_complete(drm_device_t *dev, int new) +int drm_context_switch_complete(struct drm_device *dev, int new) { dev->last_context = new; /* PRE/POST: This is the _only_ writer. */ @@ -217,7 +219,7 @@ int drm_context_switch_complete(drm_device_t *dev, int new) return 0; } -int drm_resctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_resctx(struct drm_device *dev, void *data, struct drm_file *file_priv) { drm_ctx_res_t *res = data; drm_ctx_t ctx; @@ -237,7 +239,7 @@ int drm_resctx(drm_device_t *dev, void *data, struct drm_file *file_priv) return 0; } -int drm_addctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_addctx(struct drm_device *dev, void *data, struct drm_file *file_priv) { drm_ctx_t *ctx = data; @@ -262,13 +264,13 @@ int drm_addctx(drm_device_t *dev, void *data, struct drm_file *file_priv) return 0; } -int drm_modctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_modctx(struct drm_device *dev, void *data, struct drm_file *file_priv) { /* This does nothing */ return 0; } -int drm_getctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_getctx(struct drm_device *dev, void *data, struct drm_file *file_priv) { drm_ctx_t *ctx = data; @@ -278,7 +280,8 @@ int drm_getctx(drm_device_t *dev, void *data, struct drm_file *file_priv) return 0; } -int drm_switchctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_switchctx(struct drm_device *dev, void *data, + struct drm_file *file_priv) { drm_ctx_t *ctx = data; @@ -286,7 +289,7 @@ int drm_switchctx(drm_device_t *dev, void *data, struct drm_file *file_priv) return drm_context_switch(dev, dev->last_context, ctx->handle); } -int drm_newctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_newctx(struct drm_device *dev, void *data, struct drm_file *file_priv) { drm_ctx_t *ctx = data; @@ -296,7 +299,7 @@ int drm_newctx(drm_device_t *dev, void *data, struct drm_file *file_priv) return 0; } -int drm_rmctx(drm_device_t *dev, void *data, struct drm_file *file_priv) +int drm_rmctx(struct drm_device *dev, void *data, struct drm_file *file_priv) { drm_ctx_t *ctx = data; |