160405de4Skz151634 /*
260405de4Skz151634 * drm_drawable.h -- IOCTLs for drawables -*- linux-c -*-
360405de4Skz151634 * Created: Tue Feb 2 08:37:54 1999 by faith@valinux.com
460405de4Skz151634 */
560405de4Skz151634 /*
660405de4Skz151634 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
760405de4Skz151634 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
860405de4Skz151634 * All Rights Reserved.
960405de4Skz151634 *
1060405de4Skz151634 * Permission is hereby granted, free of charge, to any person obtaining a
1160405de4Skz151634 * copy of this software and associated documentation files (the "Software"),
1260405de4Skz151634 * to deal in the Software without restriction, including without limitation
1360405de4Skz151634 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1460405de4Skz151634 * and/or sell copies of the Software, and to permit persons to whom the
1560405de4Skz151634 * Software is furnished to do so, subject to the following conditions:
1660405de4Skz151634 *
1760405de4Skz151634 * The above copyright notice and this permission notice (including the next
1860405de4Skz151634 * paragraph) shall be included in all copies or substantial portions of the
1960405de4Skz151634 * Software.
2060405de4Skz151634 *
2160405de4Skz151634 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2260405de4Skz151634 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2360405de4Skz151634 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2460405de4Skz151634 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
2560405de4Skz151634 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2660405de4Skz151634 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2760405de4Skz151634 * OTHER DEALINGS IN THE SOFTWARE.
2860405de4Skz151634 *
2960405de4Skz151634 * Authors:
3060405de4Skz151634 * Rickard E. (Rik) Faith <faith@valinux.com>
3160405de4Skz151634 * Gareth Hughes <gareth@valinux.com>
3260405de4Skz151634 *
3360405de4Skz151634 */
34d0538f66Scg149915 /*
35*d0231070Smiao chen - Sun Microsystems - Beijing China * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
36d0538f66Scg149915 * Use is subject to license terms.
37d0538f66Scg149915 */
3860405de4Skz151634
3960405de4Skz151634 #include "drmP.h"
4060405de4Skz151634
4160405de4Skz151634 /*ARGSUSED*/
4260405de4Skz151634 int
drm_adddraw(DRM_IOCTL_ARGS)4360405de4Skz151634 drm_adddraw(DRM_IOCTL_ARGS)
4460405de4Skz151634 {
4560405de4Skz151634 drm_draw_t draw;
4660405de4Skz151634
4760405de4Skz151634 draw.handle = 0; /* NOOP */
48e92e3a86Szw161486 DRM_DEBUG("draw.handle = %d\n", draw.handle);
4960405de4Skz151634
50d0538f66Scg149915 DRM_COPYTO_WITH_RETURN((void *)data, &draw, sizeof (draw));
5160405de4Skz151634
5260405de4Skz151634 return (0);
5360405de4Skz151634 }
5460405de4Skz151634
5560405de4Skz151634 /*ARGSUSED*/
5660405de4Skz151634 int
drm_rmdraw(DRM_IOCTL_ARGS)5760405de4Skz151634 drm_rmdraw(DRM_IOCTL_ARGS)
5860405de4Skz151634 {
59e92e3a86Szw161486 return (0);
60e92e3a86Szw161486 }
61e92e3a86Szw161486
62e92e3a86Szw161486 /*ARGSUSED*/
63e92e3a86Szw161486 drm_drawable_info_t *
drm_get_drawable_info(drm_device_t * dev,drm_drawable_t id)64e92e3a86Szw161486 drm_get_drawable_info(drm_device_t *dev, drm_drawable_t id) {
65e92e3a86Szw161486 return (NULL);
6660405de4Skz151634 }
67*d0231070Smiao chen - Sun Microsystems - Beijing China
68*d0231070Smiao chen - Sun Microsystems - Beijing China /*ARGSUSED*/
69*d0231070Smiao chen - Sun Microsystems - Beijing China int
drm_update_draw(DRM_IOCTL_ARGS)70*d0231070Smiao chen - Sun Microsystems - Beijing China drm_update_draw(DRM_IOCTL_ARGS)
71*d0231070Smiao chen - Sun Microsystems - Beijing China {
72*d0231070Smiao chen - Sun Microsystems - Beijing China DRM_DEBUG("drm_update_draw\n");
73*d0231070Smiao chen - Sun Microsystems - Beijing China return (0);
74*d0231070Smiao chen - Sun Microsystems - Beijing China }
75