Rev 1503 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1503 | Rev 1514 | ||
---|---|---|---|
Line 447... | Line 447... | ||
447 | 447 | ||
448 | call probe ; this function will output in eax |
448 | call probe ; this function will output in eax |
449 | test eax, eax |
449 | test eax, eax |
Line -... | Line 450... | ||
- | 450 | jnz .err2 ; If an error occured, exit |
|
- | 451 | ||
450 | jnz .err2 ; If an error occured, exit |
452 | |
- | 453 | mov [device.type], NET_TYPE_ETH |
|
451 | 454 | call NetRegDev |
|
452 | call EthRegDev |
455 | |
Line 453... | Line 456... | ||
453 | cmp eax, -1 |
456 | cmp eax, -1 |
Line 454... | Line 457... | ||
454 | je .destroy |
457 | je .destroy |
Line 455... | Line 458... | ||
455 | 458 | ||
456 | ret |
459 | ret |
457 | 460 | ||
458 | ; If the device was already loaded, find the device number and return it in eax |
461 | ; If the device was already loaded, find the device number and return it in eax |
459 | 462 | ||
460 | .find_devicenum: |
463 | .find_devicenum: |
461 | DEBUGF 2,"Trying to find device number of already registered device\n" |
464 | DEBUGF 2,"Trying to find device number of already registered device\n" |
462 | mov ebx, eax |
465 | mov ebx, eax |