Subversion Repositories Kolibri OS

Rev

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

Rev 1370 Rev 1375
Line 19... Line 19...
19
;;                                                              ;;
19
;;                                                              ;;
20
;;  See file COPYING for details                                ;;
20
;;  See file COPYING for details                                ;;
21
;;                                                              ;;
21
;;                                                              ;;
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 23... Line 23...
23
 
23
 
Line 24... Line 24...
24
$Revision: 1370 $
24
$Revision: 1375 $
25
 
25
 
26
;***************************************************************************
26
;***************************************************************************
27
;   Function
27
;   Function
Line 85... Line 85...
85
	jz pci_mmio_unmap
85
	jz pci_mmio_unmap
86
end if
86
end if
Line 87... Line 87...
87
 
87
 
Line 88... Line 88...
88
      no_pci_access_for_applications:
88
      no_pci_access_for_applications:
Line 89... Line 89...
89
 
89
 
Line 90... Line 90...
90
	mov eax,-1
90
	or eax,-1
91
 
91
 
Line 511... Line 511...
511
    ret
511
    ret
Line 512... Line 512...
512
 
512
 
Line 513... Line 513...
513
end if
513
end if
-
 
514
 
514
 
515
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
515
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
516
uglobal
516
 
517
align 4
517
; VendID (2), DevID (2), Revision = 0 (1), Class Code (3), FNum (1), Bus (1)
518
; VendID (2), DevID (2), Revision = 0 (1), Class Code (3), FNum (1), Bus (1)
518
pci_emu_dat:	times	30*10 db 0
519
pci_emu_dat:	times	30*10 db 0
519
 
520
endg
520
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
521
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
521
align 4
-
 
522
sys_pcibios:
-
 
523
	xchg	ebx, eax
-
 
524
	xchg	ecx, eax
-
 
525
	xchg	edx, eax
-
 
526
	xchg	esi, eax
522
align 4
527
	xchg	edi, eax
523
sys_pcibios:
528
	cmp	[pci_access_enabled], 1
524
	cmp	[pci_access_enabled], 1
529
	jne	.unsupported_func
525
	jne	.unsupported_func
Line 614... Line 610...
614
	xor	ah, ah			; SUCCESSFUL
610
	xor	ah, ah			; SUCCESSFUL
615
	jmp	.return_abc
611
	jmp	.return_abc
616
.not_WRITE_CONFIG:
612
.not_WRITE_CONFIG:
617
.unsupported_func:
613
.unsupported_func:
618
	mov	ah, 0x81		; FUNC_NOT_SUPPORTED
614
	mov	ah, 0x81		; FUNC_NOT_SUPPORTED
619
.return:mov	dword[esp + 8 ], edi
615
.return:mov	dword[esp + 4 ], edi
620
	mov	dword[esp + 12], esi
616
	mov	dword[esp + 8], esi
621
.return_abcd:
617
.return_abcd:
622
	mov	dword[esp + 28], edx
618
	mov	dword[esp + 24], edx
623
.return_abc:
619
.return_abc:
624
	mov	dword[esp + 32], ecx
620
	mov	dword[esp + 28], ecx
625
.return_ab:
621
.return_ab:
626
	mov	dword[esp + 24], ebx
622
	mov	dword[esp + 20], ebx
627
.return_a:
623
.return_a:
628
	mov	dword[esp + 36], eax
624
	mov	dword[esp + 32], eax
629
	ret
625
	ret