kernels/linux-2.4.0/drivers/char/agp/agpgart_be.c
/* Routine to copy over information structure */
Routine to copy over information structure
Routine to copy over information structure
void agp_copy_info(agp_kern_info * info)
{
	memset(info, 0, sizeof(agp_kern_info));
	if (agp_bridge.type == NOT_SUPPORTED) {
		info->chipset = agp_bridge.type;
		return;
	}
	info->version.major = agp_bridge.version->major;
	info->version.minor = agp_bridge.version->minor;
	info->device = agp_bridge.dev;
	info->chipset = agp_bridge.type;
	info->mode = agp_bridge.mode;
	info->aper_base = agp_bridge.gart_bus_addr;
	info->aper_size = agp_return_size();
	info->max_memory = agp_bridge.max_memory_agp;
	info->current_memory = atomic_read(&agp_bridge.current_memory_agp);
}
void agp_copy_info ( agp_kern_info * info ) { memset ( info , 0 , sizeof ( agp_kern_info ) ) ; if ( agp_bridge . type == NOT_SUPPORTED ) { info -> chipset = agp_bridge . type ; return ; } info -> version . major = agp_bridge . version -> major ; info -> version . minor = agp_bridge . version -> minor ; info -> device = agp_bridge . dev ; info -> chipset = agp_bridge . type ; info -> mode = agp_bridge . mode ; info -> aper_base = agp_bridge . gart_bus_addr ; info -> aper_size = agp_return_size ( ) ; info -> max_memory = agp_bridge . max_memory_agp ; info -> current_memory = atomic_read ( & agp_bridge . current_memory_agp ) ; }
Routine to copy over information structure
Routine to copy over information structure