Rev 5522 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5522 | Rev 7250 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. 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 | ;; FORCEDETH.INC ;; |
6 | ;; FORCEDETH.INC ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; Ethernet driver for Kolibri OS ;; |
8 | ;; Ethernet driver for Kolibri OS ;; |
Line 580... | Line 580... | ||
580 | mov al, 32 |
580 | mov al, 32 |
581 | invoke PciWrite8, [ebx + device.pci_bus], [ebx + device.pci_dev], PCI_header00.max_latency, eax |
581 | invoke PciWrite8, [ebx + device.pci_bus], [ebx + device.pci_dev], PCI_header00.max_latency, eax |
582 | @@: |
582 | @@: |
Line 583... | Line 583... | ||
583 | 583 | ||
584 | ; Now, it's time to find the base mmio addres of the PCI device |
584 | ; Now, it's time to find the base mmio addres of the PCI device |
- | 585 | stdcall PCI_find_mmio, [ebx + device.pci_bus], [ebx + device.pci_dev] ; returns in eax |
|
- | 586 | test eax, eax |
|
- | 587 | jnz @f |
|
- | 588 | DEBUGF 1, "No useable MMIO addresses found!\n" |
|
- | 589 | dec eax |
|
- | 590 | ret |
|
585 | stdcall PCI_find_mmio32, [ebx + device.pci_bus], [ebx + device.pci_dev] ; returns in eax |
591 | @@: |
Line 586... | Line 592... | ||
586 | DEBUGF 1,"mmio_addr= 0x%x\n", eax |
592 | DEBUGF 1,"mmio_addr= 0x%x\n", eax |
587 | 593 | ||
588 | ; Create virtual mapping of the physical memory |
594 | ; Create virtual mapping of the physical memory |