author | Gareth Stockwell <gareth.stockwell@accenture.com> |
Fri, 24 Sep 2010 12:02:56 +0100 | |
branch | bug235_bringup_0 |
changeset 37 | 1a4430846fcf |
parent 30 | f204b762818d |
permissions | -rw-r--r-- |
23
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
1 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
2 |
// All rights reserved. |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
7 |
// |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
10 |
// |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
11 |
// Contributors: |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
12 |
// |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
13 |
// Description: |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
14 |
// Header file for the guest video driver |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
15 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
16 |
#ifndef VirtualVideoInterfaceConstants_h_ |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
17 |
#define VirtualVideoInterfaceConstants_h_ |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
18 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
19 |
// virtualhw.irq => ic.input[391]; |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
20 |
// pvbus.pvbus_m_range[0x60000000..0x62ffffff] => graphicsvirtualhw.mbus; //=>Reserve own memory area later |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
21 |
// pvbus.pvbus_m_range[0x63000000..0x63000fff] => graphicsvirtualhw.pbus; //=>Reserve own memory area later |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
22 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
23 |
#ifdef PLATSIM_CONFIG |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
24 |
#define VVI_BASE 0x60000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
25 |
#else |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
26 |
#define VVI_BASE 0x00000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
27 |
#endif // PLATSIM_CONFIG |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
28 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
29 |
// base address |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
30 |
#define VVI_REGISTERS_BASE_ADDRESS VVI_BASE + 0x03000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
31 |
#define VVI_REGISTERS_MEMORY_SIZE 0x1000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
32 |
#define VVI_REGISTERS_MASK 0x0FFF |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
33 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
34 |
#define VVI_PARAMETERS_INPUT_BASE_ADDRESS VVI_BASE + 0x00000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
35 |
#define VVI_PARAMETERS_INPUT_MEMORY_SIZE 0x01000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
36 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
37 |
#define VVI_PARAMETERS_OUTPUT_BASE_ADDRESS VVI_BASE + 0x01000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
38 |
#define VVI_PARAMETERS_OUTPUT_MEMORY_SIZE 0x01000000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
39 |
|
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
23
diff
changeset
|
40 |
#define VVI_SURFACEBUFFER_BASE_ADDRESS VVI_BASE + 0x02000000 |
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
23
diff
changeset
|
41 |
#define VVI_SURFACEBUFFER_MEMORY_SIZE 0x01000000 |
23
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
42 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
43 |
// register indices, TODO: cleanup needed, some are not used |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
44 |
#define VVI_R_ID 0x0000 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
45 |
#define VVI_R_IRQ_ENABLE 0x0004 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
46 |
#define VVI_R_IRQ_STATUS 0x0008 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
47 |
#define VVI_R_COMMAND 0x000c |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
48 |
#define VVI_R_PARAMETER_LOAD 0x0010 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
49 |
#define VVI_R_ERROR 0x0014 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
50 |
#define VVI_R_INPUT_BUFFER_TAIL 0x0018 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
51 |
#define VVI_R_INPUT_BUFFER_HEAD 0x001c |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
52 |
#define VVI_R_INPUT_BUFFER_READ_COUNT 0x0020 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
53 |
#define VVI_R_INPUT_BUFFER_WRITE_COUNT 0x0024 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
54 |
#define VVI_R_INPUT_BUFFER_MAX_TAIL 0x0028 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
55 |
#define VVI_R_REQUEST_ID 0x002c |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
56 |
#define VVI_R_SHARED_CMD_MEMORY_BASE 0x0030 |
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
23
diff
changeset
|
57 |
#define VVI_R_SHARED_SURFACEBUFFER_MEMORY_BASE 0x0034 |
23
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
58 |
#define VVI_R_LASTREG 0x0038 // not a register, address of last register |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
59 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
60 |
// COMMAND register values |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
61 |
#define VVI_EXECUTE 0 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
62 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
63 |
//IRQ number |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
64 |
#ifdef PLATSIM_CONFIG |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
65 |
#define VVI_IRQ 391 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
66 |
#else |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
67 |
// Jani - This is defined in syborg.h "EIntGraphics" - should we get it from there? |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
68 |
#define VVI_IRQ 13 |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
69 |
#endif // PLATSIM_CONFIG |
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
70 |
|
e70851cd9e5e
Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
71 |
#endif |