Rev 6897 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6897 | Rev 8441 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | int inp_size; |
50 | int inp_size; |
51 | void *output; |
51 | void *output; |
52 | int out_size; |
52 | int out_size; |
53 | }ioctl_t; |
53 | }ioctl_t; |
Line -... | Line 54... | ||
- | 54 | ||
- | 55 | #pragma pack(push, 1) |
|
- | 56 | struct proc_info |
|
- | 57 | { |
|
- | 58 | unsigned long cpu_usage; |
|
- | 59 | unsigned short pos_in_stack; |
|
- | 60 | unsigned short slot; |
|
- | 61 | unsigned short reserved2; |
|
- | 62 | char name[12]; |
|
- | 63 | unsigned long address; |
|
- | 64 | unsigned long memory_usage; |
|
- | 65 | unsigned long ID; |
|
- | 66 | unsigned long left,top; |
|
- | 67 | unsigned long width,height; |
|
- | 68 | unsigned short thread_state; |
|
- | 69 | unsigned short reserved3; |
|
- | 70 | unsigned long cleft, ctop, cwidth, cheight; |
|
- | 71 | unsigned char window_state; |
|
- | 72 | unsigned char reserved4[1024-71]; |
|
- | 73 | }; |
|
- | 74 | #pragma pack(pop) |
|
- | 75 | ||
- | 76 | struct kolibri_system_colors { |
|
- | 77 | color_t frame_area; |
|
- | 78 | color_t grab_bar; |
|
- | 79 | color_t grab_bar_button; |
|
- | 80 | color_t grab_button_text; |
|
- | 81 | color_t grab_text; |
|
- | 82 | color_t work_area; |
|
- | 83 | color_t work_button; |
|
- | 84 | color_t work_button_text; |
|
- | 85 | color_t work_text; |
|
- | 86 | color_t work_graph; |
|
- | 87 | }; |
|
54 | 88 | ||
55 | static inline void begin_draw(void) |
89 | static inline void begin_draw(void) |
56 | { |
90 | { |
57 | __asm__ __volatile__( |
91 | __asm__ __volatile__( |
58 | "int $0x40" ::"a"(12),"b"(1)); |
92 | "int $0x40" ::"a"(12),"b"(1)); |
Line 476... | Line 510... | ||
476 | :"=a"(retval) |
510 | :"=a"(retval) |
477 | :"a"(61), "b"(1)); |
511 | :"a"(61), "b"(1)); |
478 | return retval; |
512 | return retval; |
479 | } |
513 | } |
Line -... | Line 514... | ||
- | 514 | ||
- | 515 | static inline void get_system_colors(struct kolibri_system_colors *color_table) |
|
- | 516 | { |
|
- | 517 | __asm__ volatile ("int $0x40" |
|
- | 518 | : |
|
- | 519 | :"a"(48),"b"(3),"c"(color_table),"d"(40) |
|
- | 520 | ); |
|
Line 480... | Line 521... | ||
480 | 521 | } |
|
481 | 522 | ||
482 | static inline void get_proc_info(char *info) |
523 | static inline void get_proc_info(char *info) |
483 | { |
524 | { |