PCIDEV - Show the message "NA" if the IRQ is not assigned

git-svn-id: svn://kolibrios.org@1993 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2011-07-01 18:30:18 +00:00
parent 0462949132
commit 8f4c12f4c5
2 changed files with 36 additions and 14 deletions

View File

@ -3,7 +3,7 @@
; target platform: KolibriOS ; target platform: KolibriOS
; compiler: flat assembler 1.68 ; compiler: flat assembler 1.68
; version: 2.3 ; version: 2.3
; last update: June 2011 ; last update: Jule 2011
; maintained by: Jason Delozier <cordata51@hotmail.com> ; maintained by: Jason Delozier <cordata51@hotmail.com>
; Sergey Kuzmin <kuzmin_serg@list.ru> ; Sergey Kuzmin <kuzmin_serg@list.ru>
; Mihailov Ilia <ghost.nsk@gmail.com> ; Mihailov Ilia <ghost.nsk@gmail.com>
@ -450,17 +450,19 @@ no_ummio_here:
; ;
; from Ghost april 2007 ;***************************************** ; from Ghost april 2007 ;*****************************************
and edx, 0xFFFF
or edx, 310 * 65536 ; X start becomes 310
movzx ecx, [PCI_IRQ] ; get Interface movzx ecx, [PCI_IRQ] ; get Interface
cmp cl, 0x0f ; IRQ between 0..15 cmp cl, 0x0f ; IRQ between 0..15
ja @f ja @f
and edx, 0xFFFF
or edx, 310 * 65536 ; X start becomes 310
mcall mcall
call store_2_digits call store_2_digits
jmp .PCI_Vendor
@@: @@:
call store_NA
.PCI_Vendor:
;Write Names ;Write Names
movzx ebx, dx ; Set y position movzx ebx, dx ; Set y position
or ebx, 340 * 65536 ; set Xposition to 340 or ebx, 340 * 65536 ; set Xposition to 340
@ -644,15 +646,14 @@ store_text:
popa popa
ret ret
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
store_4_digits: store_NA:
pusha pusha
mov ebx,ecx mov ebx,edx
mov ecx,4 mcall 4,,0x80000000,text_NA
mov edi,[store_text_area_end] mov edi,[store_text_area_end]
call binary_to_hex_string mov ax,[edx]
add [store_text_area_end],dword 6 mov [edi+1],ax
popa jmp store_2_digits.1
ret
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
store_2_digits: store_2_digits:
pusha pusha
@ -661,10 +662,21 @@ store_2_digits:
mov ecx,2 mov ecx,2
mov edi,[store_text_area_end] mov edi,[store_text_area_end]
call binary_to_hex_string call binary_to_hex_string
.1:
add [store_text_area_end],dword 4 add [store_text_area_end],dword 4
popa popa
ret ret
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
store_4_digits:
pusha
mov ebx,ecx
mov ecx,4
mov edi,[store_text_area_end]
call binary_to_hex_string
add [store_text_area_end],dword 6
popa
ret
;-----------------------------------------------------------------------------
; ebx - value ; ebx - value
; ecx - digits ; ecx - digits
; edi - output string ; edi - output string
@ -719,6 +731,9 @@ bar_rom db 'BAR6: Expansion ROM', 0
text_save_button: text_save_button:
db 'Save PCI list',0 db 'Save PCI list',0
.1: db '(Press S key)',0 .1: db '(Press S key)',0
text_NA:
db 'NA',0
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
system_dir_ProcLib db '/sys/lib/proc_lib.obj',0 system_dir_ProcLib db '/sys/lib/proc_lib.obj',0

View File

@ -10,6 +10,13 @@ to-do:
Full device detection (like "ATI Radeon 9200") will increase app Full device detection (like "ATI Radeon 9200") will increase app
size a lot and probably it is function of particular drivers size a lot and probably it is function of particular drivers
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
2.3: PCIDEV 01/07/2011
Author: Marat Zakiyanov aka Mario79 <mario79@bk.ru>
Features:
fixed
* Show the message "NA" if the IRQ is not assigned
;-----------------------------------------------------------------------------
2.3: PCIDEV 26/06/2011 2.3: PCIDEV 26/06/2011
Author: Marat Zakiyanov aka Mario79 <mario79@bk.ru> Author: Marat Zakiyanov aka Mario79 <mario79@bk.ru>
Features: Features: