xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

xf86Privstr.h (4238B)


      1 
      2 /*
      3  * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
      4  *
      5  * Permission is hereby granted, free of charge, to any person obtaining a
      6  * copy of this software and associated documentation files (the "Software"),
      7  * to deal in the Software without restriction, including without limitation
      8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
      9  * and/or sell copies of the Software, and to permit persons to whom the
     10  * Software is furnished to do so, subject to the following conditions:
     11  *
     12  * The above copyright notice and this permission notice shall be included in
     13  * all copies or substantial portions of the Software.
     14  *
     15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     18  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     19  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     21  * OTHER DEALINGS IN THE SOFTWARE.
     22  *
     23  * Except as contained in this notice, the name of the copyright holder(s)
     24  * and author(s) shall not be used in advertising or otherwise to promote
     25  * the sale, use or other dealings in this Software without prior written
     26  * authorization from the copyright holder(s) and author(s).
     27  */
     28 
     29 /*
     30  * This file contains definitions of the private XFree86 data structures/types.
     31  * None of the data structures here should be used by video drivers.
     32  */
     33 
     34 #ifndef _XF86PRIVSTR_H
     35 #define _XF86PRIVSTR_H
     36 
     37 #include "xf86str.h"
     38 
     39 typedef enum {
     40     XF86_GlxVisualsMinimal,
     41     XF86_GlxVisualsTypical,
     42     XF86_GlxVisualsAll,
     43 } XF86_GlxVisuals;
     44 
     45 /*
     46  * xf86InfoRec contains global parameters which the video drivers never
     47  * need to access.  Global parameters which the video drivers do need
     48  * should be individual globals.
     49  */
     50 
     51 typedef struct {
     52     int consoleFd;
     53     int vtno;
     54 
     55     /* event handler part */
     56     int lastEventTime;
     57     Bool vtRequestsPending;
     58 #ifdef __sun
     59     int vtPendingNum;
     60 #endif
     61     Bool dontVTSwitch;
     62     Bool autoVTSwitch;
     63     Bool ShareVTs;
     64     Bool dontZap;
     65     Bool dontZoom;
     66 
     67     /* graphics part */
     68     ScreenPtr currentScreen;
     69 #if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
     70     int consType;               /* Which console driver? */
     71 #endif
     72 
     73     /* Other things */
     74     Bool allowMouseOpenFail;
     75     Bool vidModeEnabled;        /* VidMode extension enabled */
     76     Bool vidModeAllowNonLocal;  /* allow non-local VidMode
     77                                  * connections */
     78     Bool miscModInDevEnabled;   /* Allow input devices to be
     79                                  * changed */
     80     Bool miscModInDevAllowNonLocal;
     81     Bool pmFlag;
     82     MessageType iglxFrom;
     83     XF86_GlxVisuals glxVisuals;
     84     MessageType glxVisualsFrom;
     85 
     86     Bool useDefaultFontPath;
     87     Bool ignoreABI;
     88 
     89     Bool forceInputDevices;     /* force xorg.conf or built-in input devices */
     90     Bool autoAddDevices;        /* Whether to succeed NIDR, or ignore. */
     91     Bool autoEnableDevices;     /* Whether to enable, or let the client
     92                                  * control. */
     93 
     94     Bool dri2;
     95     MessageType dri2From;
     96 
     97     Bool autoAddGPU;
     98     const char *debug;
     99     Bool autoBindGPU;
    100 } xf86InfoRec, *xf86InfoPtr;
    101 
    102 /* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
    103 #define XLED1   ((unsigned long) 0x00000001)
    104 #define XLED2   ((unsigned long) 0x00000002)
    105 #define XLED3   ((unsigned long) 0x00000004)
    106 #define XLED4	((unsigned long) 0x00000008)
    107 #define XCAPS   ((unsigned long) 0x20000000)
    108 #define XNUM    ((unsigned long) 0x40000000)
    109 #define XSCR    ((unsigned long) 0x80000000)
    110 #define XCOMP	((unsigned long) 0x00008000)
    111 
    112 /* BSD console driver types (consType) */
    113 #if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
    114 #define PCCONS		   0
    115 #define CODRV011	   1
    116 #define CODRV01X	   2
    117 #define SYSCONS		   8
    118 #define PCVT		  16
    119 #define WSCONS		  32
    120 #endif
    121 
    122 /* Root window property to tell clients whether our VT is currently active.
    123  * Name chosen to match the "XFree86_VT" property. */
    124 #define HAS_VT_ATOM_NAME "XFree86_has_VT"
    125 
    126 #endif                          /* _XF86PRIVSTR_H */