Added PCI ID's for ADMtek N100 to DEC21x4x driver.

git-svn-id: svn://kolibrios.org@3231 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-02-07 09:08:49 +00:00
parent f6e68dbb55
commit 6e6fb52d02
2 changed files with 14 additions and 2 deletions

View File

@ -139,6 +139,7 @@ dd 0x0
db 'dec21x4x',0 db 'dec21x4x',0
dd 0x00091011 dd 0x00091011
dd 0x00191011 dd 0x00191011
dd 0x09851317
dd 0x0 dd 0x0
db 'R6040',0 db 'R6040',0

View File

@ -60,7 +60,6 @@ virtual at ebx
.pci_bus dd ? .pci_bus dd ?
.pci_dev dd ? .pci_dev dd ?
.irq_line db ? .irq_line db ?
rb 3 ; alignment
.size = $ - device .size = $ - device
@ -535,7 +534,12 @@ probe:
DEBUGF 1,"Vendor id: 0x%x\n", ax DEBUGF 1,"Vendor id: 0x%x\n", ax
cmp ax, 0x1011 cmp ax, 0x1011
jne .notfound je .dec
cmp ax, 0x1317
je .admtek
jmp .notfound
.dec:
shr eax, 16 shr eax, 16
DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax ; TODO: use another method to detect chip! DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax ; TODO: use another method to detect chip!
@ -545,6 +549,13 @@ probe:
cmp ax, 0x0019 cmp ax, 0x0019
je .supported_device2 je .supported_device2
.admtek:
shr eax, 16
DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax
cmp ax, 0x0985
je .supported_device
.notfound: .notfound:
DEBUGF 1,"Device not supported!\n" DEBUGF 1,"Device not supported!\n"
or eax, -1 or eax, -1