kz151634 | 60405de | 2006-09-28 01:41:18 -0700 | [diff] [blame] | 1 | /* |
| 2 | * drm_drawable.h -- IOCTLs for drawables -*- linux-c -*- |
| 3 | * Created: Tue Feb 2 08:37:54 1999 by faith@valinux.com |
| 4 | */ |
| 5 | /* |
| 6 | * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. |
| 7 | * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. |
| 8 | * All Rights Reserved. |
| 9 | * |
| 10 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 11 | * copy of this software and associated documentation files (the "Software"), |
| 12 | * to deal in the Software without restriction, including without limitation |
| 13 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 14 | * and/or sell copies of the Software, and to permit persons to whom the |
| 15 | * Software is furnished to do so, subject to the following conditions: |
| 16 | * |
| 17 | * The above copyright notice and this permission notice (including the next |
| 18 | * paragraph) shall be included in all copies or substantial portions of the |
| 19 | * Software. |
| 20 | * |
| 21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 22 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 23 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 24 | * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 25 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 26 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 27 | * OTHER DEALINGS IN THE SOFTWARE. |
| 28 | * |
| 29 | * Authors: |
| 30 | * Rickard E. (Rik) Faith <faith@valinux.com> |
| 31 | * Gareth Hughes <gareth@valinux.com> |
| 32 | * |
| 33 | */ |
cg149915 | d0538f6 | 2008-01-09 19:45:15 -0800 | [diff] [blame] | 34 | /* |
miao chen - Sun Microsystems - Beijing China | d023107 | 2009-02-17 16:22:10 +0800 | [diff] [blame] | 35 | * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
cg149915 | d0538f6 | 2008-01-09 19:45:15 -0800 | [diff] [blame] | 36 | * Use is subject to license terms. |
| 37 | */ |
kz151634 | 60405de | 2006-09-28 01:41:18 -0700 | [diff] [blame] | 38 | |
kz151634 | 60405de | 2006-09-28 01:41:18 -0700 | [diff] [blame] | 39 | #include "drmP.h" |
| 40 | |
| 41 | /*ARGSUSED*/ |
| 42 | int |
| 43 | drm_adddraw(DRM_IOCTL_ARGS) |
| 44 | { |
| 45 | drm_draw_t draw; |
| 46 | |
| 47 | draw.handle = 0; /* NOOP */ |
zw161486 | e92e3a8 | 2007-05-09 19:58:49 -0700 | [diff] [blame] | 48 | DRM_DEBUG("draw.handle = %d\n", draw.handle); |
kz151634 | 60405de | 2006-09-28 01:41:18 -0700 | [diff] [blame] | 49 | |
cg149915 | d0538f6 | 2008-01-09 19:45:15 -0800 | [diff] [blame] | 50 | DRM_COPYTO_WITH_RETURN((void *)data, &draw, sizeof (draw)); |
kz151634 | 60405de | 2006-09-28 01:41:18 -0700 | [diff] [blame] | 51 | |
| 52 | return (0); |
| 53 | } |
| 54 | |
| 55 | /*ARGSUSED*/ |
| 56 | int |
| 57 | drm_rmdraw(DRM_IOCTL_ARGS) |
| 58 | { |
zw161486 | e92e3a8 | 2007-05-09 19:58:49 -0700 | [diff] [blame] | 59 | return (0); |
| 60 | } |
| 61 | |
| 62 | /*ARGSUSED*/ |
| 63 | drm_drawable_info_t * |
| 64 | drm_get_drawable_info(drm_device_t *dev, drm_drawable_t id) { |
| 65 | return (NULL); |
kz151634 | 60405de | 2006-09-28 01:41:18 -0700 | [diff] [blame] | 66 | } |
miao chen - Sun Microsystems - Beijing China | d023107 | 2009-02-17 16:22:10 +0800 | [diff] [blame] | 67 | |
| 68 | /*ARGSUSED*/ |
| 69 | int |
| 70 | drm_update_draw(DRM_IOCTL_ARGS) |
| 71 | { |
| 72 | DRM_DEBUG("drm_update_draw\n"); |
| 73 | return (0); |
| 74 | } |