diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-04-22 09:49:14 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-04-22 09:49:14 +0000 |
commit | 13211ad82c184e3daf68c06203412d3f1c949291 (patch) | |
tree | ef0df20b2b74802f15d6549e679138a9dc467100 /shared/radeon_state.c | |
parent | fc4fb6b51b50e37ff697e872b297b6460c3617af (diff) |
add more get_param queries for embedded project
Diffstat (limited to 'shared/radeon_state.c')
-rw-r--r-- | shared/radeon_state.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shared/radeon_state.c b/shared/radeon_state.c index 86cbead5..8e9485a7 100644 --- a/shared/radeon_state.c +++ b/shared/radeon_state.c @@ -2191,6 +2191,19 @@ int radeon_cp_getparam( DRM_IOCTL_ARGS ) case RADEON_PARAM_AGP_BASE: value = dev_priv->agp_vm_start; break; + case RADEON_PARAM_REGISTER_HANDLE: + value = dev_priv->mmio_offset; + break; + case RADEON_PARAM_STATUS_HANDLE: + value = dev_priv->ring_rptr_offset; + break; + case RADEON_PARAM_SAREA_HANDLE: + /* The lock is the first dword in the sarea. */ + value = (int)dev->lock.hw_lock; + break; + case RADEON_PARAM_AGP_TEX_HANDLE: + value = dev_priv->agp_textures_offset; + break; default: return DRM_ERR(EINVAL); } |