os/boardsupport/emulator/emulatorbsp/hcr/hcr_psl.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/emulator/emulatorbsp/hcr/hcr_psl.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,114 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// This file is part of the EPOC Emulator Variant Base Port
    1.18 +// Hardware Configuration Repository Platform Specific Layer (PSL) 
    1.19 +//
    1.20 +
    1.21 +
    1.22 +// -- INCLUDES ----------------------------------------------------------------
    1.23 +
    1.24 +
    1.25 +#include "hcr_debug.h"
    1.26 +
    1.27 +#include "hcr_hai.h"
    1.28 +
    1.29 +
    1.30 +
    1.31 +// -- GLOBALS -----------------------------------------------------------------
    1.32 +
    1.33 +
    1.34 +GLREF_C HCR::SRepositoryCompiled gRepository;
    1.35 +
    1.36 +
    1.37 +// -- CLASSES- ----------------------------------------------------------------
    1.38 +
    1.39 +
    1.40 +class HCRVariant : public HCR::MVariant
    1.41 +    {    
    1.42 +    
    1.43 +public:
    1.44 +
    1.45 +    HCRVariant();
    1.46 +    virtual ~HCRVariant();
    1.47 +    
    1.48 +public:    
    1.49 +    
    1.50 +    TInt Initialise();
    1.51 +    
    1.52 +    TBool IgnoreCoreImgRepository();
    1.53 +	TInt GetCompiledRepositoryAddress( TAny* & aAddr);
    1.54 +    TInt GetOverrideRepositoryAddress( TAny* & aAddr);
    1.55 +    
    1.56 +    };
    1.57 +    
    1.58 +    
    1.59 +
    1.60 +
    1.61 +// -- METHODS -----------------------------------------------------------------
    1.62 +
    1.63 +
    1.64 +HCRVariant::HCRVariant()
    1.65 +    {
    1.66 +    HCR_FUNC("HCRVariant");
    1.67 +    }
    1.68 +
    1.69 +
    1.70 +HCRVariant::~HCRVariant()
    1.71 +    {
    1.72 +    HCR_FUNC("~HCRVariant");
    1.73 +    }
    1.74 +
    1.75 +
    1.76 +TInt HCRVariant::Initialise()
    1.77 +    {
    1.78 +    HCR_FUNC("HCRVariant::Initialise");
    1.79 +    
    1.80 +    HCR_TRACE_RETURN(KErrNone);
    1.81 +    }
    1.82 +    
    1.83 +    
    1.84 +TInt HCRVariant::GetCompiledRepositoryAddress( TAny* & aAddr)
    1.85 +    {
    1.86 +    HCR_FUNC("HCRVariant::GetCompiledRepositoryAddress");
    1.87 +        
    1.88 +    aAddr = static_cast<TAny*>(&gRepository);
    1.89 +    HCR_TRACE_RETURN(KErrNone);
    1.90 +    }
    1.91 +
    1.92 +TBool HCRVariant::IgnoreCoreImgRepository()
    1.93 +    {
    1.94 +    HCR_FUNC("HCRVariant::IgnoreCoreImgRepository");
    1.95 +        
    1.96 +    HCR_TRACE_RETURN(EFalse);
    1.97 +    }
    1.98 +
    1.99 +TInt HCRVariant::GetOverrideRepositoryAddress( TAny* &)
   1.100 +    {
   1.101 +    HCR_FUNC("HCRVariant::GetRAMRepositoryAddress");
   1.102 +    
   1.103 +    // OverrideRepository not supported in EPOC Emulator version
   1.104 +    
   1.105 +    HCR_TRACE_RETURN(KErrNotSupported);
   1.106 +    }
   1.107 +
   1.108 + 
   1.109 +// -- ENTRY POINTS ------------------------------------------------------------
   1.110 +
   1.111 +
   1.112 +GLDEF_C HCR::MVariant* CreateHCRVariant()
   1.113 +    {
   1.114 +    HCR_FUNC("CreateHCRVariant");
   1.115 +
   1.116 +    return new HCRVariant;
   1.117 +    }