Rev 1728 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1728 | Rev 1946 | ||
---|---|---|---|
Line 304... | Line 304... | ||
304 | ; |
304 | ; |
305 | ; by Ghost april 2007 |
305 | ; by Ghost april 2007 |
306 | mov cl, 0x3c ; Register to read (Get IRQ) |
306 | mov cl, 0x3c ; Register to read (Get IRQ) |
307 | @@: mcall 62 ; Read it |
307 | @@: mcall 62 ; Read it |
308 | mov [PCI_IRQ], al ; Save it |
308 | mov [PCI_IRQ], al ; Save it |
- | 309 | ; by CleverMouse juny 2011 |
|
- | 310 | mov cl, 0x0e |
|
- | 311 | mcall 62 |
|
309 | ; |
312 | push eax |
310 | inc byte [total] ; one more device found |
313 | inc byte [total] ; one more device found |
311 | call Print_New_Device ; print device info to screen |
314 | call Print_New_Device ; print device info to screen |
- | 315 | ; don't scan for nonzero functions if zero function says "not multifunction device" |
|
- | 316 | pop eax |
|
- | 317 | test al, al |
|
- | 318 | js nextDev |
|
- | 319 | test byte [V_Dev], 7 |
|
- | 320 | jz nextDev |
|
- | 321 | or byte [V_Dev], 7 |
|
312 | nextDev: |
322 | nextDev: |
313 | inc byte [V_Dev] ; next device on this bus |
323 | inc byte [V_Dev] ; next device on this bus |
314 | jnz Start_Enum ; jump until we reach zero |
324 | jnz Start_Enum ; jump until we reach zero |
315 | ;(used to be JNO which caused bug!!! 30-4-2006, JMD) |
325 | ;(used to be JNO which caused bug!!! 30-4-2006, JMD) |
316 | mov byte [V_Dev], 0 ; reset device number |
326 | mov byte [V_Dev], 0 ; reset device number |