netcfg: dont show uninitialised cardbus cards, do show nvidia network chips.

git-svn-id: svn://kolibrios.org@4325 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-12-04 18:05:53 +00:00
parent 6b3f1e224c
commit 66ff5b4681

View File

@ -254,19 +254,8 @@ Start_Enum:
cmp byte [PCI_Class], 6 ; bridge type device cmp byte [PCI_Class], 6 ; bridge type device
jne nextDev jne nextDev
cmp byte [PCI_SubClass], 80 ; PCI-other bridge (for nvidia chipset)
cmp byte [PCI_SubClass], 7 ; Cardbus bridge
jne nextDev jne nextDev
mov bl, 6 ; get a dword
mov bh, byte [V_Bus] ; bus of pci device
mov ch, byte [V_Dev] ; device number/function
mov cl, 0x40 ; offset to subsystem device/vendor id
mcall 62 ; get ID's
mov word [PCI_Device], ax ; There is a device here, save the ID's
shr eax, 16 ;
mov word [PCI_Vendor], ax ;
@@: @@:
cmp byte[param], 0 cmp byte[param], 0