Rev 1492 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1492 | Rev 1514 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | ;; ;; |
8 | ;; ;; |
9 | ;; Status: under construction ;; |
9 | ;; Status: under construction ;; |
10 | ;; ;; |
10 | ;; ;; |
11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 12... | Line 12... | ||
12 | 12 | ||
Line 13... | Line 13... | ||
13 | ; $Revision: 1492 $ |
13 | ; $Revision: 1514 $ |
Line 14... | Line 14... | ||
14 | 14 | ||
Line 551... | Line 551... | ||
551 | 551 | ||
552 | call probe ; this function will output in eax |
552 | call probe ; this function will output in eax |
553 | test eax, eax |
553 | test eax, eax |
Line -... | Line 554... | ||
- | 554 | jnz .destroy ; If an error occured, exit |
|
554 | jnz .destroy ; If an error occured, exit |
555 | |
- | 556 | mov [device.type], NET_TYPE_ETH |
|
555 | 557 | call NetRegDev |
|
556 | call EthRegDev |
558 | |
Line 557... | Line 559... | ||
557 | cmp eax, -1 |
559 | cmp eax, -1 |
Line 558... | Line 560... | ||
558 | je .destroy |
560 | je .destroy |
Line 559... | Line 561... | ||
559 | 561 | ||
560 | ret |
562 | ret |
561 | 563 | ||
562 | ; If the device was already loaded, find the device number and return it in eax |
564 | ; If the device was already loaded, find the device number and return it in eax |
563 | 565 | ||
564 | .find_devicenum: |
566 | .find_devicenum: |
565 | DEBUGF 1,"Trying to find device number of already registered device\n" |
567 | DEBUGF 1,"Trying to find device number of already registered device\n" |
566 | mov ebx, eax |
568 | mov ebx, eax |