Subversion Repositories Kolibri OS

Rev

Rev 2327 | Rev 2332 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2327 Rev 2330
Line 26... Line 26...
26
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
 *
27
 *
28
 */
28
 */
29
 
29
 
Line -... Line 30...
-
 
30
//#include 
30
#include 
31
#include "drmP.h"
31
#include 
32
#include "drm.h"
-
 
33
#include "i915_drm.h"
-
 
34
#include "i915_drv.h"
-
 
35
#include "intel_drv.h"
-
 
36
 
Line 32... Line 37...
32
 
37
 
33
#include 
38
#include 
34
#include 
39
#include 
35
#include 
40
#include 
36
#include 
41
#include 
Line 37... Line -...
37
#include 
-
 
38
 
42
#include 
Line -... Line 43...
-
 
43
 
-
 
44
#include 
-
 
45
 
-
 
46
#define __read_mostly
-
 
47
 
39
#include "i915_drv.h"
48
 
-
 
49
int i915_panel_ignore_lid __read_mostly = 0;
40
#include 
50
 
-
 
51
unsigned int i915_powersave  __read_mostly    =  1;
41
 
52
 
-
 
53
unsigned int i915_enable_rc6 __read_mostly = 0;
42
unsigned int i915_lvds_downclock =  0;
54
 
-
 
55
unsigned int i915_enable_fbc __read_mostly = 1;
43
int i915_vbt_sdvo_panel_type     = -1;
56
 
-
 
57
unsigned int i915_lvds_downclock  __read_mostly =  0;
-
 
58
 
Line 44... Line 59...
44
unsigned int i915_panel_use_ssc  =  1;
59
unsigned int i915_panel_use_ssc __read_mostly =  1;
Line 45... Line 60...
45
unsigned int i915_powersave      =  1;
60
 
46
unsigned int i915_enable_fbc     =  1;
61
int i915_vbt_sdvo_panel_type __read_mostly    = -1;
Line 57... Line 72...
57
    .driver_data = (unsigned long) info }
72
    .driver_data = (unsigned long) info }
58
 
73
 
Line 59... Line 74...
59
static const struct intel_device_info intel_sandybridge_d_info = {
74
static const struct intel_device_info intel_sandybridge_d_info = {
60
    .gen = 6,
75
    .gen = 6,
61
    .need_gfx_hws = 1,
-
 
62
    .has_hotplug  = 1,
76
	.need_gfx_hws = 1, .has_hotplug = 1,
63
    .has_bsd_ring = 1,
77
    .has_bsd_ring = 1,
64
    .has_blt_ring = 1,
78
    .has_blt_ring = 1,
65
};
79
};
Line 66... Line 80...
66
 
80
 
67
static const struct intel_device_info intel_sandybridge_m_info = {
-
 
68
    .gen = 6,
81
static const struct intel_device_info intel_sandybridge_m_info = {
69
    .is_mobile    = 1,
-
 
70
    .need_gfx_hws = 1,
82
	.gen = 6, .is_mobile = 1,
71
    .has_hotplug  = 1,
83
	.need_gfx_hws = 1, .has_hotplug = 1,
72
    .has_fbc      = 1,
84
    .has_fbc      = 1,
73
    .has_bsd_ring = 1,
85
    .has_bsd_ring = 1,
74
    .has_blt_ring = 1,
86
    .has_blt_ring = 1,
Line 254... Line 266...
254
    spin_lock_init(&dev->count_lock);
266
    spin_lock_init(&dev->count_lock);
255
    mutex_init(&dev->struct_mutex);
267
    mutex_init(&dev->struct_mutex);
256
    mutex_init(&dev->ctxlist_mutex);
268
    mutex_init(&dev->ctxlist_mutex);
Line 257... Line -...
257
 
-
 
-
 
269
 
Line 258... Line 270...
258
//int i915_driver_load(struct drm_device *dev, unsigned long flags)
270
 
259
 
271
 
260
    ret = i915_driver_load(dev, ent->driver_data );
272
    ret = i915_driver_load(dev, ent->driver_data );