summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-08-14 00:46:15 +0000
committerEric Anholt <anholt@freebsd.org>2004-08-14 00:46:15 +0000
commitdd83f39f034756e7eb8e002dbfb0047f88aa79e4 (patch)
treef6d41dd33f59906f87d9a8199b086286a3ac6416 /shared-core
parent2376ec4ef8d280cf6fba44ba0163989eff739187 (diff)
Add a "dev" argument to DRIVER_CTX_[CD]TOR. This will be used in an
upcoming commit for the SiS driver.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/sis_drv.h3
-rw-r--r--shared-core/sis_mm.c4
-rw-r--r--shared-core/via_drv.h4
-rw-r--r--shared-core/via_mm.c4
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++)