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