case MGA_PARAM_CARD_TYPE: value = dev_priv->chipset; break; 
static int mga_getparam( DRM_IOCTL_ARGS ){	DRM_DEVICE;	drm_mga_private_t *dev_priv = dev->dev_private;	drm_mga_getparam_t param;	int value;	if ( !dev_priv ) {		DRM_ERROR( "%s called with no initialization\n", __FUNCTION__ );		return DRM_ERR(EINVAL);	}	DRM_COPY_FROM_USER_IOCTL( param, (drm_mga_getparam_t __user *)data,			     sizeof(param) );	DRM_DEBUG( "pid=%d\n", DRM_CURRENTPID );	switch( param.param ) {	case MGA_PARAM_IRQ_NR:		value = dev->irq;		break;	default:		return DRM_ERR(EINVAL);	}	if ( DRM_COPY_TO_USER( param.value, &value, sizeof(int) ) ) {		DRM_ERROR( "copy_to_user\n" );		return DRM_ERR(EFAULT);	}		return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/6795c985a648d1e90b367cc1387c18205ecca4b8/mga_state.c/clean/drivers/char/drm/mga_state.c