author | Faisal Memon <faisal.memon@nokia.com> |
Fri, 20 Aug 2010 18:02:40 +0100 | |
branch | bug235_bringup_0 |
changeset 1 | d8d95053303a |
child 2 | e8ccf068ac7f |
permissions | -rwxr-xr-x |
1
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
1 |
/* |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
2 |
* ============================================================================= |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
3 |
* Name : virtualvideohwdevice.cpp |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
4 |
* Part of : |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
5 |
* Description : Implementation of the class DVirtualVideoHwDevice. |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
6 |
* Version : %version:3 % |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
7 |
* |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
8 |
* Copyright © 2002-2008 Nokia. All rights reserved. |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
9 |
* This material, including documentation and any related |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
10 |
* computer programs, is protected by copyright controlled by |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
11 |
* Nokia. All rights are reserved. Copying, including |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
12 |
* reproducing, storing, adapting or translating, any |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
13 |
* or all of this material requires the prior written consent of |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
14 |
* Nokia. This material also contains confidential |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
15 |
* information which may not be disclosed to others without the |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
16 |
* prior written consent of Nokia. |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
17 |
* ============================================================================= |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
18 |
*/ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
19 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
20 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
21 |
// INCLUDE FILES |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
22 |
#include <kernel/kernel.h> |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
23 |
#include <assp.h> |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
24 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
25 |
#include "virtualvideohwdevice.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
26 |
#include "virtualvideohwchannel.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
27 |
#include "platsimvideodriverprotocol.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
28 |
#include "platsimvideodrivercommon.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
29 |
#include "virtualvideohwinterface.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
30 |
#include "devicereqhandler.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
31 |
#include "virtualvideotracing.h" |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
32 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
33 |
const TInt KPriority = 27; // DfcQue0 has same priority |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
34 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
35 |
// a .LDD requires that the first exported function creates the device. By |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
36 |
// returning a concrete DLogicalDevice-derived class, this implements |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
37 |
// polymorphism using a named DLL. |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
38 |
DECLARE_STANDARD_LDD() |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
39 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
40 |
return new DVirtualVideoHwDevice; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
41 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
42 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
43 |
// ============================ MEMBER FUNCTIONS =============================== |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
44 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
45 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
46 |
// DVirtualVideoHwDevice::DVirtualVideoHwDevice |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
47 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
48 |
// |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
49 |
DVirtualVideoHwDevice::DVirtualVideoHwDevice() |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
50 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
51 |
// No need to set iParseMask as we don't have PDD. |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
52 |
// Just set the version. |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
53 |
using namespace PlatsimVideoDriver; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
54 |
iVersion = TVersion( KMajorVer, KMinorVer, KBuildVer ); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
55 |
VVHW_TRACE("DVirtualVideoHwDevice::DVirtualVideoHwDevice"); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
56 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
57 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
58 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
59 |
// DVirtualVideoHwDevice::Install |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
60 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
61 |
// |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
62 |
TInt DVirtualVideoHwDevice::Install() |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
63 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
64 |
// Our name, used by User::FreeLogicalDevice |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
65 |
TInt err = SetName( &PlatsimVideoDriver::KDeviceName ); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
66 |
if ( err != KErrNone ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
67 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
68 |
VVHW_TRACE("DVirtualVideoHwDevice::Install SetName %d", err); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
69 |
return err; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
70 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
71 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
72 |
// Enter critical section |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
73 |
NKern::ThreadEnterCS(); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
74 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
75 |
err = Kern::DfcQCreate( iDfcQ, KPriority, &PlatsimVideoDriver::KDfcThreadName ); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
76 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
77 |
// Leave critical section |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
78 |
NKern::ThreadLeaveCS(); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
79 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
80 |
if ( err != KErrNone ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
81 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
82 |
VVHW_TRACE("DVirtualVideoHwDevice::Install Kern::DfcQCreate %d", err); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
83 |
return err; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
84 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
85 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
86 |
iHwInterface = new DVirtualVideoHwInterface; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
87 |
if ( !iHwInterface ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
88 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
89 |
return KErrNoMemory; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
90 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
91 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
92 |
err = iHwInterface->InitRegisterMemory(); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
93 |
if ( err != KErrNone ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
94 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
95 |
VVHW_TRACE("DVirtualVideoHwDevice::Install InitRegisterMemory %d", err); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
96 |
return err; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
97 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
98 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
99 |
err = iHwInterface->InitParametersInputMemory(); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
100 |
if ( err != KErrNone ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
101 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
102 |
VVHW_TRACE("DVirtualVideoHwDevice::Install InitParametersInputMemory %d", err); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
103 |
return err; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
104 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
105 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
106 |
err = iHwInterface->InitParametersOutputMemory(); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
107 |
if ( err != KErrNone ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
108 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
109 |
VVHW_TRACE("DVirtualVideoHwDevice::Install InitParametersOutputMemory %d", err); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
110 |
return err; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
111 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
112 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
113 |
iDeviceReqHandler = new DDeviceReqHandler( *iHwInterface, iDfcQ ); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
114 |
if ( !iDeviceReqHandler ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
115 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
116 |
return KErrNoMemory; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
117 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
118 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
119 |
VVHW_TRACE("DVirtualVideoHwDevice::Install return %d", err); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
120 |
return err; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
121 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
122 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
123 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
124 |
// DVirtualVideoHwDevice::~DVirtualVideoHwDevice |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
125 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
126 |
// |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
127 |
DVirtualVideoHwDevice::~DVirtualVideoHwDevice() |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
128 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
129 |
delete iDeviceReqHandler; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
130 |
delete iDfcQ; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
131 |
delete iHwInterface; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
132 |
VVHW_TRACE("DVirtualVideoHwDevice:~DVirtualVideoHwDevice"); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
133 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
134 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
135 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
136 |
// DVirtualVideoHwDevice::GetCaps |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
137 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
138 |
// |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
139 |
void DVirtualVideoHwDevice::GetCaps( TDes8& aDes ) const |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
140 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
141 |
TVersion version; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
142 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
143 |
// fill it with information |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
144 |
version = iVersion; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
145 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
146 |
// copy as much of our information as will fit into this descriptor |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
147 |
aDes.Copy( (TUint8*)&version, Min( aDes.MaxLength(), sizeof( version ) ) ); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
148 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
149 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
150 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
151 |
// DVirtualVideoHwDevice::Create |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
152 |
// ----------------------------------------------------------------------------- |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
153 |
// |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
154 |
TInt DVirtualVideoHwDevice::Create( DLogicalChannelBase*& aChannel ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
155 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
156 |
aChannel = NULL; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
157 |
TInt error = KErrNone; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
158 |
aChannel = new DVirtualVideoHwChannel( |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
159 |
*this, |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
160 |
*iHwInterface, |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
161 |
*iDeviceReqHandler, |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
162 |
iDfcQ); |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
163 |
|
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
164 |
if ( !aChannel ) |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
165 |
{ |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
166 |
error = KErrNoMemory; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
167 |
} |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
168 |
return error; |
d8d95053303a
Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
169 |
} |