Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
1379 turbanoff 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2455 mario79 3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
1379 turbanoff 4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
6
;; KERNEL32.INC                                                 ;;
7
;;                                                              ;;
8
;; Included 32 bit kernel files for MenuetOS                    ;;
9
;;                                                              ;;
10
;; This file is kept separate as it will be easier to           ;;
11
;; maintain and compile with an automated SETUP program         ;;
12
;; in the future.                                               ;;
13
;;                                                              ;;
14
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1362 mikedld 15
 
1379 turbanoff 16
$Revision: 4700 $
17
 
2381 hidnplayr 18
struct  POINT
19
        x       dd ?
20
        y       dd ?
21
ends
1379 turbanoff 22
 
2381 hidnplayr 23
struct  RECT
24
        left    dd ?
25
        top     dd ?
26
        right   dd ?
27
        bottom  dd ?
28
ends
1379 turbanoff 29
 
2381 hidnplayr 30
struct  BOX
31
        left    dd ?
32
        top     dd ?
33
        width   dd ?
34
        height  dd ?
35
ends
1391 mikedld 36
 
2381 hidnplayr 37
struct  DISPMODE
38
        width   dw ?
39
        height  dw ?
40
        bpp     dw ?
41
        freq    dw ?
42
ends
1379 turbanoff 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
 
2381 hidnplayr 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
1379 turbanoff 70
 
1362 mikedld 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
1379 turbanoff 78
 
79
; structures definition
2381 hidnplayr 80
struct  WDATA
81
        box             BOX
82
        cl_workarea     dd ?
83
        cl_titlebar     dd ?
84
        cl_frames       dd ?
85
        reserved        db ?
86
        fl_wstate       db ?
87
        fl_wdrawn       db ?
88
        fl_redraw       db ?
89
ends
90
 
1379 turbanoff 91
label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3
92
 
2381 hidnplayr 93
struct  DBG_REGS
94
        dr0             dd ?
95
        dr1             dd ?
96
        dr2             dd ?
97
        dr3             dd ?
98
        dr7             dd ?
99
ends
1379 turbanoff 100
 
2381 hidnplayr 101
struct  APPDATA
102
        app_name        rb 11
103
                        rb 5
1379 turbanoff 104
 
2381 hidnplayr 105
        fpu_state       dd ?            ;+16
106
        ev_count_       dd ? ;unused    ;+20
107
        exc_handler     dd ?            ;+24
108
        except_mask     dd ?            ;+28
109
        pl0_stack       dd ?            ;+32
110
        heap_base       dd ?            ;+36
111
        heap_top        dd ?            ;+40
112
        cursor          dd ?            ;+44
113
        fd_ev           dd ?            ;+48
114
        bk_ev           dd ?            ;+52
115
        fd_obj          dd ?            ;+56
116
        bk_obj          dd ?            ;+60
117
        saved_esp       dd ?            ;+64
118
        io_map          rd 2            ;+68
119
        dbg_state       dd ?            ;+76
120
        cur_dir         dd ?            ;+80
121
        wait_timeout    dd ?            ;+84
122
        saved_esp0      dd ?            ;+88
123
        wait_begin      dd ?            ;+92   +++
124
        wait_test       dd ?            ;+96   +++
125
        wait_param      dd ?            ;+100  +++
126
        tls_base        dd ?            ;+104
127
        dlls_list_ptr   dd ?            ;+108
2408 Serge 128
        event_filter    dd ?            ;+112
3536 clevermous 129
        draw_bgr_x      dd ?            ;+116
130
        draw_bgr_y      dd ?            ;+120
131
                        dd ?            ;+124
1379 turbanoff 132
 
2381 hidnplayr 133
        wnd_shape       dd ?            ;+128
134
        wnd_shape_scale dd ?            ;+132
135
                        dd ?            ;+136
136
        mem_size        dd ?            ;+140
3534 clevermous 137
        saved_box       BOX             ;+144
138
        ipc_start       dd ?            ;+160
139
        ipc_size        dd ?            ;+164
140
        event_mask      dd ?            ;+168
141
        debugger_slot   dd ?            ;+172
142
        terminate_protection dd ?       ;+176
143
        keyboard_mode   db ?            ;+180
2381 hidnplayr 144
                        rb 3
3534 clevermous 145
        dir_table       dd ?            ;+184
146
        dbg_event_mem   dd ?            ;+188
147
        dbg_regs        DBG_REGS        ;+192
148
        wnd_caption     dd ?            ;+212
149
        wnd_clientbox   BOX             ;+216
150
        priority        dd ?            ;+232
151
        in_schedule     LHEAD           ;+236
2381 hidnplayr 152
 
153
ends
154
 
4700 mario79 155
struct  IDE_DATA
156
        ProgrammingInterface dd ?
157
        Interrupt            dw ?
158
        RegsBaseAddres       dw ?
159
        BAR0_val             dw ?
160
        BAR1_val             dw ?
161
        BAR2_val             dw ?
162
        BAR3_val             dw ?
163
        dma_hdd              db ?
164
ends
2381 hidnplayr 165
 
4700 mario79 166
struct  IDE_CACHE
167
        pointer              dd ?
168
        size                 dd ?   ; not use
169
        data_pointer         dd ?
170
        system_data_size     dd ?   ; not use
171
        appl_data_size       dd ?   ; not use
172
        system_data          dd ?
173
        appl_data            dd ?
174
        system_sad_size      dd ?
175
        appl_sad_size        dd ?
176
        search_start         dd ?
177
        appl_search_start    dd ?
178
ends
179
 
1379 turbanoff 180
; Core functions
181
include "core/sync.inc"     ; macros for synhronization objects
182
include "core/sys32.inc"    ; process management
183
include "core/sched.inc"    ; process scheduling
184
include "core/syscall.inc"  ; system call
185
include "core/fpu.inc"      ; all fpu/sse support
186
include "core/memory.inc"
4608 clevermous 187
include "core/mtrr.inc"
1379 turbanoff 188
include "core/heap.inc"     ; kernel and app heap
189
include "core/malloc.inc"   ; small kernel heap
190
include "core/taskman.inc"
191
include "core/dll.inc"
192
include "core/peload.inc"   ;
193
include "core/exports.inc"
194
include "core/string.inc"
195
include "core/v86.inc"      ; virtual-8086 manager
2231 Serge 196
include "core/irq.inc"      ; irq handling functions
2118 serge 197
include "core/apic.inc"     ; Interrupt Controller functions
2123 clevermous 198
include "core/timers.inc"
4199 mario79 199
include "core/clipboard.inc" ; custom clipboard
1379 turbanoff 200
 
201
; GUI stuff
202
include "gui/window.inc"
203
include "gui/event.inc"
204
include "gui/font.inc"
205
include "gui/button.inc"
206
 
207
; shutdown
208
 
209
; file system
210
 
2140 clevermous 211
include "blkdev/disk.inc" ; support for plug-n-play disks
212
include "blkdev/disk_cache.inc" ; caching for plug-n-play disks
4273 clevermous 213
include "blkdev/rd.inc"   ; ramdisk read /write
214
include "fs/fat.inc"      ; read / write for fat filesystem
1379 turbanoff 215
include "fs/ntfs.inc"     ; read / write for ntfs filesystem
216
include "fs/fs_lfn.inc"    ; syscall, version 2
1378 turbanoff 217
include "fs/iso9660.inc"  ; read for iso9660 filesystem CD
3935 shikhin 218
include "fs/ext2/ext2.asm"     ; read / write for ext2 filesystem
3913 dunkaist 219
include "fs/xfs.asm"      ; read / write for xfs filesystem
1379 turbanoff 220
 
221
; sound
222
 
223
include "sound/playnote.inc" ; player Note for Speaker PC
224
 
225
; display
226
 
2407 mario79 227
;include "video/vesa12.inc"   ; Vesa 1.2 functions
1379 turbanoff 228
include "video/vesa20.inc"   ; Vesa 2.0 functions
1894 serge 229
include "video/blitter.inc"  ;
1379 turbanoff 230
include "video/vga.inc"      ; VGA 16 color functions
231
include "video/cursors.inc"  ; cursors functions
232
 
233
; Network Interface & TCPIP Stack
234
 
235
include "network/stack.inc"
236
 
237
;include "drivers/uart.inc"
238
 
239
 
240
; Mouse pointer
241
 
242
include "gui/mouse.inc"
243
 
244
; Window skinning
245
 
246
include "gui/skincode.inc"
247
 
248
; Pci functions
249
 
250
include "bus/pci/pci32.inc"
251
 
3520 clevermous 252
; USB functions
253
include "bus/usb/init.inc"
254
 
1379 turbanoff 255
; Floppy drive controller
256
 
257
include "blkdev/fdc.inc"
258
include "blkdev/flp_drv.inc"
259
 
260
; IDE cache
261
include "blkdev/ide_cache.inc"
262
 
263
; HD drive controller
264
include "blkdev/hd_drv.inc"
4420 clevermous 265
; Access through BIOS
266
include "blkdev/bd_drv.inc"
1379 turbanoff 267
 
268
; CD drive controller
269
 
270
include "blkdev/cd_drv.inc"
271
 
272
; Character devices
273
 
274
include "hid/keyboard.inc"
275
include "hid/mousedrv.inc"
276
 
277
; setting date,time,clock and alarm-clock
278
 
279
include "hid/set_dtc.inc"
280
 
281
;% -include
282
 
283
;parser file names
284
include "fs/parse_fn.inc"
285
 
286
; work with conf lib
287
include "core/conf_lib.inc"
288
 
289
; load external lib
290
include "core/ext_lib.inc"
291
 
292
; list of external functions
1378 turbanoff 293
include "imports.inc"