Subversion Repositories Kolibri OS

Rev

Rev 5060 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5060 Rev 6084
1
/*
1
/*
2
 * Created: Fri Jan 19 10:48:35 2001 by faith@acm.org
2
 * Created: Fri Jan 19 10:48:35 2001 by faith@acm.org
3
 *
3
 *
4
 * Copyright 2001 VA Linux Systems, Inc., Sunnyvale, California.
4
 * Copyright 2001 VA Linux Systems, Inc., Sunnyvale, California.
5
 * All Rights Reserved.
5
 * All Rights Reserved.
6
 *
6
 *
7
 * Author Rickard E. (Rik) Faith 
7
 * Author Rickard E. (Rik) Faith 
8
 *
8
 *
9
 * Permission is hereby granted, free of charge, to any person obtaining a
9
 * Permission is hereby granted, free of charge, to any person obtaining a
10
 * copy of this software and associated documentation files (the "Software"),
10
 * copy of this software and associated documentation files (the "Software"),
11
 * to deal in the Software without restriction, including without limitation
11
 * to deal in the Software without restriction, including without limitation
12
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13
 * and/or sell copies of the Software, and to permit persons to whom the
13
 * and/or sell copies of the Software, and to permit persons to whom the
14
 * Software is furnished to do so, subject to the following conditions:
14
 * Software is furnished to do so, subject to the following conditions:
15
 *
15
 *
16
 * The above copyright notice and this permission notice (including the next
16
 * The above copyright notice and this permission notice (including the next
17
 * paragraph) shall be included in all copies or substantial portions of the
17
 * paragraph) shall be included in all copies or substantial portions of the
18
 * Software.
18
 * Software.
19
 *
19
 *
20
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
22
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
23
 * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23
 * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
 * DEALINGS IN THE SOFTWARE.
26
 * DEALINGS IN THE SOFTWARE.
27
 */
27
 */
-
 
28
 
-
 
29
#include 
28
 
30
#include 
29
#include 
31
#include 
30
#include 
32
#include 
31
#include 
33
#include 
32
#include 
34
#include 
-
 
35
 
33
 
36
bool drm_atomic = 0;
34
 
37
 
35
static int drm_version(struct drm_device *dev, void *data,
38
static int drm_version(struct drm_device *dev, void *data,
36
		       struct drm_file *file_priv);
39
		       struct drm_file *file_priv);
37
 
40
 
38
 
41
 
39
int drm_core_init(void)
42
int drm_core_init(void)
40
{
43
{
41
	int ret = -ENOMEM;
44
	int ret = -ENOMEM;
42
 
45
 
43
	drm_global_init();
46
	drm_global_init();
44
	drm_connector_ida_init();
47
	drm_connector_ida_init();
45
//   idr_init(&drm_minors_idr);
48
//   idr_init(&drm_minors_idr);
46
    return 0;
49
    return 0;
47
}
50
}