13bfa90b6Smrg/* 23bfa90b6Smrg * Copyright 2011 VMWare, Inc. 33bfa90b6Smrg * All Rights Reserved. 43bfa90b6Smrg * 53bfa90b6Smrg * Permission is hereby granted, free of charge, to any person obtaining a 63bfa90b6Smrg * copy of this software and associated documentation files (the 73bfa90b6Smrg * "Software"), to deal in the Software without restriction, including 83bfa90b6Smrg * without limitation the rights to use, copy, modify, merge, publish, 93bfa90b6Smrg * distribute, sub license, and/or sell copies of the Software, and to 103bfa90b6Smrg * permit persons to whom the Software is furnished to do so, subject to 113bfa90b6Smrg * the following conditions: 123bfa90b6Smrg * 133bfa90b6Smrg * The above copyright notice and this permission notice (including the 143bfa90b6Smrg * next paragraph) shall be included in all copies or substantial portions 153bfa90b6Smrg * of the Software. 163bfa90b6Smrg * 173bfa90b6Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 183bfa90b6Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 193bfa90b6Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 203bfa90b6Smrg * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 213bfa90b6Smrg * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 223bfa90b6Smrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 233bfa90b6Smrg * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 243bfa90b6Smrg * 253bfa90b6Smrg * Author: Thomas Hellstrom <thellstrom@vmware.com> 263bfa90b6Smrg */ 273bfa90b6Smrg#ifndef _VMWARE_BOOTSTRAP_H_ 283bfa90b6Smrg#define _VMWARE_BOOTSTRAP_H_ 293bfa90b6Smrg 303bfa90b6Smrg#include <xf86.h> 313bfa90b6Smrg 323bfa90b6Smrg#define VMWARE_INCHTOMM 25.4 333bfa90b6Smrg 343bfa90b6Smrgtypedef enum { 353bfa90b6Smrg OPTION_HW_CURSOR, 363bfa90b6Smrg OPTION_XINERAMA, 373bfa90b6Smrg OPTION_STATIC_XINERAMA, 383bfa90b6Smrg OPTION_GUI_LAYOUT, 393bfa90b6Smrg OPTION_DEFAULT_MODE, 403bfa90b6Smrg OPTION_RENDER_ACCEL, 413bfa90b6Smrg OPTION_DRI, 423bfa90b6Smrg OPTION_DIRECT_PRESENTS, 433bfa90b6Smrg OPTION_HW_PRESENTS, 443bfa90b6Smrg OPTION_RENDERCHECK 453bfa90b6Smrg} VMWAREOpts; 463bfa90b6Smrg 473bfa90b6SmrgOptionInfoPtr VMWARECopyOptions(void); 483bfa90b6Smrg 493bfa90b6Smrgvoid 503bfa90b6Smrgvmwlegacy_hookup(ScrnInfoPtr pScrn); 513bfa90b6Smrg 523bfa90b6Smrg#ifdef BUILD_VMWGFX 533bfa90b6Smrgvoid 543bfa90b6Smrgvmwgfx_hookup(ScrnInfoPtr pScrn); 5522f7e8e5Smrgvoid 5622f7e8e5Smrgvmwgfx_modify_flags(uint32_t *flags); 573bfa90b6Smrg#endif /* defined(BUILD_VMWGFX) */ 583bfa90b6Smrg 593bfa90b6Smrg#ifdef XFree86LOADER 603bfa90b6Smrgvoid 613bfa90b6SmrgVMWARERefSymLists(void); 623bfa90b6Smrg#endif /* XFree86LOADER */ 633bfa90b6Smrg 643bfa90b6Smrg/*#define DEBUG_LOGGING*/ 653bfa90b6Smrg#ifdef DEBUG_LOGGING 663bfa90b6Smrg# define VmwareLog(args) ErrorF args 673bfa90b6Smrg# define TRACEPOINT VmwareLog(("%s : %s\n", __FUNCTION__, __FILE__)); 683bfa90b6Smrg#else 693bfa90b6Smrg# define VmwareLog(args) 703bfa90b6Smrg# define TRACEPOINT 713bfa90b6Smrg#endif 723bfa90b6Smrg 733bfa90b6Smrg#endif 74