/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * * 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 * Alex Deucher */ #include <drm/drm_device.h> #include <drm/radeon_drm.h> #include "radeon.h" static void radeon_lock_cursor(struct drm_crtc *crtc, bool lock) { … } static void radeon_hide_cursor(struct drm_crtc *crtc) { … } static void radeon_show_cursor(struct drm_crtc *crtc) { … } static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y) { … } int radeon_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) { … } int radeon_crtc_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height, int32_t hot_x, int32_t hot_y) { … } /** * radeon_cursor_reset - Re-set the current cursor, if any. * * @crtc: drm crtc * * If the CRTC passed in currently has a cursor assigned, this function * makes sure it's visible. */ void radeon_cursor_reset(struct drm_crtc *crtc) { … }