guestrendering/guestvideodriver/ldd/src/virtualvideohwchannel.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 4 e6f11c873cdf
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        : virtualvideohwchannel.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 of the class DVirtualVideoHwChannel.
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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: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
     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-2010 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
#include <kernel/kernel.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
    21
#include <assp.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
    22
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 <graphics/virtualvideohwchannel.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
#include <graphics/virtualvideohwdeviceinterface.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
    25
#include <graphics/guestvideodriverprotocol.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/guestvideodrivercommon.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/devicereqhandler.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
#include "serializedfunctioncall.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
    30
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::DVirtualVideoHwChannel
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
DVirtualVideoHwChannel::DVirtualVideoHwChannel(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    MVirtualVideoHwDeviceInterface& aDeviceInterface,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    DVirtualVideoHwInterface& aHwInterface,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    DDeviceReqHandler& aDeviceReqHandler,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TDfcQue* aQueue ) :
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    iDeviceInterface( aDeviceInterface ),
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    iHwInterface( aHwInterface ),
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    iReqHandler( aDeviceReqHandler )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    {    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    SetDfcQ( aQueue );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::~DVirtualVideoHwChannel
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
DVirtualVideoHwChannel::~DVirtualVideoHwChannel()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    // 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
    54
    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
    55
    iMsgQ.CompleteAll( KErrAbort );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    // 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
    57
    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
    58
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::Request
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
TInt DVirtualVideoHwChannel::Request( TInt aReqNo, TAny *a1, TAny *a2 )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TInt result = DLogicalChannel::Request( aReqNo, a1, a2 );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    return result;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::HandleMsg
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
void DVirtualVideoHwChannel::HandleMsg( TMessageBase* aMsgRequest )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    DThread* userThread = aMsgRequest->Client();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TThreadMessage& msg = *(TThreadMessage*)aMsgRequest;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    // Default error condition
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TInt err = KErrNone; 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    if ( msg.iValue == ECloseMsg )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        iReqHandler.HandleClientShutdown( userThread->iOwningProcess->iId, userThread->iId );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        msg.Complete( KErrNone, 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
    85
        return;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    if ( msg.iValue < 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
    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
        TRequestStatus* status = (TRequestStatus*)msg.Ptr0();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        err = DoRequest( userThread, ~msg.iValue, status, msg.Ptr1(), msg.Ptr2() );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        if( err != KErrNone )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            Kern::RequestComplete( userThread, status, err );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        err = KErrNone;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    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
    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
        err = DoControl( userThread, msg.iValue, msg.Ptr0(), msg.Ptr1() );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    msg.Complete( err, ETrue );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::DoCreate
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
TInt DVirtualVideoHwChannel::DoCreate( TInt /*aUnit*/, const TDesC* /*aInfo*/, const TVersion& aVer )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    using namespace GuestVideoDriver;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TInt err = KErrNone;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    if ( ! Kern::QueryVersionSupported(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            TVersion(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    KMajorVer,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    KMinorVer,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    KBuildVer ),
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            aVer ) )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        return KErrNotSupported; 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    iMsgQ.Receive();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    return err;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::DoRequest
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
TInt DVirtualVideoHwChannel::DoRequest(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        DThread*& aUserThread,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 aReqNo,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        TRequestStatus* aStatus,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        TAny* a1,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        TAny* a2 )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    using namespace GuestVideoDriver;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    // Default error condition
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TInt err = KErrNone; 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    switch( aReqNo )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        case ERequestExecuteCommand:
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            err = iReqHandler.HandleExecuteAsync(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    aUserThread,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    aStatus,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    a1);
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            break;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        case ERequestLoadCommands:
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            err = iReqHandler.HandleLoadCommands(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    aUserThread, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    aStatus,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    a1 );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            break;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        default:
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            // Other requests are not supported
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            err = KErrNotSupported;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            break;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    return err;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
#ifdef FAISALMEMON_S4_SGIMAGE
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
TInt DVirtualVideoHwChannel::GetSgImageMetaData(TSgImageMetaData& aSgInfo, const TUint64 aId)
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
	VVHW_TRACE("DVirtualVideoHwChannel::OpenSgImageMetaData 0x%lx", aId );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
	DSgResource* sgResource = 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
   180
	TInt metaDataErr = SgExtension::FindAndOpenResource( aId, sgResource );//Open the sgimage resource
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
	
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
	if ( metaDataErr == KErrNone )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
		{
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
		TPckgBuf<TSgImageMetaData> metaDataPckg;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
		metaDataErr = sgResource->GetMetaData( metaDataPckg );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
		if ( metaDataErr == KErrNone )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
			{
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
			aSgInfo = metaDataPckg();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
		sgResource->Close();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
		}
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
	return metaDataErr;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
#endif
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// DVirtualVideoHwChannel::DoControl
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
TInt DVirtualVideoHwChannel::DoControl(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        DThread*& aUserThread,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        TInt aFunction,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        TAny* a1,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        TAny* a2 )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    using namespace GuestVideoDriver;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    // Default error condition
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    TInt err = KErrNone; 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
    switch( aFunction )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        case ERequestMapAddress:
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            TPckgBuf<TInt> handle;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            err = Kern::ThreadDesRead( aUserThread, a1, handle, 0, 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
   220
            if ( KErrNone == err )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                DChunk* chunk = Kern::OpenSharedChunk( aUserThread, handle(), 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
   223
                if ( 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
   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
                    TLinAddr kernelAddress;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    TUint32 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
   227
                    TUint32 physicalAddress( 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
   228
                    TInt ret = Kern::ChunkPhysicalAddress( chunk, 0, chunk->Size(), 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                            kernelAddress, mapAttr, physicalAddress );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    TPckgC<TUint32> address( physicalAddress );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    err = Kern::ThreadDesWrite( aUserThread, a2, address, 0, 0, aUserThread );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    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
   234
                    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
   235
                    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                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
   237
                    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    err = KErrGeneral;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            break;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
#ifdef FAISALMEMON_S4_SGIMAGE
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
        case ERequestSgHandles:
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            VVHW_TRACE("DVirtualVideoHwChannel::DoControl - ERequestSgHandles" );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            TPckgBuf<TUint64> sgId;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            err = Kern::ThreadDesRead( aUserThread, a1, sgId, 0, 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
   249
            if( KErrNone == err )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
                {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
				TSgImageMetaData sgInfo;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
				err = GetSgImageMetaData( sgInfo, sgId());
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
				if ( KErrNone == err )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
					{
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
					// package the handles into 64-bit value, since there's only one parameter (a2) available
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
					TUint64 sgHandles = (((TUint64)sgInfo.iPbufferHandle)&0xFFFFFFFF) + (((TUint64)sgInfo.iVGImageHandle)<<32);
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
					TPckg<TUint64> handles(sgHandles);
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
					err = Kern::ThreadDesWrite( aUserThread, a2, handles, 0, 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
   259
					if(err)
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
					    VVHW_TRACE("DVirtualVideoHwChannel::DoControl - ThreadDesWrite error=%d", err);
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
				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
   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
					VVHW_TRACE("DVirtualVideoHwChannel::DoControl - OpenSgImageMetaData failed" );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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
            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
   268
            	{
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   269
				VVHW_TRACE("DVirtualVideoHwChannel::DoControl - ThreadDesRead err=%i", err );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   270
                }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   271
            break;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   272
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   273
#endif
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   274
        default:
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   275
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   276
            // Other functions are not supported
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   277
            err = KErrNotSupported;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   278
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   279
            break;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   280
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   281
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   282
    return err;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   283
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   284