|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Header file for the guest video driver |
|
15 |
|
16 #ifndef VirtualVideoInterfaceConstants_h_ |
|
17 #define VirtualVideoInterfaceConstants_h_ |
|
18 |
|
19 // virtualhw.irq => ic.input[391]; |
|
20 // pvbus.pvbus_m_range[0x60000000..0x62ffffff] => graphicsvirtualhw.mbus; //=>Reserve own memory area later |
|
21 // pvbus.pvbus_m_range[0x63000000..0x63000fff] => graphicsvirtualhw.pbus; //=>Reserve own memory area later |
|
22 |
|
23 // base address |
|
24 #define VVI_REGISTERS_BASE_ADDRESS 0x63000000 |
|
25 #define VVI_REGISTERS_MEMORY_SIZE 0x1000 |
|
26 #define VVI_REGISTERS_MASK 0x0FFF |
|
27 |
|
28 #define VVI_PARAMETERS_INPUT_BASE_ADDRESS 0x60000000 |
|
29 #define VVI_PARAMETERS_INPUT_MEMORY_SIZE 0x01000000 |
|
30 |
|
31 #define VVI_PARAMETERS_OUTPUT_BASE_ADDRESS 0x61000000 |
|
32 #define VVI_PARAMETERS_OUTPUT_MEMORY_SIZE 0x01000000 |
|
33 |
|
34 #define VVI_FRAMEBUFFER_BASE_ADDRESS 0x62000000 |
|
35 #define VVI_FRAMEBUFFER_MEMORY_SIZE 0x01000000 |
|
36 |
|
37 // register indices, TODO: cleanup needed, some are not used |
|
38 #define VVI_R_ID 0x0000 |
|
39 #define VVI_R_IRQ_ENABLE 0x0004 |
|
40 #define VVI_R_IRQ_STATUS 0x0008 |
|
41 #define VVI_R_COMMAND 0x000c |
|
42 #define VVI_R_PARAMETER_LOAD 0x0010 |
|
43 #define VVI_R_ERROR 0x0014 |
|
44 #define VVI_R_INPUT_BUFFER_TAIL 0x0018 |
|
45 #define VVI_R_INPUT_BUFFER_HEAD 0x001c |
|
46 #define VVI_R_INPUT_BUFFER_READ_COUNT 0x0020 |
|
47 #define VVI_R_INPUT_BUFFER_WRITE_COUNT 0x0024 |
|
48 #define VVI_R_INPUT_BUFFER_MAX_TAIL 0x0028 |
|
49 #define VVI_R_REQUEST_ID 0x002c |
|
50 #define VVI_R_LASTREG 0x0030 // not a register, address of last register |
|
51 |
|
52 // COMMAND register values |
|
53 #define VVI_EXECUTE 0 |
|
54 |
|
55 //IRQ number |
|
56 #define VVI_IRQ 391 |
|
57 |
|
58 #endif |