forked from KolibriOS/kolibrios
fixes in PCNet driver (now it works in VMWare)
git-svn-id: svn://kolibrios.org@1202 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
bbdad4119d
commit
f6498da63c
@ -1596,14 +1596,16 @@ adjust_pci_device:
|
|||||||
;*******Get current setting************************
|
;*******Get current setting************************
|
||||||
movzx edx, byte [ebx + device.pci_dev]
|
movzx edx, byte [ebx + device.pci_dev]
|
||||||
movzx ecx, byte [ebx + device.pci_bus]
|
movzx ecx, byte [ebx + device.pci_bus]
|
||||||
stdcall PciRead16, edx ,ecx ,0x04
|
push ecx edx
|
||||||
|
stdcall PciRead16, ecx ,edx ,0x04
|
||||||
|
pop edx ecx
|
||||||
; ;******see if its already set as bus master********
|
; ;******see if its already set as bus master********
|
||||||
; and ax,5
|
; and ax,5
|
||||||
; cmp ax,5
|
; cmp ax,5
|
||||||
; je .Latency
|
; je .Latency
|
||||||
;******Make card a bus master*******
|
;******Make card a bus master*******
|
||||||
or ax , 5
|
or al, 5
|
||||||
stdcall PciWrite16, edx ,ecx ,0x04, eax
|
stdcall PciWrite16, ecx ,edx ,0x04, eax
|
||||||
;******Check latency setting***********
|
;******Check latency setting***********
|
||||||
.Latency:
|
.Latency:
|
||||||
;*******Get current latency setting************************
|
;*******Get current latency setting************************
|
||||||
|
Loading…
Reference in New Issue
Block a user