Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4104 Serge 1
/**
2
 * \file drm_drv.c
3
 * Generic driver template
4
 *
5
 * \author Rickard E. (Rik) Faith 
6
 * \author Gareth Hughes 
7
 *
8
 * To use this template, you must at least define the following (samples
9
 * given for the MGA driver):
10
 *
11
 * \code
12
 * #define DRIVER_AUTHOR	"VA Linux Systems, Inc."
13
 *
14
 * #define DRIVER_NAME		"mga"
15
 * #define DRIVER_DESC		"Matrox G200/G400"
16
 * #define DRIVER_DATE		"20001127"
17
 *
18
 * #define drm_x		mga_##x
19
 * \endcode
20
 */
21
 
22
/*
23
 * Created: Thu Nov 23 03:10:50 2000 by gareth@valinux.com
24
 *
25
 * Copyright 1999, 2000 Precision Insight, Inc., Cedar Park, Texas.
26
 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
27
 * All Rights Reserved.
28
 *
29
 * Permission is hereby granted, free of charge, to any person obtaining a
30
 * copy of this software and associated documentation files (the "Software"),
31
 * to deal in the Software without restriction, including without limitation
32
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
33
 * and/or sell copies of the Software, and to permit persons to whom the
34
 * Software is furnished to do so, subject to the following conditions:
35
 *
36
 * The above copyright notice and this permission notice (including the next
37
 * paragraph) shall be included in all copies or substantial portions of the
38
 * Software.
39
 *
40
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
43
 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
44
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46
 * OTHER DEALINGS IN THE SOFTWARE.
47
 */
48
 
49
#include 
50
#include 
51
#include 
52
#include 
53
 
54
 
55
static int drm_version(struct drm_device *dev, void *data,
56
		       struct drm_file *file_priv);
57
 
58
 
59
int drm_core_init(void)
60
{
61
	int ret = -ENOMEM;
62
 
63
	drm_global_init();
64
	drm_connector_ida_init();
65
//   idr_init(&drm_minors_idr);
66
    return 0;
67
}
68