Rev 5865 | Rev 6244 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5865 | Rev 6079 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | ;; maintain and compile with an automated SETUP program ;; |
11 | ;; maintain and compile with an automated SETUP program ;; |
12 | ;; in the future. ;; |
12 | ;; in the future. ;; |
13 | ;; ;; |
13 | ;; ;; |
14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 15... | Line 15... | ||
15 | 15 | ||
16 | $Revision: 5865 $ |
- | |
17 | - | ||
18 | struct POINT |
- | |
19 | x dd ? |
- | |
20 | y dd ? |
- | |
21 | ends |
- | |
22 | - | ||
23 | struct RECT |
- | |
24 | left dd ? |
- | |
25 | top dd ? |
- | |
26 | right dd ? |
- | |
27 | bottom dd ? |
- | |
28 | ends |
- | |
29 | - | ||
30 | struct BOX |
- | |
31 | left dd ? |
- | |
32 | top dd ? |
- | |
33 | width dd ? |
- | |
34 | height dd ? |
- | |
35 | ends |
- | |
36 | - | ||
37 | struct DISPMODE |
- | |
38 | width dw ? |
- | |
39 | height dw ? |
- | |
40 | bpp dw ? |
- | |
41 | freq dw ? |
- | |
42 | ends |
- | |
43 | - | ||
44 | ; constants definition |
- | |
45 | WSTATE_NORMAL = 00000000b |
- | |
46 | WSTATE_MAXIMIZED = 00000001b |
- | |
47 | WSTATE_MINIMIZED = 00000010b |
- | |
48 | WSTATE_ROLLEDUP = 00000100b |
- | |
49 | - | ||
50 | WSTATE_REDRAW = 00000001b |
- | |
51 | WSTATE_WNDDRAWN = 00000010b |
- | |
52 | - | ||
53 | WSTYLE_HASCAPTION = 00010000b |
- | |
54 | WSTYLE_CLIENTRELATIVE = 00100000b |
- | |
55 | - | ||
56 | struct TASKDATA |
- | |
57 | event_mask dd ? |
- | |
58 | pid dd ? |
- | |
59 | dw ? |
- | |
60 | state db ? |
- | |
61 | db ? |
- | |
62 | dw ? |
- | |
63 | wnd_number db ? |
- | |
64 | db ? |
- | |
65 | mem_start dd ? |
- | |
66 | counter_sum dd ? |
- | |
67 | counter_add dd ? |
- | |
68 | cpu_usage dd ? |
- | |
69 | ends |
- | |
70 | - | ||
71 | TSTATE_RUNNING = 0 |
- | |
72 | TSTATE_RUN_SUSPENDED = 1 |
- | |
73 | TSTATE_WAIT_SUSPENDED = 2 |
- | |
74 | TSTATE_ZOMBIE = 3 |
- | |
75 | TSTATE_TERMINATING = 4 |
- | |
76 | TSTATE_WAITING = 5 |
- | |
77 | TSTATE_FREE = 9 |
- | |
78 | - | ||
79 | ZPOS_DESKTOP = -2 |
- | |
80 | ZPOS_ALWAYS_BACK = -1 |
- | |
81 | ZPOS_NORMAL = 0 |
- | |
82 | ZPOS_ALWAYS_TOP = 1 ;ZPOS_ALWAYS_TOP is always last and has max number! |
- | |
83 | ; structures definition |
- | |
84 | struct WDATA |
- | |
85 | box BOX |
- | |
86 | cl_workarea dd ? |
- | |
87 | cl_titlebar dd ? |
- | |
88 | cl_frames dd ? |
- | |
89 | z_modif db ? |
- | |
90 | fl_wstate db ? |
- | |
91 | fl_wdrawn db ? |
- | |
92 | fl_redraw db ? |
- | |
93 | ends |
- | |
94 | - | ||
95 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
- | |
96 | - | ||
97 | struct DBG_REGS |
- | |
98 | dr0 dd ? |
- | |
99 | dr1 dd ? |
- | |
100 | dr2 dd ? |
- | |
101 | dr3 dd ? |
- | |
102 | dr7 dd ? |
- | |
103 | ends |
- | |
104 | - | ||
105 | struct PROC |
- | |
106 | list LHEAD |
- | |
107 | thr_list LHEAD |
- | |
108 | heap_lock MUTEX |
- | |
109 | heap_base rd 1 |
- | |
110 | heap_top rd 1 |
- | |
111 | mem_used rd 1 |
- | |
112 | dlls_list_ptr rd 1 |
- | |
113 | pdt_0_phys rd 1 |
- | |
114 | pdt_1_phys rd 1 |
- | |
115 | io_map_0 rd 1 |
- | |
116 | io_map_1 rd 1 |
- | |
117 | - | ||
118 | ht_lock rd 1 |
- | |
119 | ht_free rd 1 ;htab[0] stdin |
- | |
120 | ht_next rd 1 ;htab[1] stdout |
- | |
121 | htab rd (4096-$)/4 ;htab[2] stderr |
- | |
122 | pdt_0 rd 1024 |
- | |
123 | ends |
- | |
124 | - | ||
125 | struct APPDATA |
- | |
126 | app_name rb 11 |
- | |
127 | rb 5 |
- | |
128 | - | ||
129 | list LHEAD ;+16 |
- | |
130 | process dd ? ;+24 |
- | |
131 | fpu_state dd ? ;+28 |
- | |
132 | exc_handler dd ? ;+32 |
- | |
133 | except_mask dd ? ;+36 |
- | |
134 | pl0_stack dd ? ;+40 |
- | |
135 | cursor dd ? ;+44 |
- | |
136 | fd_ev dd ? ;+48 |
- | |
137 | bk_ev dd ? ;+52 |
- | |
138 | fd_obj dd ? ;+56 |
- | |
139 | bk_obj dd ? ;+60 |
- | |
140 | saved_esp dd ? ;+64 |
- | |
141 | io_map rd 2 ;+68 |
- | |
142 | dbg_state dd ? ;+76 |
- | |
143 | cur_dir dd ? ;+80 |
- | |
144 | wait_timeout dd ? ;+84 |
- | |
145 | saved_esp0 dd ? ;+88 |
- | |
146 | wait_begin dd ? ;+92 +++ |
- | |
147 | wait_test dd ? ;+96 +++ |
- | |
148 | wait_param dd ? ;+100 +++ |
- | |
149 | tls_base dd ? ;+104 |
- | |
150 | dd ? ;+108 |
- | |
151 | event_filter dd ? ;+112 |
- | |
152 | draw_bgr_x dd ? ;+116 |
- | |
153 | draw_bgr_y dd ? ;+120 |
- | |
154 | dd ? ;+124 |
- | |
155 | - | ||
156 | wnd_shape dd ? ;+128 |
- | |
157 | wnd_shape_scale dd ? ;+132 |
- | |
158 | dd ? ;+136 |
- | |
159 | dd ? ;+140 |
- | |
160 | saved_box BOX ;+144 |
- | |
161 | ipc_start dd ? ;+160 |
- | |
162 | ipc_size dd ? ;+164 |
- | |
163 | event_mask dd ? ;+168 |
- | |
164 | debugger_slot dd ? ;+172 |
- | |
165 | terminate_protection dd ? ;+176 |
- | |
166 | keyboard_mode db ? ;+180 |
- | |
167 | rb 3 |
- | |
168 | dd ? ;+184 |
- | |
169 | dbg_event_mem dd ? ;+188 |
- | |
170 | dbg_regs DBG_REGS ;+192 |
- | |
171 | wnd_caption dd ? ;+212 |
- | |
172 | wnd_clientbox BOX ;+216 |
- | |
173 | priority dd ? ;+232 |
- | |
174 | in_schedule LHEAD ;+236 |
- | |
175 | - | ||
176 | ends |
- | |
177 | - | ||
178 | struct IDE_DATA |
- | |
179 | ProgrammingInterface dd ? |
- | |
180 | Interrupt dw ? |
- | |
181 | RegsBaseAddres dw ? |
- | |
182 | BAR0_val dw ? |
- | |
183 | BAR1_val dw ? |
- | |
184 | BAR2_val dw ? |
- | |
185 | BAR3_val dw ? |
- | |
186 | dma_hdd_channel_1 db ? |
- | |
187 | dma_hdd_channel_2 db ? |
- | |
188 | ends |
- | |
189 | - | ||
190 | struct IDE_CACHE |
- | |
191 | pointer dd ? |
- | |
192 | size dd ? ; not use |
- | |
193 | data_pointer dd ? |
- | |
194 | system_data_size dd ? ; not use |
- | |
195 | appl_data_size dd ? ; not use |
- | |
196 | system_data dd ? |
- | |
197 | appl_data dd ? |
- | |
198 | system_sad_size dd ? |
- | |
199 | appl_sad_size dd ? |
- | |
200 | search_start dd ? |
- | |
201 | appl_search_start dd ? |
- | |
202 | ends |
- | |
203 | - | ||
204 | struct IDE_DEVICE |
- | |
205 | UDMA_possible_modes db ? |
- | |
206 | UDMA_set_mode db ? |
- | |
Line 207... | Line 16... | ||
207 | ends |
16 | $Revision: 6079 $ |
208 | 17 | ||
209 | ; Core functions |
18 | ; Core functions |
210 | include "core/sync.inc" ; macros for synhronization objects |
19 | include "core/sync.inc" ; macros for synhronization objects |