Rev 5352 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5352 | Rev 6282 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | typedef struct tag_display display_t; |
- | |
- | 1 | typedef struct tag_object kobj_t; |
|
2 | 2 | typedef struct tag_display display_t; |
|
Line -... | Line 3... | ||
- | 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 | }; |
|
3 | typedef struct |
12 | |
4 | { |
13 | typedef struct |
5 | kobj_t header; |
14 | { |
Line 6... | Line 15... | ||
6 | 15 | kobj_t header; |
|
Line 14... | Line 23... | ||
14 | 23 | }cursor_t; |
|
Line 15... | Line 24... | ||
15 | #define KMS_CURSOR_WIDTH 64 |
24 | |
16 | #define KMS_CURSOR_HEIGHT 64 |
25 | #define KMS_CURSOR_WIDTH 64 |
Line -... | Line 26... | ||
- | 26 | #define KMS_CURSOR_HEIGHT 64 |
|
- | 27 | ||
- | 28 | struct kos_framebuffer |
|
- | 29 | { |
|
- | 30 | struct list_head list; |
|
- | 31 | uint32_t magic; |
|
- | 32 | uint32_t handle; |
|
- | 33 | void *destructor; |
|
- | 34 | ||
- | 35 | uint32_t width; |
|
- | 36 | uint32_t height; |
|
- | 37 | uint32_t pitch; |
|
- | 38 | uint32_t format; |
|
- | 39 | void *private; |
|
- | 40 | uint32_t pde[8]; |
|
17 | 41 | }; |
|
18 | struct tag_display |
42 | |
19 | { |
43 | struct tag_display |
20 | u32 x; |
44 | { |
21 | u32 y; |
45 | u32 x; |
22 | u32 width; |
46 | u32 y; |
23 | u32 height; |
47 | u32 width; |
24 | u32 bpp; |
48 | u32 height; |
25 | u32 vrefresh; |
49 | u32 bpp; |
26 | void *lfb; |
50 | u32 vrefresh; |
Line 27... | Line 51... | ||
27 | u32 lfb_pitch; |
51 | struct kos_framebuffer *current_lfb; |
28 | 52 | u32 lfb_pitch; |
|
29 | struct rw_semaphore win_map_lock; |
53 | |
Line 53... | Line 77... | ||
53 | }; |
77 | u32 bytes_per_pixel; |
54 | 78 | }; |
|
Line 55... | Line 79... | ||
55 | extern display_t *os_display; |
79 | |
Line 56... | Line -... | ||
56 | - | ||
57 | int init_cursor(cursor_t *cursor); |
- | |
- | 80 | extern display_t *os_display; |