Subversion Repositories Kolibri OS

Rev

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

Rev 3480 Rev 3482
Line 51... Line 51...
51
            struct drm_file *file);
51
            struct drm_file *file);
Line 52... Line 52...
52
 
52
 
Line -... Line 53...
-
 
53
 
-
 
54
static char  log[256];
53
 
55
 
-
 
56
struct workqueue_struct *system_wq;
Line 54... Line 57...
54
static char  log[256];
57
 
Line 55... Line 58...
55
 
58
int x86_clflush_size;
56
int x86_clflush_size;
59
unsigned int tsc_khz;
Line 100... Line 103...
100
    err = RegService("DISPLAY", display_handler);
103
    err = RegService("DISPLAY", display_handler);
Line 101... Line 104...
101
 
104
 
102
    if( err != 0)
105
    if( err != 0)
Line -... Line 106...
-
 
106
        dbgprintf("Set DISPLAY handler\n");
-
 
107
 
-
 
108
    struct drm_i915_private *dev_priv = main_device->dev_private;
-
 
109
 
103
        dbgprintf("Set DISPLAY handler\n");
110
    run_workqueue(dev_priv->wq);
104
 
111
 
Line 105... Line -...
105
    return err;
-
 
106
};
-
 
107
 
-
 
108
//int __declspec(dllexport) DllMain(int, char*) __attribute__ ((weak, alias ("drvEntry")));
-
 
109
 
-
 
110
//int __declspec(dllexport) DllMain( int hinstDLL, int fdwReason, void *lpReserved )
-
 
111
//{
-
 
Line 112... Line 112...
112
//
112
    return err;
113
//    return 1;
113
};
Line 114... Line 114...
114
//}
114
 
Line 392... Line 392...
392
 
392
 
393
    if (cap0 & (1<<19))
393
    if (cap0 & (1<<19))
394
    {
394
    {
395
        x86_clflush_size = ((misc >> 8) & 0xff) * 8;
395
        x86_clflush_size = ((misc >> 8) & 0xff) * 8;
-
 
396
    }
-
 
397
 
396
    }
398
    tsc_khz = (unsigned int)(GetCpuFreq()/1000);
Line 397... Line 399...
397
}
399
}
398
 
400