From 5e5c753d2fb59d7fafde3596aa7d27011ab715b0 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 31 Aug 2017 18:55:12 +0000 Subject: [PATCH] i8255x: Give device more time to perform selective reset. git-svn-id: svn://kolibrios.org@6948 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/ethernet/i8255x.asm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/ethernet/i8255x.asm b/drivers/ethernet/i8255x.asm index 7f09908ba8..49e6da8dd0 100644 --- a/drivers/ethernet/i8255x.asm +++ b/drivers/ethernet/i8255x.asm @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; ;; i8255x (Intel eepro 100) driver for KolibriOS ;; @@ -432,13 +432,11 @@ probe: invoke PciRead32, [ebx + device.pci_bus], [ebx + device.pci_dev], PCI_header.vendor_id ; get device/vendor id DEBUGF 1,"Vendor_id=0x%x\n", ax - cmp ax, 0x8086 jne .notfound shr eax, 16 DEBUGF 1,"Device_id=0x%x\n", ax - mov ecx, DEVICE_IDs mov edi, device_id_list repne scasw @@ -483,7 +481,7 @@ reset: mov eax, PORT_SELECTIVE_RESET out dx, eax - mov esi, 1 + mov esi, 10 invoke Sleep ;----------- @@ -617,13 +615,6 @@ reset: mov ecx, 22 rep movsb - mov byte[ebx + device.confcmd.data + 1], 0x88 ; fifo of 8 each - mov byte[ebx + device.confcmd.data + 4], 0 - mov byte[ebx + device.confcmd.data + 5], 0x80 - mov byte[ebx + device.confcmd.data + 15], 0x48 - mov byte[ebx + device.confcmd.data + 19], 0x80 - mov byte[ebx + device.confcmd.data + 21], 0x05 - set_io [ebx + device.io_addr], REG_SCB_PTR lea eax, [ebx + device.confcmd.status] invoke GetPhysAddr