From 66ff5b4681f77f78bf50e8a8ab4872fa8774b3e5 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Wed, 4 Dec 2013 18:05:53 +0000 Subject: [PATCH] netcfg: dont show uninitialised cardbus cards, do show nvidia network chips. git-svn-id: svn://kolibrios.org@4325 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/netcfg/netcfg.asm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/programs/network/netcfg/netcfg.asm b/programs/network/netcfg/netcfg.asm index f12f17f9c..1ee3c4f5d 100644 --- a/programs/network/netcfg/netcfg.asm +++ b/programs/network/netcfg/netcfg.asm @@ -254,19 +254,8 @@ Start_Enum: cmp byte [PCI_Class], 6 ; bridge type device jne nextDev - - cmp byte [PCI_SubClass], 7 ; Cardbus bridge + cmp byte [PCI_SubClass], 80 ; PCI-other bridge (for nvidia chipset) 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