|
1 // Copyright (c) 2008-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 // This file is part of the NE1_TB Variant Base Port |
|
15 // Hardware Configuration Respoitory Platform Specific Layer (PSL) |
|
16 // |
|
17 |
|
18 |
|
19 // -- INCLUDES ---------------------------------------------------------------- |
|
20 |
|
21 |
|
22 #include "hcr_debug.h" |
|
23 |
|
24 #include "hcr_hai.h" |
|
25 |
|
26 |
|
27 |
|
28 // -- GLOBALS ----------------------------------------------------------------- |
|
29 |
|
30 #define GLOBAL_REPOSITORY GLREF_C HCR::SRepositoryCompiled |
|
31 |
|
32 //GLREF_C HCR::SRepositoryCompiled gRepository; |
|
33 GLOBAL_REPOSITORY gRepository; |
|
34 |
|
35 // -- CLASSES- ---------------------------------------------------------------- |
|
36 |
|
37 |
|
38 class HCRVariant : public HCR::MVariant |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 HCRVariant(); |
|
44 virtual ~HCRVariant(); |
|
45 |
|
46 public: |
|
47 |
|
48 TInt Initialise(); |
|
49 |
|
50 TBool IgnoreCoreImgRepository(); |
|
51 TInt GetCompiledRepositoryAddress( TAny* & aAddr); |
|
52 TInt GetOverrideRepositoryAddress( TAny* & aAddr); |
|
53 |
|
54 }; |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 // -- METHODS ----------------------------------------------------------------- |
|
60 |
|
61 |
|
62 HCRVariant::HCRVariant() |
|
63 { |
|
64 HCR_FUNC("HCRVariant"); |
|
65 } |
|
66 |
|
67 |
|
68 HCRVariant::~HCRVariant() |
|
69 { |
|
70 HCR_FUNC("~HCRVariant"); |
|
71 } |
|
72 |
|
73 |
|
74 TInt HCRVariant::Initialise() |
|
75 { |
|
76 HCR_FUNC("HCRVariant::Initialise"); |
|
77 |
|
78 HCR_TRACE_RETURN(KErrNone); |
|
79 } |
|
80 |
|
81 |
|
82 TInt HCRVariant::GetCompiledRepositoryAddress( TAny* & aAddr) |
|
83 { |
|
84 HCR_FUNC("HCRVariant::GetCompiledRepositoryAddress"); |
|
85 |
|
86 aAddr = static_cast<TAny*>(&gRepository); |
|
87 HCR_TRACE_RETURN(KErrNone); |
|
88 } |
|
89 |
|
90 |
|
91 TBool HCRVariant::IgnoreCoreImgRepository() |
|
92 { |
|
93 HCR_FUNC("HCRVariant::IgnoreCoreImgRepository"); |
|
94 |
|
95 HCR_TRACE_RETURN(EFalse); |
|
96 } |
|
97 |
|
98 TInt HCRVariant::GetOverrideRepositoryAddress( TAny* & aAddr) |
|
99 { |
|
100 HCR_FUNC("HCRVariant::GetRAMRepositoryAddress"); |
|
101 aAddr = NULL; |
|
102 HCR_TRACE_RETURN(KErrNotSupported); |
|
103 |
|
104 } |
|
105 |
|
106 |
|
107 // -- ENTRY POINTS ------------------------------------------------------------ |
|
108 |
|
109 |
|
110 GLDEF_C HCR::MVariant* CreateHCRVariant() |
|
111 { |
|
112 HCR_FUNC("CreateHCRVariant"); |
|
113 |
|
114 return new HCRVariant; |
|
115 } |