Subversion Repositories Kolibri OS

Compare Revisions

Ignore whitespace Rev 518 → Rev 2429

/programs/system/gmon/hwm_it87.inc
4,13 → 4,13
; All Right Reserved
 
; Integrated Technology Express
; Chip Temp Volt Fan ISA SMBus
; it8705 3 8+1* 3 + +
; it8712 3 8+1* 3 + +
; Chip Temp Volt Fan ISA SMBus
; it8705 3 8+1* 3 + +
; it8712 3 8+1* 3 + +
 
; SiS
; Chip Temp Volt Fan ISA SMBus
; sis950 3 8+1* 3 + +
; Chip Temp Volt Fan ISA SMBus
; sis950 3 8+1* 3 + +
;
; * - VBAT
 
20,7 → 20,7
it8705 db 'IT8705F/SiS 950', 0
it8712 db 'IT8712F', 0
it8716 db 'IT8716F', 0
ite_unk db 'Unknown ITE', 0
ite_unk db 'Unknown ITE', 0
 
ite_coeff: dd 0.016 ; Vcore
dd 0.016 ; Vin0
41,7 → 41,7
call ReservePorts
jc .no_io
 
mov eax, 0x55550187 ; ïåðåõîä â MB PnP Mode
mov eax, 0x55550187 ; ïåðåõîä â MB PnP Mode
out 0x2e, al
shr eax, 8
out 0x2e, al
63,16 → 63,16
mov al, 0x02 ; âûõîä èç ðåæèìà
out 0x2E, al
out 0x2F, al
 
mov ecx, 0x2e
mov edx, 0x2f
call FreePorts
 
pop eax
pop ebx
cmp bl, 0x87
jne .no_io
 
mov edx, it8705
cmp al, 0x05
je @f
85,32 → 85,32
mov edx, ite_unk
@@: mov [hwm_chip_name], edx
clc
ret
.no_io: stc
ret
 
; cmp byte[acc_type], 2 ; Only ISA and SMBus
; jae it87_no
.no_io: stc
ret
 
; cmp byte[acc_type], 2 ; Only ISA and SMBus
; jae it87_no
;;--- Ïðîâåðÿåì IT87* --------
; mov al, IT87_REGCHIP
; call [IO_Read]
; cmp al, IT87_CHIPID
; jne it87_no ; ýòî íå it87 !!!
; mov al, IT87_REGCHIP
; call [IO_Read]
; cmp al, IT87_CHIPID
; jne it87_no ; ýòî íå it87 !!!
;;-~- not tested ~-~-
; mov al, 0x21 ; --- óçíà¸ì èäåíòèôèêàòîð ÷èïà --
; call [IO_Read]
; mov edx, it8705
; cmp al, 0x05
; je @f
; mov edx, it8712
; cmp al, 0x12
; je @f
; mov edx, it8716
; cmp al, 0x16
; je @f
; mov edx, ite_unk
; @@: mov [hwm_chip_name], edx
; mov al, 0x21 ; --- óçíà¸ì èäåíòèôèêàòîð ÷èïà --
; call [IO_Read]
; mov edx, it8705
; cmp al, 0x05
; je @f
; mov edx, it8712
; cmp al, 0x12
; je @f
; mov edx, it8716
; cmp al, 0x16
; je @f
; mov edx, ite_unk
; @@: mov [hwm_chip_name], edx
;;-~-~-~-~-~-~-~-~-~-
; clc
; ret
154,11 → 154,11
@@: mov al, 0x0D
add al, cl
call [IO_Read]
 
test al, al
jz @f
cmp al, 0xff
je @f
je @f
 
movzx ebx, al
push ecx
167,6 → 167,8
pop ecx
mov eax, 1350000
xor edx, edx
test ebx, ebx
jz @f
div ebx
mov [hwm_rpms + 4 * ecx], eax
inc ecx
180,17 → 182,17
;
; Volt = A * read_val + B
;
; A, B
; A, B
; --- 0 ---
; dd 0.01565, 0.0 ; VIN0 (Index = 0x20)
; dd 0.016, 0.0 ; VIN1 (Index = 0x21)
; dd 0.016, 0.0 ; VIN2 (Index = 0x22)
; dd 0.0, 0.0 ; VIN3 (Index = 0x23)
; dd 0.0608, 0.0 ; VIN4 (Index = 0x24)
; dd 0.0, 0.0 ; VIN5 (Index = 0x25)
; dd 0.0, 0.0 ; VIN6 (Index = 0x26)
; dd 0.08224, -22.104 ; VIN7 (Index = 0x27)
; dd 0.016, 0.0 ; VBAT (Index = 0x28)
; dd 0.01565, 0.0 ; VIN0 (Index = 0x20)
; dd 0.016, 0.0 ; VIN1 (Index = 0x21)
; dd 0.016, 0.0 ; VIN2 (Index = 0x22)
; dd 0.0, 0.0 ; VIN3 (Index = 0x23)
; dd 0.0608, 0.0 ; VIN4 (Index = 0x24)
; dd 0.0, 0.0 ; VIN5 (Index = 0x25)
; dd 0.0, 0.0 ; VIN6 (Index = 0x26)
; dd 0.08224, -22.104 ; VIN7 (Index = 0x27)
; dd 0.016, 0.0 ; VBAT (Index = 0x28)
 
; --- 1 ---
; dd 0.01614, 0.0