1235783Skib/**
2235783Skib * \file drm_stub.h
3235783Skib * Stub support
4235783Skib *
5235783Skib * \author Rickard E. (Rik) Faith <faith@valinux.com>
6235783Skib */
7235783Skib
8235783Skib/*
9235783Skib * Created: Fri Jan 19 10:48:35 2001 by faith@acm.org
10235783Skib *
11235783Skib * Copyright 2001 VA Linux Systems, Inc., Sunnyvale, California.
12235783Skib * All Rights Reserved.
13235783Skib *
14235783Skib * Permission is hereby granted, free of charge, to any person obtaining a
15235783Skib * copy of this software and associated documentation files (the "Software"),
16235783Skib * to deal in the Software without restriction, including without limitation
17235783Skib * the rights to use, copy, modify, merge, publish, distribute, sublicense,
18235783Skib * and/or sell copies of the Software, and to permit persons to whom the
19235783Skib * Software is furnished to do so, subject to the following conditions:
20235783Skib *
21235783Skib * The above copyright notice and this permission notice (including the next
22235783Skib * paragraph) shall be included in all copies or substantial portions of the
23235783Skib * Software.
24235783Skib *
25235783Skib * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26235783Skib * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27235783Skib * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
28235783Skib * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
29235783Skib * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
30235783Skib * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
31235783Skib * DEALINGS IN THE SOFTWARE.
32235783Skib */
33235783Skib
34235783Skib#include <sys/cdefs.h>
35235783Skib__FBSDID("$FreeBSD$");
36235783Skib
37235783Skib#include "drmP.h"
38235783Skib
39235783Skibint
40235783Skibdrm_setmaster_ioctl(struct drm_device *dev, void *data,
41235783Skib    struct drm_file *file_priv)
42235783Skib{
43235783Skib
44235783Skib	DRM_DEBUG("setmaster\n");
45235783Skib
46235783Skib	if (file_priv->master != 0)
47235783Skib		return (0);
48235783Skib	return (-EPERM);
49235783Skib}
50235783Skib
51235783Skibint
52235783Skibdrm_dropmaster_ioctl(struct drm_device *dev, void *data,
53235783Skib    struct drm_file *file_priv)
54235783Skib{
55235783Skib
56235783Skib	DRM_DEBUG("dropmaster\n");
57235783Skib	if (file_priv->master != 0)
58235783Skib		return (-EINVAL);
59235783Skib	return (0);
60235783Skib}
61