Subversion Repositories Kolibri OS

Rev

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

Rev 6935 Rev 6937
Line 14... Line 14...
14
#include "getopt.h"
14
#include "getopt.h"
Line 15... Line 15...
15
 
15
 
16
#include "bitmap.h"
16
#include "bitmap.h"
Line 17... Line 17...
17
#include "i915_kos32.h"
17
#include "i915_kos32.h"
Line 18... Line 18...
18
 
18
 
19
#define DRV_NAME "i915 v4.4.78"
19
#define DRV_NAME "i915 v4.5.7"
20
 
20
 
Line -... Line 21...
-
 
21
#define I915_DEV_CLOSE 0
-
 
22
#define I915_DEV_INIT  1
21
#define I915_DEV_CLOSE 0
23
#define I915_DEV_READY 2
22
#define I915_DEV_INIT  1
24
 
23
#define I915_DEV_READY 2
25
int printf ( const char * format, ... );
24
 
26
 
25
static int my_atoi(char **cmd);
27
static int my_atoi(char **cmd);
Line 40... Line 42...
40
unsigned long volatile jiffies;
42
unsigned long volatile jiffies;
41
int oops_in_progress;
43
int oops_in_progress;
42
int x86_clflush_size;
44
int x86_clflush_size;
43
unsigned int tsc_khz;
45
unsigned int tsc_khz;
44
struct workqueue_struct *system_wq;
46
struct workqueue_struct *system_wq;
45
int driver_wq_state;
47
volatile int driver_wq_state;
46
struct drm_device *main_device;
48
struct drm_device *main_device;
47
struct drm_file   *drm_file_handlers[256];
49
struct drm_file   *drm_file_handlers[256];
48
videomode_t usermode;
50
videomode_t usermode;
49
extern int __getopt_initialized;
51
extern int __getopt_initialized;
Line 56... Line 58...
56
    static int dpms_lock = 0;
58
    static int dpms_lock = 0;
57
    oskey_t   key;
59
    oskey_t   key;
58
    unsigned long irqflags;
60
    unsigned long irqflags;
59
    int tmp;
61
    int tmp;
Line 60... Line -...
60
 
-
 
61
    printf("%s\n",__FUNCTION__);
-
 
62
 
62
 
63
    while(driver_wq_state == I915_DEV_INIT)
63
    while(driver_wq_state == I915_DEV_INIT)
64
    {
64
    {
65
        jiffies = GetClockNs() / 10000000;
65
        jiffies = GetClockNs() / 10000000;
66
        delay(1);
66
        delay(1);
Line 67... Line 67...
67
    };
67
    };
68
 
-
 
69
    if( driver_wq_state == I915_DEV_CLOSE)
68
 
70
    {
-
 
Line 71... Line 69...
71
        asm volatile ("int $0x40"::"a"(-1));
69
    if( driver_wq_state == I915_DEV_CLOSE)
Line 72... Line 70...
72
    };
70
        asm volatile ("int $0x40"::"a"(-1));
73
 
71