Subversion Repositories Kolibri OS

Rev

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

Rev 3031 Rev 3033
Line 11... Line 11...
11
#include 
11
#include 
12
#include 
12
#include 
Line 13... Line 13...
13
 
13
 
Line -... Line 14...
-
 
14
#include "bitmap.h"
-
 
15
 
14
#include "bitmap.h"
16
extern struct drm_device *main_device;
Line 15... Line 17...
15
 
17
 
16
void cpu_detect();
18
void cpu_detect();
17
 
19
 
Line 140... Line 142...
140
//                       inp, io->inp_size);
142
//                       inp, io->inp_size);
141
            check_input(sizeof(videomode_t));
143
            check_input(sizeof(videomode_t));
142
            if( i915_modeset )
144
            if( i915_modeset )
143
                retval = set_user_mode((videomode_t*)inp);
145
                retval = set_user_mode((videomode_t*)inp);
144
            break;
146
            break;
145
#if 0
147
 
146
        case SRV_GET_CAPS:
148
        case SRV_GET_CAPS:
147
            retval = get_driver_caps((hwcaps_t*)inp);
149
            retval = get_driver_caps((hwcaps_t*)inp);
148
            break;
150
            break;
Line 149... Line 151...
149
 
151
 
150
        case SRV_CREATE_SURFACE:
152
        case SRV_CREATE_SURFACE:
151
//            check_input(8);
153
//            check_input(8);
152
            retval = create_surface((struct io_call_10*)inp);
154
            retval = create_surface(main_device, (struct io_call_10*)inp);
Line 153... Line 155...
153
            break;
155
            break;
154
 
156
 
155
        case SRV_LOCK_SURFACE:
157
        case SRV_LOCK_SURFACE:
Line 156... Line 158...
156
            retval = lock_surface((struct io_call_12*)inp);
158
            retval = lock_surface((struct io_call_12*)inp);
157
            break;
159
            break;
158
 
-
 
159
        case SRV_BLIT_VIDEO:
-
 
160
//            blit_video( inp[0], inp[1], inp[2],
-
 
161
//                    inp[3], inp[4], inp[5], inp[6]);
160
 
Line -... Line 161...
-
 
161
        case SRV_BLIT_VIDEO:
-
 
162
            blit_video( inp[0], inp[1], inp[2],
-
 
163
                        inp[3], inp[4], inp[5], inp[6]);
Line 162... Line 164...
162
 
164
 
163
            blit_tex( inp[0], inp[1], inp[2],
165
//            blit_tex( inp[0], inp[1], inp[2],
164
                    inp[3], inp[4], inp[5], inp[6]);
-
 
Line 165... Line 166...
165
 
166
//                    inp[3], inp[4], inp[5], inp[6]);
Line 166... Line 167...
166
 
167
 
167
            retval = 0;
168