vmware_bootstrap.h revision 22f7e8e5
1/*
2 * Copyright 2011 VMWare, Inc.
3 * All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sub license, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice (including the
14 * next paragraph) shall be included in all copies or substantial portions
15 * of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
20 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
21 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 *
25 * Author: Thomas Hellstrom <thellstrom@vmware.com>
26 */
27#ifndef _VMWARE_BOOTSTRAP_H_
28#define _VMWARE_BOOTSTRAP_H_
29
30#include <xf86.h>
31
32#define VMWARE_INCHTOMM 25.4
33
34typedef enum {
35    OPTION_HW_CURSOR,
36    OPTION_XINERAMA,
37    OPTION_STATIC_XINERAMA,
38    OPTION_GUI_LAYOUT,
39    OPTION_DEFAULT_MODE,
40    OPTION_RENDER_ACCEL,
41    OPTION_DRI,
42    OPTION_DIRECT_PRESENTS,
43    OPTION_HW_PRESENTS,
44    OPTION_RENDERCHECK
45} VMWAREOpts;
46
47OptionInfoPtr VMWARECopyOptions(void);
48
49void
50vmwlegacy_hookup(ScrnInfoPtr pScrn);
51
52#ifdef BUILD_VMWGFX
53void
54vmwgfx_hookup(ScrnInfoPtr pScrn);
55void
56vmwgfx_modify_flags(uint32_t *flags);
57#endif /* defined(BUILD_VMWGFX) */
58
59#ifdef XFree86LOADER
60void
61VMWARERefSymLists(void);
62#endif	/* XFree86LOADER */
63
64/*#define DEBUG_LOGGING*/
65#ifdef DEBUG_LOGGING
66# define VmwareLog(args) ErrorF args
67# define TRACEPOINT VmwareLog(("%s : %s\n", __FUNCTION__, __FILE__));
68#else
69# define VmwareLog(args)
70# define TRACEPOINT
71#endif
72
73#endif
74