mabra

How to understand:Reading register F3xA4

Discussion created by mabra on Jan 10, 2010
Latest reply on Jan 29, 2010 by Emanprinting

Hallo !

I really look for help. I am using an open source library for ring0 access [WinRing0] and try to read this register, to obtain the temperature. But I always get zero. So I assume, I do not understand to provide the parameters right. I found code in another forum - the threads ended - but this dont helped me.

My main problem is, that I do not understand the "F3" value. If I look at the method signature of the mentioned libraries function "ReadPciConfigDwordEx", I have to provide the following:

 

0- 2
Function Number
3- 7
Device Number
8-15
PCI Bus Number
16-31
Reserved
0- 2
Function Number
3- 7
Device Number
8-15
PCI Bus Number
16-31
Reserved
0- 2 Function Number
3- 7 Device Number
8-15 PCI Bus Number
16-31 Reserved

From that others forums thread, I derived the following:

UInt32 pciAddress = 0x3+((0x18)<<3); //This should be "F3" !!!?????
UInt32 regAddress = 0xa4;
UInt32 value1 = 0;
int result = ReadPciConfigDwordEx(pciAddress, regAddress, ref value1);

This always return zero.

I hope, someone could shed some light on this !!

Thanks anyway,
br--mabra

 

Outcomes