italian version
git-svn-id: svn://kolibrios.org@3630 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c5b8b35a47
commit
8bb5266143
@ -14,7 +14,7 @@ altkey4 = 3
|
|||||||
altkey5 = 5
|
altkey5 = 5
|
||||||
altkey6 = 6
|
altkey6 = 6
|
||||||
altkey7 = 2
|
altkey7 = 2
|
||||||
altkey8 = 0
|
altkey8 = 8
|
||||||
altkey9 = 0
|
altkey9 = 0
|
||||||
altkey0 = 0
|
altkey0 = 0
|
||||||
|
|
||||||
@ -25,4 +25,5 @@ altkey0 = 0
|
|||||||
4 = Ru
|
4 = Ru
|
||||||
5 = Fr
|
5 = Fr
|
||||||
6 = Et
|
6 = Et
|
||||||
7 = Ua
|
7 = Ua
|
||||||
|
8 = It
|
||||||
|
29
programs/system/panel/trunk/makefile
Normal file
29
programs/system/panel/trunk/makefile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!gmake
|
||||||
|
|
||||||
|
# Macro
|
||||||
|
FASM=/opt/bin/fasm
|
||||||
|
KPACK=/opt/bin/kpack
|
||||||
|
LANG=lang.inc
|
||||||
|
FILE=@PANEL
|
||||||
|
SOURCE=${FILE}.ASM
|
||||||
|
OUT=${FILE}.bin
|
||||||
|
|
||||||
|
en:
|
||||||
|
echo "lang fix en" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
${KPACK} ${OUT}
|
||||||
|
et:
|
||||||
|
echo "lang fix et" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
${KPACK} ${OUT}
|
||||||
|
ru:
|
||||||
|
echo "lang fix ru" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
${KPACK} ${OUT}
|
||||||
|
it:
|
||||||
|
echo "lang fix it" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
${KPACK} ${OUT}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ${LANG} ${OUT}
|
@ -142,6 +142,7 @@
|
|||||||
; * detect Revision, Class and Subclass of Device,
|
; * detect Revision, Class and Subclass of Device,
|
||||||
; * and make Description based on Class
|
; * and make Description based on Class
|
||||||
;-------------------------------------------------------------
|
;-------------------------------------------------------------
|
||||||
|
include 'lang.inc'
|
||||||
include 'macros.inc'
|
include 'macros.inc'
|
||||||
MEOS_APP_START
|
MEOS_APP_START
|
||||||
CODE
|
CODE
|
||||||
@ -217,7 +218,7 @@ nomo: ;done drawing bars here
|
|||||||
mov cl, [PCI_LastBus]
|
mov cl, [PCI_LastBus]
|
||||||
add cl, '0'
|
add cl, '0'
|
||||||
mov [PCIWin + 105], cl
|
mov [PCIWin + 105], cl
|
||||||
|
|
||||||
mov edx, PCIWin
|
mov edx, PCIWin
|
||||||
mov ebx, 20 * 65536 + 25 ; x start, ystart of text
|
mov ebx, 20 * 65536 + 25 ; x start, ystart of text
|
||||||
mov ecx, 0x224466 ; color of text
|
mov ecx, 0x224466 ; color of text
|
||||||
@ -266,19 +267,19 @@ Start_Enum:
|
|||||||
shr ecx, 16 ;
|
shr ecx, 16 ;
|
||||||
mov word [PCI_Device], cx ;
|
mov word [PCI_Device], cx ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mov ebp, 8 ; Read config byte
|
mov ebp, 8 ; Read config byte
|
||||||
mov bh, byte [V_Bus] ; Bus #
|
mov bh, byte [V_Bus] ; Bus #
|
||||||
mov bl, byte [V_Dev] ; Device # on bus
|
mov bl, byte [V_Dev] ; Device # on bus
|
||||||
mov edi, 0x08 ; Register to read (Get Revision)
|
mov edi, 0x08 ; Register to read (Get Revision)
|
||||||
mcall 57 ; Read it
|
mcall 57 ; Read it
|
||||||
mov byte [PCI_Rev], cl ; Save it
|
mov byte [PCI_Rev], cl ; Save it
|
||||||
|
|
||||||
mov edi, 0x0b ; Register to read (Get class)
|
mov edi, 0x0b ; Register to read (Get class)
|
||||||
mcall 57 ; Read it
|
mcall 57 ; Read it
|
||||||
mov byte [PCI_Class], cl ; Save it
|
mov byte [PCI_Class], cl ; Save it
|
||||||
|
|
||||||
mov edi, 0x0a ; Register to read (Get Subclass)
|
mov edi, 0x0a ; Register to read (Get Subclass)
|
||||||
mcall 57 ; Read it
|
mcall 57 ; Read it
|
||||||
mov byte [PCI_SubClass], cl; Save it
|
mov byte [PCI_SubClass], cl; Save it
|
||||||
@ -324,7 +325,7 @@ Print_New_Device:
|
|||||||
movzx ecx, byte [V_Dev] ; get device number
|
movzx ecx, byte [V_Dev] ; get device number
|
||||||
shr ecx, 3 ; device number is bits 3-7
|
shr ecx, 3 ; device number is bits 3-7
|
||||||
mcall ; Draw device Number To Window
|
mcall ; Draw device Number To Window
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 155 * 65536 ; X start becomes 155
|
or edx, 155 * 65536 ; X start becomes 155
|
||||||
movzx ecx, byte [V_Dev] ; get Function number
|
movzx ecx, byte [V_Dev] ; get Function number
|
||||||
@ -368,7 +369,7 @@ Print_New_Device:
|
|||||||
;------------------------------------------------------------------
|
;------------------------------------------------------------------
|
||||||
mov edx, VendorsTab
|
mov edx, VendorsTab
|
||||||
mov cx, word[PCI_Vendor]
|
mov cx, word[PCI_Vendor]
|
||||||
|
|
||||||
.fn: mov ax, [edx]
|
.fn: mov ax, [edx]
|
||||||
add edx, 6
|
add edx, 6
|
||||||
test ax, ax
|
test ax, ax
|
||||||
@ -403,7 +404,7 @@ Print_New_Device:
|
|||||||
.endfc: test edx, edx
|
.endfc: test edx, edx
|
||||||
jnz @f
|
jnz @f
|
||||||
mov edx, [Classes + esi * 8 - 4]
|
mov edx, [Classes + esi * 8 - 4]
|
||||||
@@:
|
@@:
|
||||||
and ebx, 0x0000FFFF ; clear X position
|
and ebx, 0x0000FFFF ; clear X position
|
||||||
or ebx, 0x24E0000 ; set X position to 590 pixels
|
or ebx, 0x24E0000 ; set X position to 590 pixels
|
||||||
mcall 4,, 0x80000000,, 32 ; draw the text
|
mcall 4,, 0x80000000,, 32 ; draw the text
|
||||||
@ -411,7 +412,7 @@ Print_New_Device:
|
|||||||
add edx, 0x0014000A ; add 10 to y coordinate and set x coordinate to 20
|
add edx, 0x0014000A ; add 10 to y coordinate and set x coordinate to 20
|
||||||
ret
|
ret
|
||||||
|
|
||||||
include 'VENDORS.INC'
|
include 'vendors.inc'
|
||||||
;------------------------------------------------------------------
|
;------------------------------------------------------------------
|
||||||
; DATA AREA
|
; DATA AREA
|
||||||
DATA
|
DATA
|
||||||
@ -422,8 +423,20 @@ Form: dw 800 ; window width (no more, special for 800x600)
|
|||||||
dw 420 ; window height
|
dw 420 ; window height
|
||||||
dw 100 ; window y start
|
dw 100 ; window y start
|
||||||
|
|
||||||
|
if lang eq it
|
||||||
|
title db 'PCI Device Enumeration v 2.1n new PCI API test', 0
|
||||||
|
PCIWin mls \
|
||||||
|
'Ricordarsi di abilitare l accesso alla PCI per le applicazioni dal menu.',\
|
||||||
|
'',\
|
||||||
|
'Versione PCI = x.xx',\
|
||||||
|
'Ultimo Bus PCI = x',\
|
||||||
|
'Numerod di devices =',\
|
||||||
|
'',\
|
||||||
|
'VenID DevID Bus# Dev# Fnc Rev Class Subclass/ IRQ Compania Descrizione',\
|
||||||
|
' Interface',\
|
||||||
|
'----- ----- ---- ---- --- --- ----- --------- --- ------------------------------------------ ----------------'
|
||||||
|
else
|
||||||
title db 'PCI Device Enumeration v 2.1n new PCI API test', 0
|
title db 'PCI Device Enumeration v 2.1n new PCI API test', 0
|
||||||
|
|
||||||
PCIWin mls \
|
PCIWin mls \
|
||||||
'Please remember to enable PCI Access to Applications in Setup Menu.',\
|
'Please remember to enable PCI Access to Applications in Setup Menu.',\
|
||||||
'',\
|
'',\
|
||||||
@ -434,7 +447,7 @@ PCIWin mls \
|
|||||||
'VenID DevID Bus# Dev# Fnc Rev Class Subclass/ IRQ Company Description',\
|
'VenID DevID Bus# Dev# Fnc Rev Class Subclass/ IRQ Company Description',\
|
||||||
' Interface',\
|
' Interface',\
|
||||||
'----- ----- ---- ---- --- --- ----- --------- --- ------------------------------------------ ----------------'
|
'----- ----- ---- ---- --- --- ----- --------- --- ------------------------------------------ ----------------'
|
||||||
|
end if
|
||||||
;------------------------------------------------------------------
|
;------------------------------------------------------------------
|
||||||
; UNINITIALIZED DATA AREA
|
; UNINITIALIZED DATA AREA
|
||||||
UDATA
|
UDATA
|
||||||
|
19
programs/system/pcidev/branches/new_api/makefile
Normal file
19
programs/system/pcidev/branches/new_api/makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!gmake
|
||||||
|
|
||||||
|
# Macro
|
||||||
|
FASM=/opt/bin/fasm
|
||||||
|
KPACK=/opt/bin/kpack
|
||||||
|
LANG=lang.inc
|
||||||
|
FILE=PCIDEV
|
||||||
|
SOURCE=${FILE}.ASM
|
||||||
|
OUT=${FILE}.bin
|
||||||
|
|
||||||
|
en:
|
||||||
|
echo "lang fix en" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
it:
|
||||||
|
echo "lang fix it" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ${LANG} ${OUT}
|
@ -19,6 +19,8 @@
|
|||||||
; connected to the PCI Bus.
|
; connected to the PCI Bus.
|
||||||
;***************************************************************
|
;***************************************************************
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include 'lang.inc' ;language support
|
||||||
include '../../../macros.inc'
|
include '../../../macros.inc'
|
||||||
|
|
||||||
include '../../../develop/libraries/box_lib/load_lib.mac'
|
include '../../../develop/libraries/box_lib/load_lib.mac'
|
||||||
@ -45,14 +47,14 @@ load_libraries l_libs_start,end_l_libs
|
|||||||
;OpenDialog initialisation
|
;OpenDialog initialisation
|
||||||
push dword OpenDialog_data
|
push dword OpenDialog_data
|
||||||
call [OpenDialog_Init]
|
call [OpenDialog_Init]
|
||||||
|
|
||||||
mov edi,filename_area
|
mov edi,filename_area
|
||||||
mov esi,start_temp_file_name
|
mov esi,start_temp_file_name
|
||||||
call copy_file_name_path
|
call copy_file_name_path
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
mcall 68,12,4096*4 ; 16 Kb - I hope this will be enough for store of data
|
mcall 68,12,4096*4 ; 16 Kb - I hope this will be enough for store of data
|
||||||
mov [store_text_area_start],eax
|
mov [store_text_area_start],eax
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
call draw_window
|
call draw_window
|
||||||
still:
|
still:
|
||||||
mcall 10 ; wait here for event
|
mcall 10 ; wait here for event
|
||||||
@ -112,26 +114,26 @@ button: ; button
|
|||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
call_OpenDialog:
|
call_OpenDialog:
|
||||||
mov [OpenDialog_data.type],1 ; Save
|
mov [OpenDialog_data.type],1 ; Save
|
||||||
|
|
||||||
push dword OpenDialog_data
|
push dword OpenDialog_data
|
||||||
call [OpenDialog_Start]
|
call [OpenDialog_Start]
|
||||||
|
|
||||||
cmp [OpenDialog_data.status],2 ; OpenDialog does not start
|
cmp [OpenDialog_data.status],2 ; OpenDialog does not start
|
||||||
je .save_file_default_path
|
je .save_file_default_path
|
||||||
|
|
||||||
cmp [OpenDialog_data.status],1
|
cmp [OpenDialog_data.status],1
|
||||||
jne still
|
jne still
|
||||||
|
|
||||||
call store_data
|
call store_data
|
||||||
jmp still
|
jmp still
|
||||||
;----------------------------------------
|
;----------------------------------------
|
||||||
.save_file_default_path:
|
.save_file_default_path:
|
||||||
mov edi,file_name
|
mov edi,file_name
|
||||||
mov esi,file_default_path
|
mov esi,file_default_path
|
||||||
call copy_file_name_path
|
call copy_file_name_path
|
||||||
call store_data
|
call store_data
|
||||||
jmp still
|
jmp still
|
||||||
;----------------------------------------
|
;----------------------------------------
|
||||||
copy_file_name_path:
|
copy_file_name_path:
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
cld
|
cld
|
||||||
@ -151,7 +153,7 @@ prepare_text_area:
|
|||||||
cld
|
cld
|
||||||
rep stosd
|
rep stosd
|
||||||
pop edi
|
pop edi
|
||||||
|
|
||||||
mov esi,PCIWin
|
mov esi,PCIWin
|
||||||
xor ecx,ecx
|
xor ecx,ecx
|
||||||
@@:
|
@@:
|
||||||
@ -161,32 +163,32 @@ prepare_text_area:
|
|||||||
mov al,0Ah ; CR - carriage return
|
mov al,0Ah ; CR - carriage return
|
||||||
stosb
|
stosb
|
||||||
cmp [esi],byte 0xFF
|
cmp [esi],byte 0xFF
|
||||||
jne @r
|
jne @r
|
||||||
|
|
||||||
mov [store_text_area_end],edi
|
mov [store_text_area_end],edi
|
||||||
|
|
||||||
xor edi,edi
|
xor edi,edi
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
get_window_param:
|
get_window_param:
|
||||||
mcall 9, Proc_Info, -1 ; window redraw requested so get
|
mcall 9, Proc_Info, -1 ; window redraw requested so get
|
||||||
; new window coordinates and size
|
; new window coordinates and size
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
draw_window:
|
draw_window:
|
||||||
call prepare_text_area
|
call prepare_text_area
|
||||||
|
|
||||||
mov byte [total], 0
|
mov byte [total], 0
|
||||||
mcall 12, 1 ; start of draw
|
mcall 12, 1 ; start of draw
|
||||||
; DRAW WINDOW
|
; DRAW WINDOW
|
||||||
mcall 0,dword [Form],dword [Form + 4],0x13ffffff,0x805080d0,title
|
mcall 0,dword [Form],dword [Form + 4],0x13ffffff,0x805080d0,title
|
||||||
|
|
||||||
call get_window_param
|
call get_window_param
|
||||||
|
|
||||||
mov eax,[Proc_Info+70] ;status of window
|
mov eax,[Proc_Info+70] ;status of window
|
||||||
test eax,100b
|
test eax,100b
|
||||||
jne .end
|
jne .end
|
||||||
|
|
||||||
mcall 8,<450,100>,<25,25>,2,0xC0C0C0
|
mcall 8,<450,100>,<25,25>,2,0xC0C0C0
|
||||||
shr ecx,16
|
shr ecx,16
|
||||||
mov bx,cx
|
mov bx,cx
|
||||||
@ -245,7 +247,7 @@ draw_window:
|
|||||||
; Quantity of devices...
|
; Quantity of devices...
|
||||||
movzx ecx, byte [total] ; number to draw
|
movzx ecx, byte [total] ; number to draw
|
||||||
mcall 47, 0x00020000,,150 * 65536 + 65, 0x224466
|
mcall 47, 0x00020000,,150 * 65536 + 65, 0x224466
|
||||||
|
|
||||||
mov ebx,ecx
|
mov ebx,ecx
|
||||||
mov ecx,2
|
mov ecx,2
|
||||||
mov edi,[store_text_area_start]
|
mov edi,[store_text_area_start]
|
||||||
@ -254,14 +256,14 @@ draw_window:
|
|||||||
call binary_to_hex_string
|
call binary_to_hex_string
|
||||||
pop edi
|
pop edi
|
||||||
mov [edi+2],byte 'h'
|
mov [edi+2],byte 'h'
|
||||||
|
|
||||||
mov ah, [MMIO_allowed]
|
mov ah, [MMIO_allowed]
|
||||||
or ah, ah
|
or ah, ah
|
||||||
jz @f
|
jz @f
|
||||||
mov ah, [MMIO_Bus] ; =255 if MMIO disabled / not found
|
mov ah, [MMIO_Bus] ; =255 if MMIO disabled / not found
|
||||||
and ah, 0x7f
|
and ah, 0x7f
|
||||||
inc ah
|
inc ah
|
||||||
jo @f
|
jo @f
|
||||||
call Try_MMIO
|
call Try_MMIO
|
||||||
@@:
|
@@:
|
||||||
.end:
|
.end:
|
||||||
@ -289,7 +291,7 @@ Get_PCI_Info:
|
|||||||
cmp al, 0xff ; 0xFF means no pci bus found
|
cmp al, 0xff ; 0xFF means no pci bus found
|
||||||
jne Pci_Exists ;
|
jne Pci_Exists ;
|
||||||
ret ; if no bus then leave
|
ret ; if no bus then leave
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
Pci_Exists:
|
Pci_Exists:
|
||||||
mov byte [V_Bus], 0 ; reset varibles
|
mov byte [V_Bus], 0 ; reset varibles
|
||||||
mov byte [V_Dev], 0 ;
|
mov byte [V_Dev], 0 ;
|
||||||
@ -303,7 +305,7 @@ Start_Enum:
|
|||||||
|
|
||||||
cmp ax, 0 ; Vendor ID should not be 0 or 0xFFFF
|
cmp ax, 0 ; Vendor ID should not be 0 or 0xFFFF
|
||||||
je nextDev ; check next device if nothing exists here
|
je nextDev ; check next device if nothing exists here
|
||||||
|
|
||||||
cmp ax, 0xffff ;
|
cmp ax, 0xffff ;
|
||||||
je nextDev ;
|
je nextDev ;
|
||||||
|
|
||||||
@ -315,7 +317,7 @@ Start_Enum:
|
|||||||
mov ch, byte [V_Dev] ; Device # on bus
|
mov ch, byte [V_Dev] ; Device # on bus
|
||||||
mov cl, 0x08 ; Register to read (Get Revision)
|
mov cl, 0x08 ; Register to read (Get Revision)
|
||||||
mcall 62 ; Read it
|
mcall 62 ; Read it
|
||||||
|
|
||||||
mov byte [PCI_Rev], al ; Save it
|
mov byte [PCI_Rev], al ; Save it
|
||||||
mov cl, 0x0b ; Register to read (Get class)
|
mov cl, 0x0b ; Register to read (Get class)
|
||||||
mcall 62 ; Read it
|
mcall 62 ; Read it
|
||||||
@ -327,19 +329,19 @@ Start_Enum:
|
|||||||
; by Mario79 august 2006
|
; by Mario79 august 2006
|
||||||
mov cl, 0x09 ; Register to read (Get Interface)
|
mov cl, 0x09 ; Register to read (Get Interface)
|
||||||
mcall 62 ; Read it
|
mcall 62 ; Read it
|
||||||
|
|
||||||
mov [PCI_Interface], al ; Save it
|
mov [PCI_Interface], al ; Save it
|
||||||
;
|
;
|
||||||
; by Ghost april 2007
|
; by Ghost april 2007
|
||||||
mov cl, 0x3c ; Register to read (Get IRQ)
|
mov cl, 0x3c ; Register to read (Get IRQ)
|
||||||
@@:
|
@@:
|
||||||
mcall 62 ; Read it
|
mcall 62 ; Read it
|
||||||
|
|
||||||
mov [PCI_IRQ], al ; Save it
|
mov [PCI_IRQ], al ; Save it
|
||||||
; by CleverMouse juny 2011
|
; by CleverMouse juny 2011
|
||||||
mov cl, 0x0e
|
mov cl, 0x0e
|
||||||
mcall 62
|
mcall 62
|
||||||
|
|
||||||
push eax
|
push eax
|
||||||
inc byte [total] ; one more device found
|
inc byte [total] ; one more device found
|
||||||
call Print_New_Device ; print device info to screen
|
call Print_New_Device ; print device info to screen
|
||||||
@ -347,10 +349,10 @@ Start_Enum:
|
|||||||
pop eax
|
pop eax
|
||||||
test al, al
|
test al, al
|
||||||
js nextDev
|
js nextDev
|
||||||
|
|
||||||
test byte [V_Dev], 7
|
test byte [V_Dev], 7
|
||||||
jnz nextDev
|
jnz nextDev
|
||||||
|
|
||||||
or byte [V_Dev], 7
|
or byte [V_Dev], 7
|
||||||
nextDev:
|
nextDev:
|
||||||
inc byte [V_Dev] ; next device on this bus
|
inc byte [V_Dev] ; next device on this bus
|
||||||
@ -377,17 +379,17 @@ Print_New_Device:
|
|||||||
mov ch, byte [V_Bus]
|
mov ch, byte [V_Bus]
|
||||||
mov cl, byte [V_Dev]
|
mov cl, byte [V_Dev]
|
||||||
mcall 62, 11 ; detect uMMIO
|
mcall 62, 11 ; detect uMMIO
|
||||||
|
|
||||||
and ax,0x7fff
|
and ax,0x7fff
|
||||||
inc ax ; -1 returned?
|
inc ax ; -1 returned?
|
||||||
jo no_ummio_allowed
|
jo no_ummio_allowed
|
||||||
|
|
||||||
inc ax ; -2 returned?
|
inc ax ; -2 returned?
|
||||||
jo no_ummio_here
|
jo no_ummio_here
|
||||||
|
|
||||||
inc ax ; -3 returned?
|
inc ax ; -3 returned?
|
||||||
jo no_ummio_here
|
jo no_ummio_here
|
||||||
|
|
||||||
mov esi, 0x990033 ; highlighted text color
|
mov esi, 0x990033 ; highlighted text color
|
||||||
mov bh, byte [V_Bus]
|
mov bh, byte [V_Bus]
|
||||||
mov bl, byte [V_Dev]
|
mov bl, byte [V_Dev]
|
||||||
@ -408,23 +410,23 @@ Print_New_Device:
|
|||||||
no_ummio_here:
|
no_ummio_here:
|
||||||
movzx ecx,word [PCI_Vendor] ; Pointer to number to be written
|
movzx ecx,word [PCI_Vendor] ; Pointer to number to be written
|
||||||
mcall 47, 0x00040100 ; Write Vendor ID
|
mcall 47, 0x00040100 ; Write Vendor ID
|
||||||
|
|
||||||
call store_4_digits
|
call store_4_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 54 * 65536 ; X start becomes 54
|
or edx, 54 * 65536 ; X start becomes 54
|
||||||
movzx ecx, word [PCI_Device] ; get Vendor ID
|
movzx ecx, word [PCI_Device] ; get Vendor ID
|
||||||
mcall ; Draw Vendor ID to Window
|
mcall ; Draw Vendor ID to Window
|
||||||
|
|
||||||
call store_4_digits
|
call store_4_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 98 * 65536 ; X start becomes 98
|
or edx, 98 * 65536 ; X start becomes 98
|
||||||
movzx ecx, byte [V_Bus] ; get bus number
|
movzx ecx, byte [V_Bus] ; get bus number
|
||||||
mcall ,0x00020100 ; draw bus number to screen
|
mcall ,0x00020100 ; draw bus number to screen
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 128 * 65536 ; X start becomes 128
|
or edx, 128 * 65536 ; X start becomes 128
|
||||||
movzx ecx, byte [V_Dev] ; get device number
|
movzx ecx, byte [V_Dev] ; get device number
|
||||||
@ -432,44 +434,44 @@ no_ummio_here:
|
|||||||
mcall ; Draw device Number To Window
|
mcall ; Draw device Number To Window
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 155 * 65536 ; X start becomes 155
|
or edx, 155 * 65536 ; X start becomes 155
|
||||||
movzx ecx, byte [V_Dev] ; get Function number
|
movzx ecx, byte [V_Dev] ; get Function number
|
||||||
and ecx, 7 ; function is first 3 bits
|
and ecx, 7 ; function is first 3 bits
|
||||||
mcall ; Draw Function Number To Window
|
mcall ; Draw Function Number To Window
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 179 * 65536 ; X start becomes 179
|
or edx, 179 * 65536 ; X start becomes 179
|
||||||
movzx ecx, byte [PCI_Rev] ; get revision number
|
movzx ecx, byte [PCI_Rev] ; get revision number
|
||||||
mcall ; Draw Revision to screen
|
mcall ; Draw Revision to screen
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 215*65536 ; X start becomes 215
|
or edx, 215*65536 ; X start becomes 215
|
||||||
movzx ecx, byte [PCI_Class] ; get PCI_Class
|
movzx ecx, byte [PCI_Class] ; get PCI_Class
|
||||||
mcall ; Draw Class to screen
|
mcall ; Draw Class to screen
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 250*65536 ; X start becomes 250
|
or edx, 250*65536 ; X start becomes 250
|
||||||
movzx ecx, byte [PCI_SubClass]; get sub class
|
movzx ecx, byte [PCI_SubClass]; get sub class
|
||||||
mcall ; Draw Sub Class to screen
|
mcall ; Draw Sub Class to screen
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
; from Mario79 august 2006
|
; from Mario79 august 2006
|
||||||
and edx, 0xFFFF ;*****************************************
|
and edx, 0xFFFF ;*****************************************
|
||||||
or edx, 280 * 65536 ; X start becomes 280
|
or edx, 280 * 65536 ; X start becomes 280
|
||||||
movzx ecx, [PCI_Interface] ; get Interface
|
movzx ecx, [PCI_Interface] ; get Interface
|
||||||
mcall
|
mcall
|
||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
|
|
||||||
;
|
;
|
||||||
; from Ghost april 2007 ;*****************************************
|
; from Ghost april 2007 ;*****************************************
|
||||||
and edx, 0xFFFF
|
and edx, 0xFFFF
|
||||||
@ -482,7 +484,7 @@ no_ummio_here:
|
|||||||
|
|
||||||
call store_2_digits
|
call store_2_digits
|
||||||
jmp .PCI_Vendor
|
jmp .PCI_Vendor
|
||||||
@@:
|
@@:
|
||||||
call store_NA
|
call store_NA
|
||||||
.PCI_Vendor:
|
.PCI_Vendor:
|
||||||
;Write Names
|
;Write Names
|
||||||
@ -502,14 +504,14 @@ no_ummio_here:
|
|||||||
add edx, 6
|
add edx, 6
|
||||||
test ax, ax
|
test ax, ax
|
||||||
jz .find
|
jz .find
|
||||||
|
|
||||||
cmp ax, cx
|
cmp ax, cx
|
||||||
jne .fn
|
jne .fn
|
||||||
|
|
||||||
.find:
|
.find:
|
||||||
mov edx, [edx - 4]
|
mov edx, [edx - 4]
|
||||||
mcall 4,, 0x80000000 ; lets print the vendor Name
|
mcall 4,, 0x80000000 ; lets print the vendor Name
|
||||||
|
|
||||||
mov [store_text_size],42
|
mov [store_text_size],42
|
||||||
call store_text
|
call store_text
|
||||||
;------------------------------------------------------------------
|
;------------------------------------------------------------------
|
||||||
@ -526,34 +528,34 @@ no_ummio_here:
|
|||||||
mov ecx, [Classes + esi * 8 - 8]
|
mov ecx, [Classes + esi * 8 - 8]
|
||||||
cmp cx, 0xffff
|
cmp cx, 0xffff
|
||||||
je .endfc
|
je .endfc
|
||||||
|
|
||||||
cmp cx, ax
|
cmp cx, ax
|
||||||
jne .fnc
|
jne .fnc
|
||||||
|
|
||||||
test ecx, 0xff000000
|
test ecx, 0xff000000
|
||||||
jz @f
|
jz @f
|
||||||
|
|
||||||
mov edx, [Classes + esi * 8 - 4]
|
mov edx, [Classes + esi * 8 - 4]
|
||||||
jmp .fnc
|
jmp .fnc
|
||||||
@@:
|
@@:
|
||||||
cmp eax, ecx
|
cmp eax, ecx
|
||||||
jne .fnc
|
jne .fnc
|
||||||
|
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
.endfc:
|
.endfc:
|
||||||
test edx, edx
|
test edx, edx
|
||||||
jnz @f
|
jnz @f
|
||||||
|
|
||||||
mov edx, [Classes + esi * 8 - 4]
|
mov edx, [Classes + esi * 8 - 4]
|
||||||
@@:
|
@@:
|
||||||
and ebx, 0x0000FFFF ; clear X position
|
and ebx, 0x0000FFFF ; clear X position
|
||||||
or ebx, 0x24E0000 ; set X position to 590 pixels
|
or ebx, 0x24E0000 ; set X position to 590 pixels
|
||||||
mcall 4,, 0x80000000,, 32 ; draw the text
|
mcall 4,, 0x80000000,, 32 ; draw the text
|
||||||
|
|
||||||
mov [store_text_size],0
|
mov [store_text_size],0
|
||||||
call store_text
|
call store_text
|
||||||
call store_CR
|
call store_CR
|
||||||
|
|
||||||
movzx edx, bx ; get y coordinate
|
movzx edx, bx ; get y coordinate
|
||||||
add edx, 0x0014000A ; add 10 to y coordinate and set x coordinate to 20
|
add edx, 0x0014000A ; add 10 to y coordinate and set x coordinate to 20
|
||||||
mov [gr_pos], edx
|
mov [gr_pos], edx
|
||||||
@ -570,18 +572,18 @@ Try_MMIO:
|
|||||||
or bx, 12 ; function 12
|
or bx, 12 ; function 12
|
||||||
mov ecx, 4096 ; =1 page to map
|
mov ecx, 4096 ; =1 page to map
|
||||||
mcall 62
|
mcall 62
|
||||||
|
|
||||||
mov [MMIO_Map], eax ; store MMIO lin.addr.
|
mov [MMIO_Map], eax ; store MMIO lin.addr.
|
||||||
mov ecx, 0x80990022 ; print color : red
|
mov ecx, 0x80990022 ; print color : red
|
||||||
add bh, '0'
|
add bh, '0'
|
||||||
cmp eax, -3
|
cmp eax, -3
|
||||||
jne @f
|
jne @f
|
||||||
|
|
||||||
mov [bar_um+3], bh
|
mov [bar_um+3], bh
|
||||||
mov ebx, [gr_pos]
|
mov ebx, [gr_pos]
|
||||||
mov edx, bar_um
|
mov edx, bar_um
|
||||||
mcall 4
|
mcall 4
|
||||||
|
|
||||||
jmp mmio_next_bar
|
jmp mmio_next_bar
|
||||||
@@:
|
@@:
|
||||||
cmp eax, -4
|
cmp eax, -4
|
||||||
@ -590,7 +592,7 @@ Try_MMIO:
|
|||||||
mov ebx, [gr_pos]
|
mov ebx, [gr_pos]
|
||||||
mov edx, bar_io
|
mov edx, bar_io
|
||||||
mcall 4
|
mcall 4
|
||||||
|
|
||||||
jmp mmio_next_bar
|
jmp mmio_next_bar
|
||||||
@@:
|
@@:
|
||||||
cmp bh, '6' ; expansion ROM ?
|
cmp bh, '6' ; expansion ROM ?
|
||||||
@ -599,7 +601,7 @@ Try_MMIO:
|
|||||||
mov ebx, [gr_pos]
|
mov ebx, [gr_pos]
|
||||||
mov edx, bar_ram
|
mov edx, bar_ram
|
||||||
mcall 4
|
mcall 4
|
||||||
|
|
||||||
jmp mmio_dump
|
jmp mmio_dump
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
@@:
|
@@:
|
||||||
@ -614,7 +616,7 @@ mmio_dump:
|
|||||||
add ebx, 10
|
add ebx, 10
|
||||||
mov [gr_pos], ebx
|
mov [gr_pos], ebx
|
||||||
mcall 4
|
mcall 4
|
||||||
|
|
||||||
mov ecx, [MMIO_Map] ; release the tried page
|
mov ecx, [MMIO_Map] ; release the tried page
|
||||||
mcall 62,13
|
mcall 62,13
|
||||||
|
|
||||||
@ -623,7 +625,7 @@ mmio_next_bar:
|
|||||||
inc bh
|
inc bh
|
||||||
cmp bh,7
|
cmp bh,7
|
||||||
je @f
|
je @f
|
||||||
|
|
||||||
mov [MMIO_BAR], bh
|
mov [MMIO_BAR], bh
|
||||||
add [gr_pos], 10
|
add [gr_pos], 10
|
||||||
jmp Try_MMIO
|
jmp Try_MMIO
|
||||||
@ -639,12 +641,12 @@ store_CR:
|
|||||||
mov [edi],word 0A20h ; CR (carriage return) + SPACE
|
mov [edi],word 0A20h ; CR (carriage return) + SPACE
|
||||||
add dword [store_text_area_end],2
|
add dword [store_text_area_end],2
|
||||||
popa
|
popa
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
store_text:
|
store_text:
|
||||||
pusha
|
pusha
|
||||||
inc dword [store_text_area_end]
|
inc dword [store_text_area_end]
|
||||||
mov esi,edx
|
mov esi,edx
|
||||||
mov edi,[store_text_area_end]
|
mov edi,[store_text_area_end]
|
||||||
push edi
|
push edi
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
@ -666,7 +668,7 @@ store_text:
|
|||||||
add [store_text_area_end],eax
|
add [store_text_area_end],eax
|
||||||
@@:
|
@@:
|
||||||
popa
|
popa
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
store_NA:
|
store_NA:
|
||||||
pusha
|
pusha
|
||||||
@ -735,6 +737,27 @@ Form: dw 800 ; window width (no more, special for 800x600)
|
|||||||
|
|
||||||
title db 'PCI Device Enumerator v 2.3', 0
|
title db 'PCI Device Enumerator v 2.3', 0
|
||||||
|
|
||||||
|
if lang eq it
|
||||||
|
PCIWin mls \
|
||||||
|
' Don`t forget to enable PCI Access to Applications in Setup Menu.',\
|
||||||
|
'',\
|
||||||
|
'Versione PCI = x.xx; Ultimo Bus PCI = x',\
|
||||||
|
'User MMIO channel = 0F.F:F ',\
|
||||||
|
'Numbero di unità PCI = ',\
|
||||||
|
'',\
|
||||||
|
'VenID DevID Bus# Dev# Fnc Rev Class Subclass/ IRQ Compania Descrizzione',\
|
||||||
|
' Interfaccia',\
|
||||||
|
'----- ----- ---- ---- --- --- ----- --------- --- ------------------------------------------ --------------------------------'
|
||||||
|
|
||||||
|
bar_ram db 'BARx: MMIO block', 0
|
||||||
|
bar_io db 'BARx: porte IO',0
|
||||||
|
bar_um db 'BARx: unmapped',0
|
||||||
|
bar_rom db 'BAR6: Expansion ROM', 0
|
||||||
|
|
||||||
|
text_save_button:
|
||||||
|
db 'Salva lista PCI',0
|
||||||
|
.1: db '(Premere S)',0
|
||||||
|
else
|
||||||
PCIWin mls \
|
PCIWin mls \
|
||||||
' Don`t forget to enable PCI Access to Applications in Setup Menu.',\
|
' Don`t forget to enable PCI Access to Applications in Setup Menu.',\
|
||||||
'',\
|
'',\
|
||||||
@ -754,6 +777,7 @@ 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
|
||||||
|
end if
|
||||||
|
|
||||||
text_NA:
|
text_NA:
|
||||||
db '--',0
|
db '--',0
|
||||||
@ -822,7 +846,7 @@ dd 0
|
|||||||
|
|
||||||
file_default_path:
|
file_default_path:
|
||||||
db '/sys/'
|
db '/sys/'
|
||||||
start_temp_file_name:
|
start_temp_file_name:
|
||||||
db 'pcidev.txt',0
|
db 'pcidev.txt',0
|
||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
|
20
programs/system/pcidev/trunk/makefile
Normal file
20
programs/system/pcidev/trunk/makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!gmake
|
||||||
|
|
||||||
|
# Macro
|
||||||
|
FASM=/opt/bin/fasm
|
||||||
|
KPACK=/opt/bin/kpack
|
||||||
|
LANG=lang.inc
|
||||||
|
FILE=PCIDEV
|
||||||
|
SOURCE=${FILE}.ASM
|
||||||
|
OUT=${FILE}.bin
|
||||||
|
|
||||||
|
en:
|
||||||
|
echo "lang fix en" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
${KPACK} ${OUT}
|
||||||
|
it:
|
||||||
|
echo "lang fix it" > ${LANG}
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ${LANG} ${OUT}
|
15
programs/system/psxpad/makefile
Normal file
15
programs/system/psxpad/makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!gmake
|
||||||
|
|
||||||
|
# Macro
|
||||||
|
FASM=/opt/bin/fasm
|
||||||
|
KPACK=/opt/bin/kpack
|
||||||
|
FILE=psxpad
|
||||||
|
SOURCE=${FILE}.asm
|
||||||
|
OUT=${FILE}.bin
|
||||||
|
|
||||||
|
en:
|
||||||
|
${FASM} ${SOURCE} ${OUT}
|
||||||
|
${KPACK} ${OUT}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ${OUT}
|
Loading…
Reference in New Issue
Block a user