Subversion Repositories Kolibri OS

Rev

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

Rev 2352 Rev 2360
Line 38... Line 38...
38
#include 
38
#include 
39
//#include 
39
//#include 
Line 40... Line 40...
40
 
40
 
Line -... Line 41...
-
 
41
#include 
41
#include 
42
 
42
 
43
 
Line 43... Line 44...
43
/* General customization:
44
/* General customization:
Line 327... Line 328...
327
	u32 irq_mask;
328
	u32 irq_mask;
328
	u32 gt_irq_mask;
329
	u32 gt_irq_mask;
329
	u32 pch_irq_mask;
330
	u32 pch_irq_mask;
Line 330... Line 331...
330
 
331
 
331
	u32 hotplug_supported_mask;
332
	u32 hotplug_supported_mask;
Line 332... Line 333...
332
//   struct work_struct hotplug_work;
333
	struct work_struct hotplug_work;
333
 
334
 
334
	int tex_lru_log_granularity;
335
	int tex_lru_log_granularity;
335
	int allow_batchbuffer;
336
	int allow_batchbuffer;
Line 396... Line 397...
396
 
397
 
Line 397... Line 398...
397
	unsigned int fsb_freq, mem_freq, is_ddr3;
398
	unsigned int fsb_freq, mem_freq, is_ddr3;
398
 
399
 
399
	spinlock_t error_lock;
400
	spinlock_t error_lock;
400
//   struct drm_i915_error_state *first_error;
401
//	struct drm_i915_error_state *first_error;
401
//   struct work_struct error_work;
402
	struct work_struct error_work;
Line 402... Line 403...
402
//   struct completion error_completion;
403
//	struct completion error_completion;
403
//   struct workqueue_struct *wq;
404
    struct workqueue_struct *wq;
Line 404... Line 405...
404
 
405
 
Line 640... Line 641...
640
		 * but this means that requests will finish and never
641
		 * but this means that requests will finish and never
641
		 * be retired once the system goes idle. Set a timer to
642
		 * be retired once the system goes idle. Set a timer to
642
		 * fire periodically while the ring is running. When it
643
		 * fire periodically while the ring is running. When it
643
		 * fires, go retire requests.
644
		 * fires, go retire requests.
644
		 */
645
		 */
645
//       struct delayed_work retire_work;
646
		struct delayed_work retire_work;
Line 646... Line 647...
646
 
647
 
647
		/**
648
		/**
648
		 * Are we in a non-interruptible section of code like
649
		 * Are we in a non-interruptible section of code like
649
		 * modesetting?
650
		 * modesetting?
Line 697... Line 698...
697
	/* Reclocking support */
698
	/* Reclocking support */
698
	bool render_reclock_avail;
699
	bool render_reclock_avail;
699
	bool lvds_downclock_avail;
700
	bool lvds_downclock_avail;
700
	/* indicates the reduced downclock for LVDS*/
701
	/* indicates the reduced downclock for LVDS*/
701
	int lvds_downclock;
702
	int lvds_downclock;
702
//   struct work_struct idle_work;
703
	struct work_struct idle_work;
703
    struct timer_list idle_timer;
704
    struct timer_list idle_timer;
704
	bool busy;
705
	bool busy;
705
	u16 orig_clock;
706
	u16 orig_clock;
706
	int child_dev_num;
707
	int child_dev_num;
707
    struct child_device_config *child_dev;
708
    struct child_device_config *child_dev;
708
    struct drm_connector *int_lvds_connector;
709
    struct drm_connector *int_lvds_connector;
709
    struct drm_connector *int_edp_connector;
710
    struct drm_connector *int_edp_connector;
Line 710... Line 711...
710
 
711
 
Line 711... Line 712...
711
	bool mchbar_need_disable;
712
	bool mchbar_need_disable;
712
 
713
 
713
//   struct work_struct rps_work;
714
	struct work_struct rps_work;
Line 714... Line 715...
714
	spinlock_t rps_lock;
715
	spinlock_t rps_lock;
715
	u32 pm_iir;
716
	u32 pm_iir;
Line 1414... Line 1415...
1414
  int height;
1415
  int height;
1415
  int bpp;
1416
  int bpp;
1416
  int freq;
1417
  int freq;
1417
}videomode_t;
1418
}videomode_t;
Line -... Line 1419...
-
 
1419
 
-
 
1420
 
-
 
1421
static inline int mutex_trylock(struct mutex *lock)
-
 
1422
{
-
 
1423
    if (likely(atomic_cmpxchg(&lock->count, 1, 0) == 1))
-
 
1424
        return 1;
-
 
1425
    return 0;
-
 
1426
}
-
 
1427
 
-
 
1428
 
-
 
1429
 
-
 
1430
 
-
 
1431
 
-
 
1432
 
1418
 
1433