/* * Copyright 2008 Red Hat Inc. * Copyright 2009 Jerome Glisse. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: * Dave Airlie * Jerome Glisse <[email protected]> */ #include <linux/pci.h> #include <drm/drm_device.h> #include <drm/radeon_drm.h> #include "radeon.h" #if IS_ENABLED(CONFIG_AGP) struct radeon_agpmode_quirk { … }; static struct radeon_agpmode_quirk radeon_agpmode_quirk_list[] = …; struct radeon_agp_head *radeon_agp_head_init(struct drm_device *dev) { … } static int radeon_agp_head_acquire(struct radeon_device *rdev) { … } static int radeon_agp_head_release(struct radeon_device *rdev) { … } static int radeon_agp_head_enable(struct radeon_device *rdev, struct radeon_agp_mode mode) { … } static int radeon_agp_head_info(struct radeon_device *rdev, struct radeon_agp_info *info) { … } #endif int radeon_agp_init(struct radeon_device *rdev) { … } void radeon_agp_resume(struct radeon_device *rdev) { … } void radeon_agp_fini(struct radeon_device *rdev) { … } void radeon_agp_suspend(struct radeon_device *rdev) { … }