Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1357 → Rev 1358

/kernel/trunk/bus/pci/pci32.inc
382,7 → 382,7
;
; Description
; IN: bx = device's PCI bus address (bbbbbbbbdddddfff)
; returns ax = user heap space available (bytes)
; Returns eax = user heap space available (bytes)
; Error codes
; eax = -1 : PCI user access blocked,
; eax = -2 : device not registered for uMMIO service
/kernel/trunk/data32.inc
7,7 → 7,6
 
$Revision$
 
;mmio_pci_addr = -1; set actual PCI address (word) here to activate user-MMIO
 
keymap:
 
47,6 → 46,7
db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
mmio_pci_addr dw -1 ; set actual PCI address here to activate user-MMIO
 
 
boot_memdetect db 'Determining amount of memory',0
/programs/system/pcidev/trunk/PCIDEV.ASM
450,12 → 450,12
Try_MMIO:
xor ebx, ebx
mov edx, ebx
mov bh, byte [MMIO_BAR]
mov bh, [MMIO_BAR]
or bx, 12 ; function 12
mov ecx, 4096 ; =1 page to map
mcall 62
mov [MMIO_Map], eax ; store MMIO lin.addr.
mov ecx, 0x80990022 ; print color : red
mov bh, byte [MMIO_BAR]
add bh, '0'
cmp eax, -3
jne @f
486,13 → 486,13
mcall 4
 
mmio_dump:
mov edx, eax
mov edx, [MMIO_Map]
mov esi, 64
mov ecx, 0x099 ; dump color : blue
add ebx, 10
mov [gr_pos], ebx
mcall 4
mov ecx, eax ; release the tried page
mov ecx, [MMIO_Map] ; release the tried page
mcall 62,13
 
mmio_next_bar:
518,8 → 518,8
 
Form: dw 800 ; window width (no more, special for 800x600)
dw 100 ; window x start
dw 420 ; window height
dw 100 ; window y start
dw 620 ; window height
dw 20 ; window y start
 
title db 'PCI Device Enumerator v 2.2 by J.Delozier, S.Kuzmin, V.Hanla, M.Zakiyanov, A.Jerdev', 0