Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3229 → Rev 3231

/kernel/branches/net/applications/netcfg/drivers.inc
139,6 → 139,7
db 'dec21x4x',0
dd 0x00091011
dd 0x00191011
dd 0x09851317
dd 0x0
 
db 'R6040',0
/kernel/branches/net/drivers/dec21x4x.asm
60,7 → 60,6
.pci_bus dd ?
.pci_dev dd ?
.irq_line db ?
rb 3 ; alignment
 
.size = $ - device
 
535,7 → 534,12
DEBUGF 1,"Vendor id: 0x%x\n", ax
 
cmp ax, 0x1011
jne .notfound
je .dec
cmp ax, 0x1317
je .admtek
jmp .notfound
 
.dec:
shr eax, 16
DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax ; TODO: use another method to detect chip!
 
545,6 → 549,13
cmp ax, 0x0019
je .supported_device2
 
.admtek:
shr eax, 16
DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax
 
cmp ax, 0x0985
je .supported_device
 
.notfound:
DEBUGF 1,"Device not supported!\n"
or eax, -1