author | Faisal Memon <faisal.memon@nokia.com> |
Thu, 02 Sep 2010 16:04:46 +0100 | |
branch | bug235_bringup_0 |
changeset 166 | 82f54ddc6d9b |
parent 165 | 3899db667a38 |
child 167 | b9003303ce25 |
permissions | -rwxr-xr-x |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
1 |
// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
2 |
// All rights reserved. |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
7 |
// |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
10 |
// |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
11 |
// Contributors: |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
12 |
// |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
13 |
// Description: |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
14 |
// |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
15 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
16 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
17 |
#ifndef VIRTUALVIDEOHWINTERFACE_H |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
18 |
#define VIRTUALVIDEOHWINTERFACE_H |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
19 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
20 |
#include <kernel/kernel.h> |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
21 |
#include <graphics/guestvideodriverinterfaceconstants.h> |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
22 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
23 |
/** |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
24 |
* Class that encapsulates the Virtual Video Hw interface behind a function |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
25 |
* interface. Intended to be instantiated only once in the device driver. |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
26 |
*/ |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
27 |
class DVirtualVideoHwInterface : public DBase |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
28 |
{ |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
29 |
public: // Data types |
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
30 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
31 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
32 |
* Enumeration for different interrupts. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
33 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
34 |
enum TInterrupt |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
35 |
{ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
36 |
EInterruptNewDataAvailable = 0x01 ///< Video HW has new data available |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
37 |
}; |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
38 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
39 |
* Enumeration for different registers. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
40 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
41 |
enum TRegister |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
42 |
{ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
43 |
ERegId, ///< Id register |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
44 |
ERegIrqEnable, ///< IRQ enabling register |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
45 |
ERegIrqStatus, ///< IRQ status register |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
46 |
ERegCommand, ///< Command register |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
47 |
ERegParameterLoad, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
48 |
ERegError, ///< |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
49 |
ERegInputBufferTail, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
50 |
ERegInputBufferHead, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
51 |
ERegInputBufferReadCount, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
52 |
ERegInputBufferWriteCount, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
53 |
ERegInputBufferMaxTail, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
54 |
ERegRequestId, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
55 |
ERegSharedCmdMemBase, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
56 |
ERegSharedFramebufferMemBase, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
57 |
ENumRegisters ///< Number of registers |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
58 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
59 |
}; |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
60 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
61 |
public: // Construction and destruction |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
62 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
63 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
64 |
* Constructor. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
65 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
66 |
DVirtualVideoHwInterface(); |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
67 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
68 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
69 |
* Destructor. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
70 |
* NOTE: Enters and leaves critical section. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
71 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
72 |
virtual ~DVirtualVideoHwInterface(); |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
73 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
74 |
public: // Functions |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
75 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
76 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
77 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
78 |
* Initializes the Virtual Video HW's memory mapped I/O model. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
79 |
* NOTE: Enters and leaves critical section. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
80 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
81 |
* @return System-wide error code |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
82 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
83 |
TInt InitParametersInputMemory(); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
84 |
TInt InitParametersOutputMemory(); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
85 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
86 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
87 |
* Enables interrupts in the Virtual Video HW. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
88 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
89 |
* @param aChannel The channel, whose interrupts are enabled |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
90 |
* @param aInterruptBitField A bitmask of TInterrupt enumeration. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
91 |
* Enabled interrupt bits should be set to 1 and disabled interrupt |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
92 |
* bits to 0. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
93 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
94 |
void EnableInterrupts( TUint32 aInterruptBitField ); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
95 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
96 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
97 |
* Initializes the Virtual Video HW's memory mapped I/O model. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
98 |
* NOTE: Enters and leaves critical section. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
99 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
100 |
* @return System-wide error code |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
101 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
102 |
TInt InitRegisterMemory(); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
103 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
104 |
* Retrieves interrupt enabled state in the Virtual Video HW. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
105 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
106 |
* @param aChannel The channel, whose interrupt states are queried |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
107 |
* @param aInterruptBitField A reference parameter, where a bitmask of |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
108 |
* TInterrupt enumeration will be written. Enabled interrupt bits |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
109 |
* are set to 1 and disabled interrupt bits to 0. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
110 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
111 |
void GetInterruptEnabledState( TUint32& aInterruptBitField ); |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
112 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
113 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
114 |
* Retrieves interrupt status in the Virtual Video HW. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
115 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
116 |
* @param aChannel The channel, whose interrupt status is queried |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
117 |
* @param aInterruptBitField A reference parameter, where a bitmask of |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
118 |
* TInterrupt enumeration will be written. Those interrupt lines |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
119 |
* are active, whose bits are set to 1 in the bitmask. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
120 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
121 |
void GetInterruptStatus( TUint32& aInterruptBitField ); |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
122 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
123 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
124 |
* Resets interrupt status in the Virtual Video HW. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
125 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
126 |
* @param aChannel The channel, whose interrupt statuses are being reset |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
127 |
* @param aInterruptBitField The bitmask of TInterrupt enumeration. Those |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
128 |
* interrupts are reset, whose bits are set to 1 in the bitfield. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
129 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
130 |
void ResetInterruptStatus( TUint32 aInterruptBitField ); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
131 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
132 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
133 |
* Issues a command to the Virtual Video HW. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
134 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
135 |
* @param aCommand One of TCommand enumeration commands. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
136 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
137 |
void IssueCommand( TUint32 aCommand ); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
138 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
139 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
140 |
* Set shared command memory base address. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
141 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
142 |
* @param aPhysicalAddress Physical address of the contiguous memory area reserved for video device. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
143 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
144 |
void SetSharedCmdMemBase( TUint32 aPhysicalAddress ); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
145 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
146 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
147 |
* Set shared framebuffer memory base address. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
148 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
149 |
* @param aPhysicalAddress Physical address of the contiguous memory area reserved for video device. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
150 |
*/ |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
151 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
152 |
void SetSharedFramebufferMemBase( TUint32 aPhysicalAddress ); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
153 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
154 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
155 |
* Address to input parameter buffer |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
156 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
157 |
TLinAddr InputParametersAddress(){ return iInputParametersChunkKernelAddress; } |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
158 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
159 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
160 |
* Address to output parameter buffer |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
161 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
162 |
TLinAddr OutputParametersAddress(){ return iOutputParametersChunkKernelAddress; } |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
163 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
164 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
165 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
166 |
* Gets a register value. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
167 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
168 |
* @param aRegisterRange The register range |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
169 |
* @param aRegister The register in the given register range, whose value is being read |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
170 |
* @param aValue A reference parameter, where the register's value is written |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
171 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
172 |
void GetRegisterValue( |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
173 |
TRegister aRegister, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
174 |
TUint32& aValue ); |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
175 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
176 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
177 |
* Sets a register value. |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
178 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
179 |
* @param aRegisterRange The register range |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
180 |
* @param aRegister The register in the given register range, whose value is being written |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
181 |
* @param aValue A new value to be written into register |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
182 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
183 |
void SetRegisterValue( TRegister aRegister, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
184 |
TUint32 aValue ); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
185 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
186 |
IMPORT_C static TPhysAddr GetFrameBase(); |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
187 |
|
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
188 |
public: |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
189 |
TPhysAddr iFrameRamPhys; |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
190 |
static DVirtualVideoHwInterface * pVVHIf; |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
191 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
192 |
protected: |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
193 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
194 |
/** |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
195 |
* Maps a virtual address range to physical address space |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
196 |
* |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
197 |
* @param aPhysicalAddress |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
198 |
* @param aMaxSize |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
199 |
* @param aChunk |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
200 |
* @param aLinAddr |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
201 |
* @return System wide error code |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
202 |
*/ |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
203 |
TInt InitPhysicalMemory( TUint32 aPhysicalAddress, |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
204 |
TInt aMaxSize, DChunk*& aChunk, TLinAddr& aLinAddr ); |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
205 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
206 |
private: // Data |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
207 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
208 |
/// A memory chunk that is mapped to the Virtual Video HW's physical memory area |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
209 |
DChunk* iRegisterMemoryChunk; |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
210 |
/// The virtual start address of the Virtual Video HW's memory map |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
211 |
TLinAddr iRegisterChunkKernelAddress; |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
212 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
213 |
/// A memory chunk that is mapped to the Virtual Video HW's physical memory area |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
214 |
DChunk* iInputParametersMemoryChunk; |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
215 |
/// The virtual start address of the Virtual Video HW's memory map |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
216 |
TLinAddr iInputParametersChunkKernelAddress; |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
217 |
|
165
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
218 |
/// A memory chunk that is mapped to the Virtual Video HW's physical memory area |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
219 |
DChunk* iOutputParametersMemoryChunk; |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
220 |
/// The virtual start address of the Virtual Video HW's memory map |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
221 |
TLinAddr iOutputParametersChunkKernelAddress; |
3899db667a38
Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents:
148
diff
changeset
|
222 |
TPhysAddr iVideoRamPhys; |
146
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
223 |
}; |
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
224 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
225 |
|
4d1fe4a7ce83
Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff
changeset
|
226 |
#endif // VIRTUALVIDEOHWINTERFACE_H |