drm_agpsupport.c revision 1450
830N/A * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. 830N/A * Created: Mon Dec 13 09:56:45 1999 by faith@precisioninsight.com 919N/A * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 919N/A * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 919N/A * Permission is hereby granted, free of charge, to any person obtaining a 919N/A * copy of this software and associated documentation files (the "Software"), 919N/A * to deal in the Software without restriction, including without limitation 919N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A * and/or sell copies of the Software, and to permit persons to whom the 919N/A * Software is furnished to do so, subject to the following conditions: 919N/A * The above copyright notice and this permission notice (including the next 919N/A * paragraph) shall be included in all copies or substantial portions of the 830N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 830N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 830N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 830N/A * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 830N/A * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 830N/A * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 830N/A * OTHER DEALINGS IN THE SOFTWARE. 830N/A * Rickard E. (Rik) Faith <faith@valinux.com> 830N/A * Gareth Hughes <gareth@valinux.com> 830N/A * The agpa_key field of struct agp_allocate_t actually is 830N/A * an index to an array. It can be zero. But we will use 830N/A * this agpa_key as a handle returned to userland. Generally, 830N/A * 0 is not a valid value for a handle, so we add an offset 830N/A * to the key to get a handle. * device_is_agp returns a tristate: * 2 = fall back to PCI capability DRM_ERROR(
"drm_agp_acquire : agp isn't initialized yet");
DRM_ERROR(
"drm_agp_acquired: AGPIOC_ACQUIRE failed\n");
DRM_ERROR(
"drm_agp_release: AGPIOC_RELEASE failed\n");
DRM_ERROR(
"drm_agp_alloc: AGPIOC_ALLOCATE failed, ret=%d",
ret);
/* physical is used only by i810 driver */ * If failed to ddi_copyout(), we will free allocated AGP memory DRM_ERROR(
"drm_agp_unbind: AGPIOC_UNBIND failed");
DRM_ERROR(
"drm_agp_bind: failed key=%x, start=0x%x, " DRM_ERROR(
"drm_agp_free: AGPIOC_DEALLOCATE failed," DRM_ERROR(
"drm_agp_init: failed to get layerd ident, retval=%d",
DRM_ERROR(
"drm_agp_init: failed to open %s, retval=%d",
DRM_ERROR(
"drm_agp_init: failed to get agpinfo, retval=%d",
DRM_DEBUG(
"drm_agp_bind_memory: AGPIOC_BIND failed");
DRM_ERROR(
"drm_agp_unbind: AGPIO_UNBIND failed");