equal
deleted
inserted
replaced
34 */ |
34 */ |
35 struct SX86APBootInfo : public SAPBootInfo |
35 struct SX86APBootInfo : public SAPBootInfo |
36 { |
36 { |
37 }; |
37 }; |
38 |
38 |
|
39 /** Timer frequency specification |
|
40 |
|
41 Stores a frequency as a fraction of a (separately stored) maximum. |
|
42 The frequency must be at least 1/256 of the maximum. |
|
43 |
|
44 @internalTechnology |
|
45 @prototype |
|
46 */ |
|
47 struct STimerMult |
|
48 { |
|
49 TUint32 iFreq; // frequency as a fraction of maximum possible, multiplied by 2^32 |
|
50 TUint32 iInverse; // 2^24/(iFreq/2^32) = 2^56/iFreq |
|
51 }; |
|
52 |
39 /** Variant interface block |
53 /** Variant interface block |
40 @internalTechnology |
54 @internalTechnology |
41 @prototype |
55 @prototype |
42 */ |
56 */ |
43 struct SVariantInterfaceBlock : public SInterfaceBlockBase |
57 struct SVariantInterfaceBlock : public SInterfaceBlockBase |
44 { |
58 { |
45 TUint64 iMaxCpuClock; // maximum possible CPU clock frequency on this system |
59 TUint64 iMaxCpuClock; // maximum possible CPU clock frequency on this system |
46 TUint32 iTimestampFreq; // rate at which timestamp increments |
60 TUint32 iTimestampFreq; // rate at which timestamp increments |
47 TUint32 iMaxTimerClock; // maximum possible local timer clock frequency |
61 TUint32 iMaxTimerClock; // maximum possible local timer clock frequency |
48 SRatio* iTimerFreqR[KMaxCpus]; // timer[i] frequency as a fraction of iMaxTimerClock |
62 volatile STimerMult* iTimerMult[KMaxCpus]; // timer[i] frequency as a fraction of iMaxTimerClock |
49 SRatio* iCpuFreqR[KMaxCpus]; // CPU[i] frequency as a fraction of iMaxCpuClock |
63 volatile TUint32* iCpuMult[KMaxCpus]; // CPU[i] frequency / iMaxCpuClock * 2^32 |
50 SRatio* iTimestampFreqR; // timestamp counter frequency as a fraction of |
|
51 }; |
64 }; |
52 |
65 |
53 // End of file |
66 // End of file |
54 #endif |
67 #endif |