Subversion Repositories Kolibri OS

Rev

Rev 1179 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1179 Rev 1246
-
 
1
typedef struct tag_object  kobj_t;
-
 
2
typedef struct tag_display display_t;
-
 
3
 
-
 
4
struct tag_object
-
 
5
{
-
 
6
    uint32_t   magic;
-
 
7
    void      *destroy;
-
 
8
    kobj_t    *fd;
-
 
9
    kobj_t    *bk;
-
 
10
    uint32_t   pid;
-
 
11
};
1
typedef struct
12
 
2
{
13
typedef struct
3
    u32_t   width;
14
{
4
    u32_t   height;
15
    kobj_t     header;
-
 
16
 
-
 
17
    uint32_t  *data;
5
    u32_t   bpp;
18
    uint32_t   hot_x;
6
 
19
    uint32_t   hot_y;
7
    u32_t   lfb;
20
 
-
 
21
    struct list_head      list;
-
 
22
    struct radeon_object *robj;
-
 
23
}cursor_t;
-
 
24
 
-
 
25
#define CURSOR_WIDTH 64
-
 
26
#define CURSOR_HEIGHT 64
-
 
27
 
8
    u32_t   pci_fb;
28
struct tag_display
-
 
29
{
-
 
30
    int  x;
-
 
31
    int  y;
-
 
32
    int  width;
-
 
33
    int  height;
-
 
34
    int  bpp;
9
    u32_t   gpu_fb;
35
    int  vrefresh;
-
 
36
    int  pitch;
10
    u32_t   fb_object;
37
    int  lfb;
11
 
38
 
-
 
39
    int  supported_modes;
12
    struct drm_display_mode *mode;
40
    struct drm_device    *ddev;
-
 
41
    struct drm_connector *connector;
-
 
42
    struct drm_crtc      *crtc;
-
 
43
 
-
 
44
    struct list_head   cursors;
-
 
45
 
13
    cursor_t   *cursor;
-
 
14
 
46
    cursor_t   *cursor;
-
 
47
    int       (*init_cursor)(cursor_t*);
-
 
48
    cursor_t* (__stdcall *select_cursor)(cursor_t*);
-
 
49
    void      (*show_cursor)(int show);
-
 
50
    void      (__stdcall *move_cursor)(cursor_t *cursor, int x, int y);
-
 
51
    void      (__stdcall *restore_cursor)(int x, int y);
15
    int     (*set_cursor)();
52
 
16
    int     (*show_cursor)();
-
 
17
    int     (*hide_cursor)();
-
 
18
    int     (*move_cursor)();
-
 
19
 
-
 
20
    int     (*copy)();
53
};
21
    int     (*blit)();
54
 
-
 
55
extern display_t *rdisplay;
22
 
56
 
23
}display_t;
57
int   init_cursor(cursor_t *cursor);
-
 
58
void  __stdcall restore_cursor(int x, int y);