Subversion Repositories Kolibri OS

Rev

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

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