Rev 3618 | Rev 4326 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3618 | Rev 4325 | ||
---|---|---|---|
Line 252... | Line 252... | ||
252 | cmp byte [PCI_Class], 2 ; network controller |
252 | cmp byte [PCI_Class], 2 ; network controller |
253 | je @f |
253 | je @f |
Line 254... | Line 254... | ||
254 | 254 | ||
255 | cmp byte [PCI_Class], 6 ; bridge type device |
255 | cmp byte [PCI_Class], 6 ; bridge type device |
256 | jne nextDev |
- | |
257 | 256 | jne nextDev |
|
258 | cmp byte [PCI_SubClass], 7 ; Cardbus bridge |
257 | cmp byte [PCI_SubClass], 80 ; PCI-other bridge (for nvidia chipset) |
259 | jne nextDev |
- | |
260 | - | ||
261 | mov bl, 6 ; get a dword |
- | |
262 | mov bh, byte [V_Bus] ; bus of pci device |
- | |
263 | mov ch, byte [V_Dev] ; device number/function |
- | |
264 | mov cl, 0x40 ; offset to subsystem device/vendor id |
- | |
265 | mcall 62 ; get ID's |
- | |
266 | - | ||
267 | mov word [PCI_Device], ax ; There is a device here, save the ID's |
- | |
268 | shr eax, 16 ; |
- | |
269 | mov word [PCI_Vendor], ax ; |
258 | jne nextDev |
Line 270... | Line 259... | ||
270 | @@: |
259 | @@: |
271 | 260 |