Skip to content

Commit

Permalink
Update api.c
Browse files Browse the repository at this point in the history
Hawk Point read table enable
Table version 4c0007 and 4c0008 added to read values(Z1 and 7x40u and 8x40u devices)
  • Loading branch information
ciphray authored and FlyGoat committed Feb 25, 2024
1 parent dac383e commit 47bc452
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions lib/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ static int request_table_ver_and_size(ryzen_access ry)
case FAM_CEZANNE:
case FAM_REMBRANDT:
case FAM_PHOENIX:
case FAM_HAWKPOINT:
get_table_ver_msg = 0x6;
break;
default:
Expand Down Expand Up @@ -1340,6 +1341,8 @@ EXP float CALL get_apu_slow_limit(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x18);
default:
break;
Expand All @@ -1364,6 +1367,8 @@ EXP float CALL get_apu_slow_value(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x1C);
default:
break;
Expand Down Expand Up @@ -1395,6 +1400,8 @@ EXP float CALL get_vrm_current(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x20);
default:
break;
Expand Down Expand Up @@ -1426,6 +1433,8 @@ EXP float CALL get_vrm_current_value(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x24);
default:
break;
Expand Down Expand Up @@ -1457,6 +1466,8 @@ EXP float CALL get_vrmsoc_current(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x28);
default:
break;
Expand Down Expand Up @@ -1488,6 +1499,8 @@ EXP float CALL get_vrmsoc_current_value(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x2C);
default:
break;
Expand Down Expand Up @@ -1518,6 +1531,9 @@ EXP float CALL get_vrmmax_current(ryzen_access ry) {
case 0x00400005:
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x30);
default:
break;
Expand Down Expand Up @@ -1548,6 +1564,9 @@ EXP float CALL get_vrmmax_current_value(ryzen_access ry) {
case 0x00400005:
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x34);
default:
break;
Expand Down Expand Up @@ -1578,6 +1597,9 @@ EXP float CALL get_vrmsocmax_current(ryzen_access ry) {
case 0x00400005:
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x38);
default:
break;
Expand Down Expand Up @@ -1608,6 +1630,9 @@ EXP float CALL get_vrmsocmax_current_value(ryzen_access ry) {
case 0x00400005:
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x3C);
default:
break;
Expand Down Expand Up @@ -1640,6 +1665,8 @@ EXP float CALL get_tctl_temp(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x40);
default:
break;
Expand Down Expand Up @@ -1672,6 +1699,8 @@ EXP float CALL get_tctl_temp_value(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x44);
default:
break;
Expand All @@ -1696,6 +1725,8 @@ EXP float CALL get_apu_skin_temp_limit(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x58);
default:
break;
Expand All @@ -1720,6 +1751,8 @@ EXP float CALL get_apu_skin_temp_value(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x5C);
default:
break;
Expand All @@ -1743,6 +1776,8 @@ EXP float CALL get_dgpu_skin_temp_limit(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x60);
default:
break;
Expand All @@ -1766,6 +1801,8 @@ EXP float CALL get_dgpu_skin_temp_value(ryzen_access ry) {
case 0x00450004:
case 0x00450005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x64);
default:
break;
Expand Down Expand Up @@ -1795,6 +1832,9 @@ EXP float CALL get_psi0_current(ryzen_access ry) {
case 0x00400003:
case 0x00400004:
case 0x00400005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x78);
default:
break;
Expand Down Expand Up @@ -1824,6 +1864,9 @@ EXP float CALL get_psi0soc_current(ryzen_access ry) {
case 0x00400003:
case 0x00400004:
case 0x00400005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x80);
default:
break;
Expand Down Expand Up @@ -1923,6 +1966,9 @@ EXP float CALL get_stapm_time(ryzen_access ry)
_read_float_value(0x920);
case 0x00400004:
case 0x00400005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x918);
default:
break;
Expand Down Expand Up @@ -1961,6 +2007,9 @@ EXP float CALL get_slow_time(ryzen_access ry) {
_read_float_value(0x924);
case 0x00400004:
case 0x00400005:
case 0x004C0006:
case 0x004C0007:
case 0x004C0008:
_read_float_value(0x91C);
default:
break;
Expand Down

0 comments on commit 47bc452

Please sign in to comment.