guestrendering/guestvideodriver/ldd/src/virtualvideohwinterface.cpp
author Faisal Memon <faisal.memon@nokia.com>
Wed, 25 Aug 2010 17:57:53 +0100
branchbug235_bringup_0
changeset 2 e8ccf068ac7f
parent 1 d8d95053303a
child 3 ccf5191a9db1
permissions -rwxr-xr-x
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     1
/*
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     2
 * =============================================================================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     3
 *  Name        : virtualvideohwinterface.cpp
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     4
 *  Part of     : 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     5
 *  Description : Implementation file for the class DVirtualVideoHwInterface.
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     6
 *  Version     : %version:3 %
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     7
 *
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     8
 *  Copyright © 2002-2009 Nokia. All rights reserved.
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
     9
 *  This material, including documentation and any related
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    10
 *  computer programs, is protected by copyright controlled by
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    11
 *  Nokia. All rights are reserved. Copying, including
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    12
 *  reproducing, storing, adapting or translating, any
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    13
 *  or all of this material requires the prior written consent of
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    14
 *  Nokia. This material also contains confidential
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    15
 *  information which may not be disclosed to others without the
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    16
 *  prior written consent of Nokia.
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    17
 * =============================================================================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    18
 */
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    19
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    20
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    21
// INCLUDE FILES
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    22
#include <platform.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    23
#include <kern_priv.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    24
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    25
#include <graphics/guestvideodriverinterfaceconstants.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    26
#include <graphics/virtualvideohwinterface.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    27
#include <graphics/virtualvideotracing.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    28
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    29
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    30
// CONSTANTS
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    31
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    32
_LIT( KVirtualVideoHwInterfacePanic, "DVirtualVideoHwInterface" );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    33
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    34
// ============================ LOCAL DATA TYPES ===============================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    35
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    36
// Register offsets for playback and recording channels
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    37
// Note: The orders of these must match the order of enumarations
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    38
const TLinAddr KRegisterOffsets[] =
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    39
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    40
    VVI_R_ID,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    41
    VVI_R_IRQ_ENABLE,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    42
    VVI_R_IRQ_STATUS,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    43
    VVI_R_COMMAND,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    44
    VVI_R_PARAMETER_LOAD,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    45
    VVI_R_ERROR,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    46
    VVI_R_INPUT_BUFFER_TAIL,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    47
    VVI_R_INPUT_BUFFER_HEAD,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    48
    VVI_R_INPUT_BUFFER_READ_COUNT,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    49
    VVI_R_INPUT_BUFFER_WRITE_COUNT,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    50
    VVI_R_INPUT_BUFFER_MAX_TAIL,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    51
    VVI_R_REQUEST_ID
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    52
    };
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    53
#define ASSERT_PANIC(c,p) __ASSERT_DEBUG(c,Kern::PanicCurrentThread(KVirtualVideoHwInterfacePanic,p));
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    54
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    55
// ============================ LOCAL FUNCTIONS ================================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    56
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    57
// Get register offset for certain register range and register
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    58
inline TLinAddr RegisterOffset( DVirtualVideoHwInterface::TRegister aRegister )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    59
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    60
    return KRegisterOffsets[aRegister];
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    61
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    62
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    63
// ============================ MEMBER FUNCTIONS ===============================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    64
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    65
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    66
// DVirtualVideoHwInterface::DVirtualVideoHwInterface
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    67
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    68
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    69
DVirtualVideoHwInterface::DVirtualVideoHwInterface()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    70
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    71
    iInputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    72
    iOutputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    73
    iRegisterMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    74
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    75
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    76
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    77
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    78
// DVirtualVideoHwInterface::~DVirtualVideoHwInterface
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    79
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    80
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    81
DVirtualVideoHwInterface::~DVirtualVideoHwInterface()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    82
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    83
    // Enter critical section
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    84
    NKern::ThreadEnterCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    85
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    86
    if ( iInputParametersMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    87
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    88
        Kern::ChunkClose( iInputParametersMemoryChunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    89
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    90
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    91
    if ( iOutputParametersMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    92
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    93
        Kern::ChunkClose( iOutputParametersMemoryChunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    94
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    95
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    96
    if ( iRegisterMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    97
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    98
        Kern::ChunkClose( iRegisterMemoryChunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    99
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   100
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   101
    iInputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   102
    iOutputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   103
    iRegisterMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   104
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   105
    // Leave critical section
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   106
    NKern::ThreadLeaveCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   107
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   108
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   109
TInt DVirtualVideoHwInterface::InitParametersInputMemory()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   110
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   111
    return InitPhysicalMemory( VVI_PARAMETERS_INPUT_BASE_ADDRESS, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   112
            VVI_PARAMETERS_INPUT_MEMORY_SIZE, iInputParametersMemoryChunk, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   113
            iInputParametersChunkKernelAddress );    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   114
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   115
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   116
TInt DVirtualVideoHwInterface::InitParametersOutputMemory()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   117
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   118
    return InitPhysicalMemory( VVI_PARAMETERS_OUTPUT_BASE_ADDRESS, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   119
            VVI_PARAMETERS_OUTPUT_MEMORY_SIZE, iOutputParametersMemoryChunk, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   120
            iOutputParametersChunkKernelAddress );    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   121
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   122
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   123
TInt DVirtualVideoHwInterface::InitRegisterMemory()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   124
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   125
    return InitPhysicalMemory( VVI_REGISTERS_BASE_ADDRESS, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   126
            VVI_REGISTERS_MEMORY_SIZE, iRegisterMemoryChunk, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   127
            iRegisterChunkKernelAddress );        
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   128
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   129
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   130
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   131
// DVirtualVideoHwInterface::InitPhysicalMemory
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   132
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   133
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   134
TInt DVirtualVideoHwInterface::InitPhysicalMemory( TUint32 aPhysicalAddress, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   135
        TInt aMaxSize, DChunk*& aChunk, TLinAddr& aLinAddr )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   136
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   137
    TInt error = KErrNoMemory;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   138
    TChunkCreateInfo info;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   139
    info.iType = TChunkCreateInfo::ESharedKernelSingle;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   140
    info.iMaxSize = aMaxSize;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   141
	info.iMapAttr = EMapAttrFullyBlocking;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   142
    info.iOwnsMemory = EFalse;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   143
    info.iDestroyedDfc = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   144
    DChunk* chunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   145
    TUint32 mapAttr = 0;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   146
    TLinAddr chunkKernelAddress = 0;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   147
    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   148
    // Enter critical section while creating the chunk and commiting memory
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   149
    NKern::ThreadEnterCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   150
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   151
    error = Kern::ChunkCreate( info, chunk, chunkKernelAddress, mapAttr );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   152
    if ( !error )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   153
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   154
        error = Kern::ChunkCommitPhysical(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   155
            chunk, 0, aMaxSize, aPhysicalAddress );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   156
        if ( error )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   157
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   158
            Kern::ChunkClose( chunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   159
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   160
        else
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   161
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   162
            // Physical memory has been successfully committed to chunk
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   163
            aChunk = chunk; 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   164
            aLinAddr = chunkKernelAddress;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   165
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   166
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   167
    chunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   168
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   169
    // Leave critical section
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   170
    NKern::ThreadLeaveCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   171
    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   172
    VVHW_TRACE("DVirtualVideoHwInterface::InitPhysicalMemory return %d", error);
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   173
    return error;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   174
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   175
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   176
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   177
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   178
// DVirtualVideoHwInterface::EnableInterrupts
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   179
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   180
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   181
void DVirtualVideoHwInterface::EnableInterrupts( TUint32 aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   182
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   183
    SetRegisterValue( ERegIrqEnable, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   184
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   185
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   186
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   187
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   188
// DVirtualVideoHwInterface::GetInterruptEnabledState
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   189
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   190
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   191
void DVirtualVideoHwInterface::GetInterruptEnabledState( TUint32& aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   192
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   193
    GetRegisterValue( ERegIrqEnable, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   194
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   195
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   196
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   197
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   198
// DVirtualVideoHwInterface::GetInterruptStatus
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   199
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   200
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   201
void DVirtualVideoHwInterface::GetInterruptStatus( TUint32& aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   202
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   203
    GetRegisterValue( ERegIrqStatus, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   204
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   205
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   206
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   207
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   208
// DVirtualVideoHwInterface::ResetInterruptStatus
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   209
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   210
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   211
void DVirtualVideoHwInterface::ResetInterruptStatus( TUint32 aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   212
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   213
    SetRegisterValue( ERegIrqStatus, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   214
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   215
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   216
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   217
// DVirtualVideoHwInterface::IssueCommand
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   218
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   219
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   220
void DVirtualVideoHwInterface::IssueCommand( TUint32 aCommand )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   221
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   222
    SetRegisterValue( ERegCommand, aCommand );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   223
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   224
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   225
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   226
// DVirtualVideoHwInterface::GetRegisterValue
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   227
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   228
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   229
void DVirtualVideoHwInterface::GetRegisterValue(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   230
    TRegister aRegister,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   231
    TUint32& aValue )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   232
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   233
    if ( iRegisterMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   234
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   235
        TLinAddr offset = RegisterOffset( aRegister );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   236
        TUint32* ptr = reinterpret_cast<TUint32*>( iRegisterChunkKernelAddress + offset );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   237
        aValue = *ptr;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   238
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   239
    else
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   240
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   241
        Kern::PanicCurrentThread( KVirtualVideoHwInterfacePanic, KErrNotReady );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   242
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   243
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   244
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   245
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   246
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   247
// DVirtualVideoHwInterface::SetRegisterValue
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   248
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   249
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   250
void DVirtualVideoHwInterface::SetRegisterValue(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   251
    TRegister aRegister,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   252
    TUint32 aValue )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   253
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   254
    if ( iRegisterMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   255
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   256
        TLinAddr offset = RegisterOffset( aRegister );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   257
        TUint32* ptr = reinterpret_cast<TUint32*>( iRegisterChunkKernelAddress + offset );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   258
        *ptr = aValue;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   259
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   260
    else
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   261
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   262
        Kern::PanicCurrentThread( KVirtualVideoHwInterfacePanic, KErrNotReady );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   263
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   264
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   265
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   266
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   267
// End of file