Subversion Repositories Kolibri OS

Rev

Rev 521 | Rev 531 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
425 victor 1
$Revision: 530 $
431 serge 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
465 serge 3
;;                                                            ;;
431 serge 4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
465 serge 7
;; KERNEL32.INC                                               ;;
8
;;                                                            ;;
9
;; Included 32 bit kernel files for MenuetOS                  ;;
10
;;                                                            ;;
11
;; This file is kept separate as it will be easier to         ;;
12
;; maintain and compile with an automated SETUP program       ;;
13
;; in the future.                                             ;;
14
;;                                                            ;;
431 serge 15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1 ha 16
 
373 mikedld 17
;struc db [a] { common . db a
18
;  if ~used .
19
;    display 'not used db: ',`.,13,10
20
;  end if }
21
;struc dw [a] { common . dw a
22
;  if ~used .
23
;    display 'not used dw: ',`.,13,10
24
;  end if }
25
;struc dd [a] { common . dd a
26
;  if ~used .
27
;    display 'not used dd: ',`.,13,10
28
;  end if }
29
;struc dp [a] { common . dp a
30
;  if ~used .
31
;    display 'not used dp: ',`.,13,10
32
;  end if }
33
;struc dq [a] { common . dq a
34
;  if ~used .
35
;    display 'not used dq: ',`.,13,10
36
;  end if }
37
;struc dt [a] { common . dt a
38
;  if ~used .
39
;    display 'not used dt: ',`.,13,10
40
;  end if }
41 mikedld 41
 
42
struc RECT {
43
  .left   dd ?
465 serge 44
  .top    dd ?
41 mikedld 45
  .right  dd ?
46
  .bottom dd ?
47
}
48
virtual at 0
49
 RECT RECT
50
end virtual
51
 
52
struc BOX {
53
  .left   dd ?
465 serge 54
  .top    dd ?
41 mikedld 55
  .width  dd ?
56
  .height dd ?
57
}
58
virtual at 0
59
 BOX BOX
60
end virtual
61
 
114 mikedld 62
; constants definition
465 serge 63
WSTATE_NORMAL    = 00000000b
114 mikedld 64
WSTATE_MAXIMIZED = 00000001b
65
WSTATE_MINIMIZED = 00000010b
66
WSTATE_ROLLEDUP  = 00000100b
67
 
68
WSTATE_REDRAW	 = 00000001b
69
WSTATE_WNDDRAWN  = 00000010b
70
 
71
WSTYLE_HASCAPTION     = 00010000b
72
WSTYLE_CLIENTRELATIVE = 00100000b
73
 
115 poddubny 74
struc TASKDATA
114 mikedld 75
{
76
  .event_mask  dd ?
77
  .pid	       dd ?
78
	       dw ?
115 poddubny 79
  .state       db ?
465 serge 80
               db ?
114 mikedld 81
	       dw ?
82
  .wnd_number  db ?
83
	       db ?
84
  .mem_start   dd ?
85
  .counter_sum dd ?
86
  .counter_add dd ?
87
  .cpu_usage   dd ?
88
}
89
virtual at 0
115 poddubny 90
 TASKDATA TASKDATA
114 mikedld 91
end virtual
92
 
93
; structures definition
94
struc WDATA {
95
  .box		   BOX
96
  .cl_workarea	   dd ?
97
  .cl_titlebar	   dd ?
98
  .cl_frames	   dd ?
99
  .reserved	   db ?
100
  .fl_wstate	   db ?
101
  .fl_wdrawn	   db ?
102
  .fl_redraw	   db ?
103
}
104
virtual at 0
105
 WDATA WDATA
106
end virtual
107
label WDATA.fl_wstyle byte at 0x13
108
 
109
struc APPDATA
110
{
111
  .app_name	   db 11  dup(?)
112
		   db 5   dup(?)
164 serge 113
 
465 serge 114
  .fpu_state       dd ?            ;+16
115
  .ev_count        dd ?            ;+20
116
  .fpu_handler     dd ?            ;+24
117
  .sse_handler     dd ?            ;+28
118
  .pl0_stack       dd ? ;unused    ;+32
119
  .heap_base       dd ?            ;+36
120
  .heap_top        dd ?            ;+40
121
  .cursor          dd ?            ;+44
122
  .fd_ev           dd ?            ;+48
123
  .bk_ev           dd ?            ;+52
124
  .fd_obj          dd ?            ;+56
125
  .bk_obj          dd ?            ;+60
126
  .saved_esp       dd ?            ;+64
127
  .io_map          rd 2            ;+68
128
  .dbg_state       dd ?            ;+76
521 diamond 129
  .cur_dir         dd ?            ;+80
164 serge 130
 
521 diamond 131
                   db 44 dup(?)    ;+84
164 serge 132
 
465 serge 133
  .wnd_shape       dd ?            ;+128
134
  .wnd_shape_scale dd ?            ;+132
135
                   dd ?            ;+136
136
  .mem_size        dd ?            ;+140
114 mikedld 137
  .saved_box	   BOX
138
  .ipc_start	   dd ?
139
  .ipc_size	   dd ?
140
  .event_mask	   dd ?
141
  .debugger_slot   dd ?
115 poddubny 142
		   dd ?
114 mikedld 143
  .keyboard_mode   db ?
144
		   db 3   dup(?)
145
  .dir_table	   dd ?
146
  .dbg_event_mem   dd ?
147
  .dbg_regs:
148
  .dbg_regs.dr0    dd ?
149
  .dbg_regs.dr1    dd ?
150
  .dbg_regs.dr2    dd ?
151
  .dbg_regs.dr3    dd ?
152
  .dbg_regs.dr7    dd ?
153
  .wnd_caption	   dd ?
154
  .wnd_clientbox   BOX
155
}
156
virtual at 0
157
 APPDATA APPDATA
158
end virtual
159
 
41 mikedld 160
;// mike.dld, 2006-29-01 ]
161
 
162
 
1 ha 163
; Core functions
114 mikedld 164
include "core/sync.inc"     ; macros for synhronization objects
1 ha 165
include "core/sys32.inc"    ; process management
166
include "core/sched.inc"    ; process scheduling
167
include "core/syscall.inc"  ; system call
465 serge 168
include "core/fpu.inc"      ; all fpu/sse support
164 serge 169
include "core/memory.inc"
214 serge 170
include "core/heap.inc"     ; kernel and app heap
276 serge 171
include "core/malloc.inc"   ; small kernel heap
164 serge 172
include "core/taskman.inc"
173
include "core/dll.inc"
174
include "core/exports.inc"
519 serge 175
include "core/string.inc"
1 ha 176
 
177
; GUI stuff
178
include "gui/window.inc"
179
include "gui/event.inc"
180
include "gui/font.inc"
181
include "gui/button.inc"
182
 
183
; shutdown
184
 
185
; file system
186
 
465 serge 187
include "fs/fs.inc"       ; syscall
188
include "fs/fat32.inc"    ; read / write for fat32 filesystem
189
include "fs/ntfs.inc"     ; read / write for ntfs filesystem
190
include "fs/fat12.inc"    ; read / write for fat12 filesystem
70 mario79 191
include "blkdev/rd.inc"   ; ramdisk read /write
73 diamond 192
include "fs/fs_lfn.inc"    ; syscall, version 2
87 mario79 193
include "fs/iso9660.inc"  ; read for iso9660 filesystem CD
1 ha 194
 
195
; sound
196
 
197
include "sound/sb16.inc"     ; playback for Sound Blaster 16
198
include "sound/playnote.inc" ; player Note for Speaker PC
199
 
200
; display
201
 
202
include "video/vesa12.inc"   ; Vesa 1.2 functions
203
include "video/vesa20.inc"   ; Vesa 2.0 functions
204
include "video/vga.inc"      ; VGA 16 color functions
221 serge 205
include "video/cursors.inc"  ; cursors functions
1 ha 206
 
207
; Network Interface & TCPIP Stack
208
 
209
include "network/stack.inc"
210
 
465 serge 211
;include "drivers/uart.inc"
212
 
213
 
1 ha 214
; Mouse pointer
215
 
216
include "gui/mouse.inc"
217
 
218
; Window skinning
219
 
220
include "gui/skincode.inc"
221
 
222
; Pci functions
223
 
224
include "bus/pci/pci32.inc"
225
 
226
; Floppy drive controller
227
 
228
include "blkdev/fdc.inc"
229
include "blkdev/flp_drv.inc"
230
 
160 diamond 231
; HD drive controller
232
include "blkdev/hd_drv.inc"
233
 
1 ha 234
; CD drive controller
235
 
236
include "blkdev/cdrom.inc"
87 mario79 237
include "blkdev/cd_drv.inc"
1 ha 238
 
239
; Character devices
240
 
241
include "hid/keyboard.inc"
33 mario79 242
include "hid/mousedrv.inc"
1 ha 243
 
244
; setting date,time,clock and alarm-clock
245
 
246
include "hid/set_dtc.inc"
247
 
248
;% -include
488 spraid 249
 
250
;parser file names
251
include "fs/parse_fn.inc"
252
 
253
; work with conf lib
254
include "core/conf_lib.inc"
255
 
256
; load external lib
257
include "core/ext_lib.inc"
258
 
259
; list of external functions
530 mikedld 260
include "imports.inc"