Subversion Repositories Kolibri OS

Rev

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

Rev 5070 Rev 5071
Line 9... Line 9...
9
entry START
9
entry START
Line 10... Line 10...
10
 
10
 
Line 11... Line 11...
11
        DEBUG = 1
11
        DEBUG = 1
-
 
12
 
12
 
13
section '.flat' code readable writable executable
13
section '.flat' code readable writable executable
14
 
14
include '../proc32.inc'
15
include '../proc32.inc'
15
include '../struct.inc'
-
 
Line 16... Line 16...
16
include '../macros.inc'
16
include '../struct.inc'
17
include '../peimport.inc'
17
include '../macros.inc'
18
 
18
 
19
VID_INTEL         = 0x8086
19
VID_INTEL         = 0x8086
Line 161... Line 161...
161
 
161
 
Line 162... Line 162...
162
 
162
 
163
proc START c, state:dword, cmdline:dword
163
proc START c, state:dword, cmdline:dword
Line 164... Line 164...
164
 
164
 
165
        cmp     [state], 1
165
        cmp     [state], 1
166
        jne     .stop
166
        jne     .fail
167
 
167
 
Line 168... Line -...
168
     if DEBUG
-
 
169
        mov     esi, msgInit
-
 
170
        invoke  SysMsgBoardStr
168
     if DEBUG
171
     end if
169
        mov     esi, msgInit
172
 
170
        invoke  SysMsgBoardStr
173
        test    eax, eax
-
 
174
        jnz     .done
-
 
175
        call    detect_controller
-
 
176
        ret
-
 
177
.stop:
171
     end if
178
        test    eax, eax
172
 
179
        jz      .done
173
        call    detect_controller
180
        leave
174
        ret
Line 181... Line 175...
181
        jmp     eax
175
 
Line 233... Line 227...
233
        mov     eax, [bus]
227
        mov     eax, [bus]
234
        inc     eax
228
        inc     eax
235
        mov     [bus], eax
229
        mov     [bus], eax
236
        cmp     eax, [last_bus]
230
        cmp     eax, [last_bus]
237
        jna     .next_bus
231
        jna     .next_bus
-
 
232
     if DEBUG
-
 
233
        mov     esi, msgNotFound
-
 
234
        invoke  SysMsgBoardStr
-
 
235
     end if
238
        xor     eax, eax
236
        xor     eax, eax
239
        ret
237
        ret
240
  .found:
238
  .found:
Line 241... Line 239...
241
 
239
 
Line 402... Line 400...
402
ensoniq         db 'ENSONIQ', 0
400
ensoniq         db 'ENSONIQ', 0
403
emu10k1x        db 'EMU10K1X', 0
401
emu10k1x        db 'EMU10K1X', 0
404
intelhda        db 'INTEL_HDA', 0
402
intelhda        db 'INTEL_HDA', 0
Line 405... Line 403...
405
 
403
 
406
msgInit         db 'Detecting hardware...',13,10,0
404
msgInit         db 'Detecting hardware...',13,10,0
-
 
405
msgNotFound     db 'No compatible soundcard found!',13,10,0
407
msgFail         db 'No compatible soundcard found!',13,10,0
406
msgFail         db 'Failed',13,10,0
408
msgLoading      db 'Loading ',0
407
msgLoading      db 'Loading ',0
Line 409... Line 408...
409
msgNewline      db 13,10,0
408
msgNewline      db 13,10,0
410
 
409
 
411
align 4
410
align 4
412
data fixups
411
data fixups
-
 
412
end data
-
 
413
 
413
end data
414
include '../peimport.inc'