Subversion Repositories Kolibri OS

Rev

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

Rev 6947 Rev 7250
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2018. 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
;;  i8254x driver for KolibriOS                                    ;;
6
;;  i8254x driver for KolibriOS                                    ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;  based on i8254x.asm from baremetal os                          ;;
8
;;  based on i8254x.asm from baremetal os                          ;;
Line 387... Line 387...
387
        movzx   ecx, byte[eax+2]
387
        movzx   ecx, byte[eax+2]
388
        mov     [ebx + device.pci_dev], ecx
388
        mov     [ebx + device.pci_dev], ecx
Line 389... Line 389...
389
 
389
 
Line 390... Line 390...
390
; Now, it's time to find the base mmio addres of the PCI device
390
; Now, it's time to find the base mmio addres of the PCI device
-
 
391
 
-
 
392
        stdcall PCI_find_mmio, [ebx + device.pci_bus], [ebx + device.pci_dev] ; returns in eax
Line 391... Line 393...
391
 
393
        test    eax, eax
Line 392... Line 394...
392
        stdcall PCI_find_mmio32, [ebx + device.pci_bus], [ebx + device.pci_dev] ; returns in eax
394
        jz      .destroy
393
 
395