FreeBSD/sys/dev/drm2/radeon/radeon_asic.c
/* helper to disable agp */
/**
 * radeon_agp_disable - AGP disable helper function
 *
 * @rdev: radeon device pointer
 *
 * Removes AGP flags and changes the gart callbacks on AGP
 * cards when using the internal gart rather than AGP (all asics).
 */
helper to disable agp
radeon_agp_disable - AGP disable helper function

@rdev: radeon device pointer

Removes AGP flags and changes the gart callbacks on AGP
cards when using the internal gart rather than AGP (all asics).
helper to disable agp radeon_agp_disable - AGP disable helper function @rdev : radeon device pointer Removes AGP flags and changes the gart callbacks on AGP cards when using the internal gart rather than AGP ( all asics ) .
void radeon_agp_disable(struct radeon_device *rdev)
{
	rdev->flags &= ~RADEON_IS_AGP;
	if (rdev->family >= CHIP_R600) {
		DRM_INFO("Forcing AGP to PCIE mode\n");
		rdev->flags |= RADEON_IS_PCIE;
	} else if (rdev->family >= CHIP_RV515 ||
			rdev->family == CHIP_RV380 ||
			rdev->family == CHIP_RV410 ||
			rdev->family == CHIP_R423) {
		DRM_INFO("Forcing AGP to PCIE mode\n");
		rdev->flags |= RADEON_IS_PCIE;
		rdev->asic->gart.tlb_flush = &rv370_pcie_gart_tlb_flush;
		rdev->asic->gart.set_page = &rv370_pcie_gart_set_page;
	} else {
		DRM_INFO("Forcing AGP to PCI mode\n");
		rdev->flags |= RADEON_IS_PCI;
		rdev->asic->gart.tlb_flush = &r100_pci_gart_tlb_flush;
		rdev->asic->gart.set_page = &r100_pci_gart_set_page;
	}
	rdev->mc.gtt_size = radeon_gart_size * 1024 * 1024;
}
void radeon_agp_disable ( struct radeon_device * rdev ) { rdev -> flags &= ~ RADEON_IS_AGP ; if ( rdev -> family >= CHIP_R600 ) { DRM_INFO ( " \n " ) ; rdev -> flags |= RADEON_IS_PCIE ; } else if ( rdev -> family >= CHIP_RV515 || rdev -> family == CHIP_RV380 || rdev -> family == CHIP_RV410 || rdev -> family == CHIP_R423 ) { DRM_INFO ( " \n " ) ; rdev -> flags |= RADEON_IS_PCIE ; rdev -> asic -> gart . tlb_flush = & rv370_pcie_gart_tlb_flush ; rdev -> asic -> gart . set_page = & rv370_pcie_gart_set_page ; } else { DRM_INFO ( " \n " ) ; rdev -> flags |= RADEON_IS_PCI ; rdev -> asic -> gart . tlb_flush = & r100_pci_gart_tlb_flush ; rdev -> asic -> gart . set_page = & r100_pci_gart_set_page ; } rdev -> mc . gtt_size = radeon_gart_size * 1024 * 1024 ; }
helper to disable agp
 radeon_agp_disable - AGP disable helper function
helper to disable agp radeon_agp_disable - AGP disable helper function