Subversion Repositories Kolibri OS

Rev

Rev 4326 | Rev 5166 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4326 Rev 4515
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2010-2013. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2010-2014. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
5
;;                                                                 ;;
6
;;  netcfg.asm - Network driver control center for KolibriOS       ;;
6
;;  netcfg.asm - Network driver control center for KolibriOS       ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;  Written by hidnplayr@kolibrios.org                             ;;
8
;;  Written by hidnplayr@kolibrios.org                             ;;
Line 247... Line 247...
247
        mov     [PCI_Interface], al     ; Save it
247
        mov     [PCI_Interface], al     ; Save it
248
        mov     cl , 0x3c                ; Register to read (Get IRQ)
248
        mov     cl , 0x3c                ; Register to read (Get IRQ)
249
@@:     mcall   62                      ; Read it
249
@@:     mcall   62                      ; Read it
250
        mov     [PCI_IRQ], al           ; Save it
250
        mov     [PCI_IRQ], al           ; Save it
Line 251... Line 251...
251
 
251
 
252
        cmp     byte [PCI_Class], 2     ; network controller
252
        cmp     [PCI_Class], 2          ; network controller
Line 253... Line 253...
253
        je      @f
253
        je      @f
254
 
254
 
255
        cmp     byte [PCI_Class], 6     ; bridge type device
255
        cmp     [PCI_Class], 6          ; bridge type device
-
 
256
        jne     nextDev
-
 
257
        cmp     [PCI_SubClass], 0x80    ; PCI-other bridge (for nvidia chipset)
256
        jne     nextDev
258
        jne     nextDev
257
        cmp     byte [PCI_SubClass], 0x80 ; PCI-other bridge (for nvidia chipset)
259
        cmp     [PCI_Vendor], 0x10DE    ; nvidia
Line 258... Line 260...
258
        jne     nextDev
260
        jne     nextDev
259
       @@:
261
       @@: