kernels/linux-2.4.0/drivers/char/agp/agpgart_be.c
/* End - Generic routines for handling agp_memory structures */
Generic routines for handling agp_memory structures
Generic routines for handling agp_memory structures
static int agp_return_size(void)
{
	int current_size;
	void *temp;
	temp = agp_bridge.current_size;
	switch (agp_bridge.size_type) {
	case U8_APER_SIZE:
		current_size = A_SIZE_8(temp)->size;
		break;
	case U16_APER_SIZE:
		current_size = A_SIZE_16(temp)->size;
		break;
	case U32_APER_SIZE:
		current_size = A_SIZE_32(temp)->size;
		break;
	case LVL2_APER_SIZE:
		current_size = A_SIZE_LVL2(temp)->size;
		break;
	case FIXED_APER_SIZE:
		current_size = A_SIZE_FIX(temp)->size;
		break;
	default:
		current_size = 0;
		break;
	}
	return current_size;
}
static int agp_return_size ( void ) { int current_size ; void * temp ; temp = agp_bridge . current_size ; switch ( agp_bridge . size_type ) { case U8_APER_SIZE : current_size = A_SIZE_8 ( temp ) -> size ; break ; case U16_APER_SIZE : current_size = A_SIZE_16 ( temp ) -> size ; break ; case U32_APER_SIZE : current_size = A_SIZE_32 ( temp ) -> size ; break ; case LVL2_APER_SIZE : current_size = A_SIZE_LVL2 ( temp ) -> size ; break ; case FIXED_APER_SIZE : current_size = A_SIZE_FIX ( temp ) -> size ; break ; default : current_size = 0 ; break ; } return current_size ; }
End - Generic routines for handling agp_memory structures
End - Generic routines for handling agp_memory structures