equal
deleted
inserted
replaced
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // hal\inc\hal_int.h |
14 // hal\inc\hal_int.h |
15 // |
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. |
16 // |
19 // |
17 |
20 |
18 #ifndef __HAL_INT_H__ |
21 #ifndef __HAL_INT_H__ |
19 #define __HAL_INT_H__ |
22 #define __HAL_INT_H__ |
20 |
23 |
21 #include <hal.h> |
24 #include <hal.h> |
22 #include <e32svr.h> |
25 #include <e32svr.h> |
|
26 |
|
27 // Work around data import/export restriction of X86 compilers |
|
28 #if defined(__X86__) || defined(__WINS__) |
|
29 #undef IMPORT_D |
|
30 #undef EXPORT_D |
|
31 #define IMPORT_D IMPORT_C |
|
32 #define EXPORT_D |
|
33 #endif |
23 |
34 |
24 /** |
35 /** |
25 @publishedPartner |
36 @publishedPartner |
26 @released |
37 @released |
27 |
38 |
57 public: |
68 public: |
58 static const TUint8 Properties[HAL::ENumHalAttributes]; |
69 static const TUint8 Properties[HAL::ENumHalAttributes]; |
59 static const TInt Offset[HAL::ENumHalAttributes]; |
70 static const TInt Offset[HAL::ENumHalAttributes]; |
60 // InitialValue[] is only exported for patchdata purposes (other executables |
71 // InitialValue[] is only exported for patchdata purposes (other executables |
61 // must not import this array; all access should be through the published Hal |
72 // must not import this array; all access should be through the published Hal |
62 // APIs). EXPORT_C needs to be on the declaration here so that it has external |
73 // APIs). IMPORT_D needs to be on the declaration here so that it has external |
63 // linkage (class data is treated differently to non-class data). |
74 // linkage (class data is treated differently to non-class data). |
64 EXPORT_C static const TInt InitialValue[HAL::ENumHalAttributes]; |
75 IMPORT_D static const TInt InitialValue[HAL::ENumHalAttributes]; |
65 static const THalImplementation Implementation[HAL::ENumHalAttributes]; |
76 static const THalImplementation Implementation[HAL::ENumHalAttributes]; |
66 static const TInt HalDataSize; |
77 static const TInt HalDataSize; |
67 |
78 |
68 enum THalPanic |
79 enum THalPanic |
69 { |
80 { |