author | Faisal Memon <faisal.memon@nokia.com> |
Thu, 26 Aug 2010 13:24:02 +0100 | |
branch | bug235_bringup_0 |
changeset 4 | e6f11c873cdf |
parent 3 | ccf5191a9db1 |
child 7 | ec0e558822c5 |
permissions | -rwxr-xr-x |
4
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
1 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
2 |
// All rights reserved. |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
7 |
// |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
8 |
// Initial Contributors: |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
10 |
// |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
11 |
// Contributors: |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
12 |
// |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
13 |
// Description: |
e6f11c873cdf
Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents:
3
diff
changeset
|
14 |
// Implementation of Virtual Video Hardware Interface |
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
|
15 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// INCLUDE FILES |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
18 |
#include <platform.h> |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
19 |
#include <kern_priv.h> |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
20 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
21 |
#include <graphics/guestvideodriverinterfaceconstants.h> |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
22 |
#include <graphics/virtualvideohwinterface.h> |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
23 |
#include <graphics/virtualvideotracing.h> |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
24 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
25 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// CONSTANTS |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
27 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
_LIT( KVirtualVideoHwInterfacePanic, "DVirtualVideoHwInterface" ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
29 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
30 |
// ============================ LOCAL DATA TYPES =============================== |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
// Register offsets for playback and recording channels |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
33 |
// Note: The orders of these must match the order of enumarations |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
34 |
const TLinAddr KRegisterOffsets[] = |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
35 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
36 |
VVI_R_ID, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
37 |
VVI_R_IRQ_ENABLE, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
38 |
VVI_R_IRQ_STATUS, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
39 |
VVI_R_COMMAND, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
40 |
VVI_R_PARAMETER_LOAD, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
41 |
VVI_R_ERROR, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
42 |
VVI_R_INPUT_BUFFER_TAIL, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
43 |
VVI_R_INPUT_BUFFER_HEAD, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
44 |
VVI_R_INPUT_BUFFER_READ_COUNT, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
45 |
VVI_R_INPUT_BUFFER_WRITE_COUNT, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
46 |
VVI_R_INPUT_BUFFER_MAX_TAIL, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
47 |
VVI_R_REQUEST_ID |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
48 |
}; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
#define ASSERT_PANIC(c,p) __ASSERT_DEBUG(c,Kern::PanicCurrentThread(KVirtualVideoHwInterfacePanic,p)); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
// ============================ LOCAL FUNCTIONS ================================ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
// Get register offset for certain register range and register |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
54 |
inline TLinAddr RegisterOffset( DVirtualVideoHwInterface::TRegister aRegister ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
55 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return KRegisterOffsets[aRegister]; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
57 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// ============================ MEMBER FUNCTIONS =============================== |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::DVirtualVideoHwInterface |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
DVirtualVideoHwInterface::DVirtualVideoHwInterface() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
66 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
iInputParametersMemoryChunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
68 |
iOutputParametersMemoryChunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
69 |
iRegisterMemoryChunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::~DVirtualVideoHwInterface |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
75 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
76 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
77 |
DVirtualVideoHwInterface::~DVirtualVideoHwInterface() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
78 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// 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
|
80 |
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
|
81 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
if ( iInputParametersMemoryChunk ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
83 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
Kern::ChunkClose( iInputParametersMemoryChunk ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
85 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
86 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
if ( iOutputParametersMemoryChunk ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
88 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
Kern::ChunkClose( iOutputParametersMemoryChunk ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
90 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
91 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 ( iRegisterMemoryChunk ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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::ChunkClose( iRegisterMemoryChunk ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
iInputParametersMemoryChunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
98 |
iOutputParametersMemoryChunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
99 |
iRegisterMemoryChunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
100 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
101 |
// 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
|
102 |
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
|
103 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TInt DVirtualVideoHwInterface::InitParametersInputMemory() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
return InitPhysicalMemory( VVI_PARAMETERS_INPUT_BASE_ADDRESS, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
108 |
VVI_PARAMETERS_INPUT_MEMORY_SIZE, iInputParametersMemoryChunk, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
109 |
iInputParametersChunkKernelAddress ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
110 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
111 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TInt DVirtualVideoHwInterface::InitParametersOutputMemory() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
113 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return InitPhysicalMemory( VVI_PARAMETERS_OUTPUT_BASE_ADDRESS, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
115 |
VVI_PARAMETERS_OUTPUT_MEMORY_SIZE, iOutputParametersMemoryChunk, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
116 |
iOutputParametersChunkKernelAddress ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
117 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
118 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TInt DVirtualVideoHwInterface::InitRegisterMemory() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
120 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return InitPhysicalMemory( VVI_REGISTERS_BASE_ADDRESS, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
122 |
VVI_REGISTERS_MEMORY_SIZE, iRegisterMemoryChunk, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
123 |
iRegisterChunkKernelAddress ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::InitPhysicalMemory |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
TInt DVirtualVideoHwInterface::InitPhysicalMemory( TUint32 aPhysicalAddress, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
131 |
TInt aMaxSize, DChunk*& aChunk, TLinAddr& aLinAddr ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 error = KErrNoMemory; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
134 |
TChunkCreateInfo info; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
135 |
info.iType = TChunkCreateInfo::ESharedKernelSingle; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
136 |
info.iMaxSize = aMaxSize; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
137 |
info.iMapAttr = EMapAttrFullyBlocking; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
138 |
info.iOwnsMemory = EFalse; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
139 |
info.iDestroyedDfc = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
140 |
DChunk* chunk = NULL; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
141 |
TUint32 mapAttr = 0; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
142 |
TLinAddr chunkKernelAddress = 0; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
143 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// Enter critical section while creating the chunk and commiting memory |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
145 |
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
|
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 |
error = Kern::ChunkCreate( info, chunk, chunkKernelAddress, mapAttr ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
148 |
if ( !error ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
149 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
error = Kern::ChunkCommitPhysical( |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
151 |
chunk, 0, aMaxSize, aPhysicalAddress ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
152 |
if ( error ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
153 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
154 |
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
|
155 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
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
|
157 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
158 |
// Physical memory has been successfully committed to chunk |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
159 |
aChunk = chunk; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
160 |
aLinAddr = chunkKernelAddress; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
161 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
162 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
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
|
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 |
// 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
|
166 |
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
|
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 |
VVHW_TRACE("DVirtualVideoHwInterface::InitPhysicalMemory return %d", error); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
169 |
return error; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
170 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::EnableInterrupts |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
175 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
176 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
177 |
void DVirtualVideoHwInterface::EnableInterrupts( TUint32 aInterruptBitField ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
178 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
SetRegisterValue( ERegIrqEnable, aInterruptBitField ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
180 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
181 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
182 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
183 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::GetInterruptEnabledState |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
185 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
186 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
187 |
void DVirtualVideoHwInterface::GetInterruptEnabledState( TUint32& aInterruptBitField ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
GetRegisterValue( ERegIrqEnable, aInterruptBitField ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::GetInterruptStatus |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
195 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
196 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
197 |
void DVirtualVideoHwInterface::GetInterruptStatus( TUint32& aInterruptBitField ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
GetRegisterValue( ERegIrqStatus, aInterruptBitField ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
200 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
201 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::ResetInterruptStatus |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
205 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
206 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
207 |
void DVirtualVideoHwInterface::ResetInterruptStatus( TUint32 aInterruptBitField ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
SetRegisterValue( ERegIrqStatus, aInterruptBitField ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
212 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
213 |
// DVirtualVideoHwInterface::IssueCommand |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
214 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
215 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
216 |
void DVirtualVideoHwInterface::IssueCommand( TUint32 aCommand ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
SetRegisterValue( ERegCommand, aCommand ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
219 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
220 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::GetRegisterValue |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
223 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
224 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
225 |
void DVirtualVideoHwInterface::GetRegisterValue( |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
226 |
TRegister aRegister, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
227 |
TUint32& aValue ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
228 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
229 |
if ( iRegisterMemoryChunk ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
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 |
TLinAddr offset = RegisterOffset( aRegister ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
232 |
TUint32* ptr = reinterpret_cast<TUint32*>( iRegisterChunkKernelAddress + offset ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
233 |
aValue = *ptr; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
234 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
235 |
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
|
236 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
Kern::PanicCurrentThread( KVirtualVideoHwInterfacePanic, KErrNotReady ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
238 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
239 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
// DVirtualVideoHwInterface::SetRegisterValue |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
244 |
// ----------------------------------------------------------------------------- |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
245 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
246 |
void DVirtualVideoHwInterface::SetRegisterValue( |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
247 |
TRegister aRegister, |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
248 |
TUint32 aValue ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
249 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
250 |
if ( iRegisterMemoryChunk ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
251 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TLinAddr offset = RegisterOffset( aRegister ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
253 |
TUint32* ptr = reinterpret_cast<TUint32*>( iRegisterChunkKernelAddress + offset ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
254 |
*ptr = aValue; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
255 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
256 |
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
|
257 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
Kern::PanicCurrentThread( KVirtualVideoHwInterfacePanic, KErrNotReady ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
259 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
260 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
3
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
262 |
// TODO FAISALMEMON This is the first portion of the port of Jani's |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
263 |
// Dynamic framebuffer base address code. Inspect this code, and also |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
264 |
// put in the rest of the code. |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
265 |
EXPORT_C TPhysAddr DVirtualVideoHwInterface::GetFrameBase() |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
266 |
{ |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
267 |
#ifdef FAISALMEMON_DONE_DYNAMIC_FRAMEBUFFER_PORT |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
268 |
TPhysAddr ret = 0; |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
269 |
if(DVirtualVideoHwInterface::pVVHIf != NULL) |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
270 |
{ |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
271 |
ret = DVirtualVideoHwInterface::pVVHIf->iFrameRamPhys; |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
272 |
} |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
273 |
return ret; |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
274 |
#else |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
275 |
return 0; |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
276 |
#endif |
ccf5191a9db1
The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents:
2
diff
changeset
|
277 |
} |