kernel/eka/include/nkernsmp/x86/ncern.h
changeset 0 a41df078684a
child 177 a232af6b0b1f
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32\include\nkernsmp\x86\ncern.h
       
    15 // 
       
    16 // WARNING: This file contains some APIs which are internal and are subject
       
    17 //          to change without notice. Such APIs should therefore not be used
       
    18 //          outside the Kernel and Hardware Services package.
       
    19 //
       
    20 
       
    21 /**
       
    22  @file
       
    23  @publishedPartner
       
    24  @prototype
       
    25 */
       
    26 
       
    27 #ifndef __NCERN_H__
       
    28 #define __NCERN_H__
       
    29 
       
    30 
       
    31 /** Information needed to boot an AP (x86 specific)
       
    32 
       
    33 @internalTechnology
       
    34 */
       
    35 struct SX86APBootInfo : public SAPBootInfo
       
    36 	{
       
    37 	};
       
    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 
       
    53 /** Variant interface block
       
    54 @internalTechnology
       
    55 @prototype
       
    56 */
       
    57 struct SVariantInterfaceBlock : public SInterfaceBlockBase
       
    58 	{
       
    59 	TUint64		iMaxCpuClock;				// maximum possible CPU clock frequency on this system
       
    60 	TUint32		iTimestampFreq;				// rate at which timestamp increments
       
    61 	TUint32		iMaxTimerClock;				// maximum possible local timer clock frequency
       
    62 	volatile STimerMult* iTimerMult[KMaxCpus];	// timer[i] frequency as a fraction of iMaxTimerClock
       
    63 	volatile TUint32* iCpuMult[KMaxCpus];	// CPU[i] frequency / iMaxCpuClock * 2^32
       
    64 	};
       
    65 
       
    66 // End of file
       
    67 #endif