/kernel/branches/net/drivers/RTL8029.asm |
---|
199,7 → 199,7 |
mov [eax], dword API_VERSION |
xor eax, eax |
ret 4 |
ret |
;------------------------------------------------------ |
@@: ;--------- |
231,8 → 231,7 |
test ecx, ecx |
jz .firstdevice_pci |
; mov eax, [IOCTL.input] ; get the pci bus and device numbers |
mov ax , [eax+1] ; |
mov ax , [eax+1] ; get the pci bus and device numbers |
.nextdevice: |
mov ebx, [esi] |
cmp ax , word [device.pci_bus] ; compare with pci and device num in device list (notice the usage of word instead of byte) |
306,7 → 305,7 |
cmp eax, -1 |
jz .err |
ret 4 |
ret |
; If the device was already loaded, find the device number and return it in eax |
313,7 → 312,6 |
.find_devicenum: |
DEBUGF 1,"Trying to find device number of already registered device\n" |
mov ebx, eax |
call NetPtrToNum ; This kernel procedure converts a pointer to device struct in ebx |
; into a device number in edi |
mov eax, edi ; Application wants it in eax instead |
330,7 → 328,7 |
@@: |
.fail: |
or eax, -1 |
ret 4 |
ret |
;------------------------------------------------------ |
endp |
661,6 → 659,7 |
mov [device.mtu], 1514 |
; Indicate that we have successfully reset the card |
xor eax, eax |
DEBUGF 2,"Done!\n" |
ret |
/kernel/branches/net/drivers/RTL8139.asm |
---|
294,8 → 294,7 |
test ecx, ecx |
jz .firstdevice |
; mov eax, [IOCTL.input] ; get the pci bus and device numbers |
mov ax , [eax+1] ; |
mov ax , [eax+1] ; get the pci bus and device numbers |
.nextdevice: |
mov ebx, [esi] |
cmp ax , word [device.pci_bus] ; compare with pci and device num in device list (notice the usage of word instead of byte) |
/kernel/branches/net/drivers/RTL8169.asm |
---|
501,7 → 501,6 |
.find_devicenum: |
DEBUGF 2,"Trying to find device number of already registered device\n" |
mov ebx, eax |
call NetPtrToNum ; This kernel procedure converts a pointer to device struct in ebx |
; into a device number in edi |
mov eax, edi ; Application wants it in eax instead |
/kernel/branches/net/drivers/dec21x4x.asm |
---|
453,7 → 453,6 |
.find_devicenum: |
DEBUGF 2,"Trying to find device number of already registered device\n" |
mov ebx, eax |
call NetPtrToNum ; This kernel procedure converts a pointer to device struct in ebx |
; into a device number in edi |
mov eax, edi ; Application wants it in eax instead |
/kernel/branches/net/drivers/mtd80x.asm |
---|
449,7 → 449,6 |
.find_devicenum: |
DEBUGF 2,"Trying to find device number of already registered device\n" |
mov ebx, eax |
call NetPtrToNum ; This kernel procedure converts a pointer to device struct in ebx |
; into a device number in edi |
mov eax, edi ; Application wants it in eax instead |
/kernel/branches/net/drivers/pcnet32.asm |
---|
491,7 → 491,6 |
.find_devicenum: |
DEBUGF 1,"Trying to find device number of already registered device\n" |
mov ebx, eax |
call NetPtrToNum ; This kernel procedure converts a pointer to device struct in ebx |
; into a device number in edi |
mov eax, edi ; Application wants it in eax instead |
/kernel/branches/net/drivers/sis900.asm |
---|
214,7 → 214,6 |
; 5. If the device was already loaded, find the device number and return it in eax |
.find_devicenum: |
mov ebx, eax |
call NetPtrToNum ; This kernel procedure converts a pointer to device struct in ebx |
; into a device number in edi |
mov eax, edi ; Application wants it in eax instead |