diff options
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/sis_drv.h | 3 | ||||
-rw-r--r-- | shared-core/sis_mm.c | 4 | ||||
-rw-r--r-- | shared-core/via_drv.h | 4 | ||||
-rw-r--r-- | shared-core/via_mm.c | 4 |
4 files changed, 10 insertions, 5 deletions
diff --git a/shared-core/sis_drv.h b/shared-core/sis_drv.h index 40e7f463..814a7ae1 100644 --- a/shared-core/sis_drv.h +++ b/shared-core/sis_drv.h @@ -44,4 +44,7 @@ extern int sis_ioctl_agp_alloc( DRM_IOCTL_ARGS ); extern int sis_ioctl_agp_free( DRM_IOCTL_ARGS ); extern int sis_fb_init( DRM_IOCTL_ARGS ); +extern int sis_init_context(drm_device_t *dev, int context); +extern int sis_final_context(drm_device_t *dev, int context); + #endif diff --git a/shared-core/sis_mm.c b/shared-core/sis_mm.c index 9b6311a9..cbfab011 100644 --- a/shared-core/sis_mm.c +++ b/shared-core/sis_mm.c @@ -330,7 +330,7 @@ int sis_ioctl_agp_free( DRM_IOCTL_ARGS ) return 0; } -int sis_init_context(int context) +int sis_init_context(drm_device_t *dev, int context) { int i; @@ -362,7 +362,7 @@ int sis_init_context(int context) return 1; } -int sis_final_context(int context) +int sis_final_context(drm_device_t *dev, int context) { int i; diff --git a/shared-core/via_drv.h b/shared-core/via_drv.h index 1eafc95f..a0ed1e60 100644 --- a/shared-core/via_drv.h +++ b/shared-core/via_drv.h @@ -46,7 +46,9 @@ typedef struct drm_via_private { #define VIA_READ8(reg) DRM_READ8(VIA_BASE, reg) #define VIA_WRITE8(reg,val) DRM_WRITE8(VIA_BASE, reg, val) - +extern int via_init_context(drm_device_t *dev, int context); +extern int via_final_context(drm_device_t *dev, int context); + extern int via_do_init_map(drm_device_t *dev, drm_via_init_t *init); extern int via_do_cleanup_map(drm_device_t *dev); extern int via_map_init(struct inode *inode, struct file *filp, diff --git a/shared-core/via_mm.c b/shared-core/via_mm.c index 1bf04fe0..dae5aaf0 100644 --- a/shared-core/via_mm.c +++ b/shared-core/via_mm.c @@ -103,7 +103,7 @@ int via_fb_init( DRM_IOCTL_ARGS ) return 0; } -int via_init_context(int context) +int via_init_context(drm_device_t *dev, int context) { int i; @@ -134,7 +134,7 @@ int via_init_context(int context) return 1; } -int via_final_context(int context) +int via_final_context(drm_device_t *dev, int context) { int i; for (i=0; i<MAX_CONTEXT; i++) |