From 330d103decdfe4bb24061ebbeb8e2e441e18f6ec Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sat, 21 Apr 2018 08:35:26 +0000 Subject: [PATCH] Update bcm57xx driver stub as well. git-svn-id: svn://kolibrios.org@7251 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/unfinished/bcm57xx.asm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/unfinished/bcm57xx.asm b/drivers/unfinished/bcm57xx.asm index b8528f919a..39afb4fe76 100644 --- a/drivers/unfinished/bcm57xx.asm +++ b/drivers/unfinished/bcm57xx.asm @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2004-2018. All rights reserved. ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; ;; Broadcom NetXtreme 57xx driver for KolibriOS ;; @@ -158,14 +158,13 @@ proc service_proc stdcall, ioctl:dword ; Now, it's time to find the base mmio addres of the PCI device - stdcall PCI_find_mmio32, [ebx + device.pci_bus], [ebx + device.pci_dev] + stdcall PCI_find_mmio, [ebx + device.pci_bus], [ebx + device.pci_dev] + test eax, eax + jz .destroy ; Create virtual mapping of the physical memory - push 1Bh ; PG_SW+PG_NOCACHE - push 10000h ; size of the map - push eax - invoke MapIoMem + invoke MapIoMem, eax, 10000h, PG_SW+PG_NOCACHE mov [ebx + device.mmio_addr], eax ; We've found the mmio address, find IRQ now