1 | /** @file
|
---|
2 | * VMware SVGA device
|
---|
3 | */
|
---|
4 | /*
|
---|
5 | * Copyright (C) 2013-2015 Oracle Corporation
|
---|
6 | *
|
---|
7 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | * available from http://www.virtualbox.org. This file is free software;
|
---|
9 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | * General Public License (GPL) as published by the Free Software
|
---|
11 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | */
|
---|
15 | #ifndef __DEVVGA_SVGA_H__
|
---|
16 | #define __DEVVGA_SVGA_H__
|
---|
17 |
|
---|
18 |
|
---|
19 | /** Default FIFO size. */
|
---|
20 | #define VMSVGA_FIFO_SIZE 0x20000
|
---|
21 | /** Default scratch region size. */
|
---|
22 | #define VMSVGA_SCRATCH_SIZE 0x100
|
---|
23 | /** Surface memory available to the guest. */
|
---|
24 | #define VMSVGA_SURFACE_SIZE (512*1024*1024)
|
---|
25 | /** Maximum GMR pages. */
|
---|
26 | #define VMSVGA_MAX_GMR_PAGES 0x100000
|
---|
27 | /** Maximum nr of GMR ids. */
|
---|
28 | #define VMSVGA_MAX_GMR_IDS 0x100
|
---|
29 |
|
---|
30 | #define VMSVGA_VAL_UNINITIALIZED (unsigned)-1
|
---|
31 |
|
---|
32 | /** For validating X and width values.
|
---|
33 | * The code assumes it's at least an order of magnitude less than UINT32_MAX. */
|
---|
34 | #define VMSVGA_MAX_X _1M
|
---|
35 | /** For validating Y and height values.
|
---|
36 | * The code assumes it's at least an order of magnitude less than UINT32_MAX. */
|
---|
37 | #define VMSVGA_MAX_Y _1M
|
---|
38 |
|
---|
39 | /* u32ActionFlags */
|
---|
40 | #define VMSVGA_ACTION_CHANGEMODE_BIT 0
|
---|
41 | #define VMSVGA_ACTION_CHANGEMODE RT_BIT(VMSVGA_ACTION_CHANGEMODE_BIT)
|
---|
42 |
|
---|
43 | DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType);
|
---|
44 |
|
---|
45 | DECLCALLBACK(void) vmsvgaPortSetViewport(PPDMIDISPLAYPORT pInterface, uint32_t uScreenId, uint32_t x, uint32_t y, uint32_t cx, uint32_t cy);
|
---|
46 |
|
---|
47 | int vmsvgaInit(PPDMDEVINS pDevIns);
|
---|
48 | int vmsvgaReset(PPDMDEVINS pDevIns);
|
---|
49 | int vmsvgaDestruct(PPDMDEVINS pDevIns);
|
---|
50 | int vmsvgaLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass);
|
---|
51 | int vmsvgaLoadDone(PPDMDEVINS pDevIns);
|
---|
52 | int vmsvgaSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
|
---|
53 | DECLCALLBACK(void) vmsvgaR3PowerOn(PPDMDEVINS pDevIns);
|
---|
54 | DECLCALLBACK(void) vmsvgaR3PowerOff(PPDMDEVINS pDevIns);
|
---|
55 |
|
---|
56 | #endif /* __DEVVGA_SVGA_H__ */
|
---|