Subversion Repositories Kolibri OS

Rev

Rev 214 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 214 Rev 227
Line 23... Line 23...
23
end virtual
23
end virtual
24
 
24
 
Line 25... Line 25...
25
public START
25
public START
26
public service_proc
26
public service_proc
-
 
27
public version
Line 27... Line 28...
27
 
28
 
28
extrn AttachIntHandler
29
extrn AttachIntHandler
29
extrn SysMsgBoardStr
30
extrn SysMsgBoardStr
30
extrn PciApi
31
extrn PciApi
Line 52... Line 53...
52
section '.flat' code readable align 16
53
section '.flat' code readable align 16
Line 53... Line 54...
53
 
54
 
Line 54... Line -...
54
proc START stdcall, state:dword
-
 
55
 
55
proc START stdcall, state:dword
56
           mov eax, [state]
-
 
57
           cmp eax, 1
56
 
58
           je .entry
57
           cmp [state], 1
-
 
58
           jne .exit
59
           jmp .exit
59
.entry:
60
.entry:
60
 
61
     if DEBUG
61
     if DEBUG
62
           mov esi, msgInit
62
           mov esi, msgInit
Line 159... Line 159...
159
align 4
159
align 4
160
devices dd (DEVICE_ID shl 16)+VENDOR_ID
160
devices dd (DEVICE_ID shl 16)+VENDOR_ID
161
        dd 0    ;terminator
161
        dd 0    ;terminator
Line -... Line 162...
-
 
162
 
-
 
163
version      dd 0x00010001
162
 
164
 
Line 163... Line 165...
163
my_service   db 'MY_SERVICE',0  ;max 16 chars include zero
165
my_service   db 'MY_SERVICE',0  ;max 16 chars include zero
164
 
166
 
165
msgInit      db 'detect hardware...',13,10,0
167
msgInit      db 'detect hardware...',13,10,0