Subversion Repositories Kolibri OS

Rev

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

Rev 1201 Rev 1202
Line 1594... Line 1594...
1594
 
1594
 
1595
adjust_pci_device:
1595
adjust_pci_device:
1596
	;*******Get current setting************************
1596
	;*******Get current setting************************
1597
	movzx	 edx, byte [ebx + device.pci_dev]
1597
	movzx	 edx, byte [ebx + device.pci_dev]
-
 
1598
	movzx	 ecx, byte [ebx + device.pci_bus]
1598
	movzx	 ecx, byte [ebx + device.pci_bus]
1599
	push	ecx edx
-
 
1600
	stdcall  PciRead16, ecx ,edx ,0x04
1599
	stdcall  PciRead16, edx ,ecx ,0x04
1601
	pop	edx ecx
1600
;        ;******see if its already set as bus master********
1602
;        ;******see if its already set as bus master********
1601
;        and      ax,5
1603
;        and      ax,5
1602
;        cmp      ax,5
1604
;        cmp      ax,5
1603
;        je       .Latency
1605
;        je       .Latency
1604
	;******Make card a bus master*******
1606
	;******Make card a bus master*******
1605
	or	 ax , 5
1607
	or	 al, 5
1606
	stdcall  PciWrite16, edx ,ecx ,0x04, eax
1608
	stdcall  PciWrite16, ecx ,edx ,0x04, eax
1607
	;******Check latency setting***********
1609
	;******Check latency setting***********
1608
  .Latency:
1610
  .Latency:
1609
   ;*******Get current latency setting************************
1611
   ;*******Get current latency setting************************
1610
;   mov     al, 1                                       ;read a byte
1612
;   mov     al, 1                                       ;read a byte