get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE
Get rid of almost all uses of these definitions. They're still defined for delinquent out-of-tree drivers, and also for the Mesa build. As well as for miinitext.c. But largely gone.
This commit is contained in:
parent
881953813c
commit
84683f19b4
|
@ -13,9 +13,7 @@ AM_CFLAGS = \
|
||||||
@DRIPROTO_CFLAGS@ \
|
@DRIPROTO_CFLAGS@ \
|
||||||
-I@MESA_SOURCE@/src/mesa/glapi \
|
-I@MESA_SOURCE@/src/mesa/glapi \
|
||||||
-I@MESA_SOURCE@/src/mesa/main \
|
-I@MESA_SOURCE@/src/mesa/main \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
-DNO_LIBCWRAPPER \
|
-DNO_LIBCWRAPPER \
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,7 @@ INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
# symbol means "being built in the server"
|
# symbol means "being built in the server"
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@ \
|
@GLX_DEFINES@ \
|
||||||
-DXFree86Server
|
-DXFree86Server
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libac.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libglapi.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libmain.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libmath.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -4,9 +4,7 @@ noinst_LTLIBRARIES = libshader.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libgrammar.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libslang.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libswrast.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libss.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -2,9 +2,7 @@ noinst_LTLIBRARIES = libtnl.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
$(DIX_CFLAGS) \
|
$(DIX_CFLAGS) \
|
||||||
@SERVER_DEFINES@ \
|
-DXFree86Server \
|
||||||
@MODULE_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@ \
|
|
||||||
@GLX_DEFINES@
|
@GLX_DEFINES@
|
||||||
|
|
||||||
INCLUDES = -I@MESA_SOURCE@/include \
|
INCLUDES = -I@MESA_SOURCE@/include \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
noinst_LTLIBRARIES = libxtrap.la
|
noinst_LTLIBRARIES = libxtrap.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
libxtrap_la_SOURCES = xtrapddmi.c xtrapdi.c xtrapdiswp.c xtrapditbl.c
|
libxtrap_la_SOURCES = xtrapddmi.c xtrapdi.c xtrapdiswp.c xtrapditbl.c
|
||||||
|
|
|
@ -12,7 +12,7 @@ endif
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/hw/xfree86/dixmods/extmod
|
INCLUDES = -I$(top_srcdir)/hw/xfree86/dixmods/extmod
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
if XORG
|
if XORG
|
||||||
sdk_HEADERS = xvdix.h xvmcext.h
|
sdk_HEADERS = xvdix.h xvmcext.h
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LTLIBRARIES = libXi.la
|
noinst_LTLIBRARIES = libXi.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
libXi_la_SOURCES = \
|
libXi_la_SOURCES = \
|
||||||
allowev.c \
|
allowev.c \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LTLIBRARIES = libafb.la
|
noinst_LTLIBRARIES = libafb.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
libafb_gen_sources = afbbltC.c afbbltX.c afbbltCI.c afbbltO.c afbbltG.c afbtileC.c afbtileG.c afbseg.c
|
libafb_gen_sources = afbbltC.c afbbltX.c afbbltCI.c afbbltO.c afbbltG.c afbtileC.c afbtileG.c afbseg.c
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ libcfb_la_SOURCES = cfb8bit.c cfbteblt8.c cfbglrop8.c cfbpush8.c cfbrctstp8.c \
|
||||||
|
|
||||||
libcfb_la_LIBADD = ../mfb/libmfb.la
|
libcfb_la_LIBADD = ../mfb/libmfb.la
|
||||||
|
|
||||||
AM_CFLAGS = -DPSZ=8 $(DIX_CFLAGS) $(PLATFORMDEFS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DPSZ=8 $(DIX_CFLAGS) $(PLATFORMDEFS)
|
||||||
|
|
||||||
INCLUDES = $(CFB_INCLUDES) -I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/common
|
INCLUDES = $(CFB_INCLUDES) -I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/common
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,4 @@ libcfb32_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
|
||||||
|
|
||||||
INCLUDES = $(CFB_INCLUDES) $(DIX_CFLAGS) -I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/common
|
INCLUDES = $(CFB_INCLUDES) $(DIX_CFLAGS) -I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/common
|
||||||
|
|
||||||
AM_CFLAGS = -DPSZ=32 $(PLATFORMDEFS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DPSZ=32 $(PLATFORMDEFS)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LTLIBRARIES = libcomposite.la
|
noinst_LTLIBRARIES = libcomposite.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
libcomposite_la_SOURCES = \
|
libcomposite_la_SOURCES = \
|
||||||
compalloc.c \
|
compalloc.c \
|
||||||
|
|
15
configure.ac
15
configure.ac
|
@ -865,11 +865,6 @@ dnl ---------------------------------------------------------------------------
|
||||||
dnl DDX section.
|
dnl DDX section.
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
dnl These are used to define Xorg module, loader and general server defines
|
|
||||||
MODULE_DEFINES=""
|
|
||||||
LOADER_DEFINES=""
|
|
||||||
SERVER_DEFINES=""
|
|
||||||
|
|
||||||
dnl DMX DDX
|
dnl DMX DDX
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to build Xdmx DDX])
|
AC_MSG_CHECKING([whether to build Xdmx DDX])
|
||||||
|
@ -1244,11 +1239,6 @@ int main () {
|
||||||
AC_SUBST([XORG_CFLAGS])
|
AC_SUBST([XORG_CFLAGS])
|
||||||
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])
|
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])
|
||||||
|
|
||||||
dnl Module defines are used in the Xorg server and the drivers
|
|
||||||
MODULE_DEFINES="$MODULE_DEFINES -DIN_MODULE -DXFree86Module"
|
|
||||||
LOADER_DEFINES="$LOADER_DEFINES -DXFree86LOADER"
|
|
||||||
SERVER_DEFINES="$SERVER_DEFINES -DXFree86Server"
|
|
||||||
|
|
||||||
dnl these only go in xorg-config.h
|
dnl these only go in xorg-config.h
|
||||||
XF86CONFIGFILE="xorg.conf"
|
XF86CONFIGFILE="xorg.conf"
|
||||||
CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
|
CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
|
||||||
|
@ -1256,6 +1246,7 @@ int main () {
|
||||||
AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
|
AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
|
||||||
AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
|
AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
|
||||||
AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
|
AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
|
||||||
|
AC_DEFINE(XFree86LOADER, 1, [Building loadable XFree86 server])
|
||||||
AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
|
AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
|
||||||
AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs])
|
AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs])
|
||||||
AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions])
|
AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions])
|
||||||
|
@ -1593,10 +1584,6 @@ AM_CONDITIONAL(BUILD_KBD_MODE, [test x$BUILD_KBD_MODE = xyes])
|
||||||
AM_CONDITIONAL(BSD_KBD_MODE, [test x$KBD_MODE_TYPE = xbsd])
|
AM_CONDITIONAL(BSD_KBD_MODE, [test x$KBD_MODE_TYPE = xbsd])
|
||||||
AM_CONDITIONAL(SUN_KBD_MODE, [test x$KBD_MODE_TYPE = xsun])
|
AM_CONDITIONAL(SUN_KBD_MODE, [test x$KBD_MODE_TYPE = xsun])
|
||||||
|
|
||||||
AC_SUBST([MODULE_DEFINES])
|
|
||||||
AC_SUBST([LOADER_DEFINES])
|
|
||||||
AC_SUBST([SERVER_DEFINES])
|
|
||||||
|
|
||||||
CFLAGS="$XSERVER_CFLAGS $CFLAGS"
|
CFLAGS="$XSERVER_CFLAGS $CFLAGS"
|
||||||
AC_SUBST([CFLAGS])
|
AC_SUBST([CFLAGS])
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LTLIBRARIES = libdamageext.la
|
noinst_LTLIBRARIES = libdamageext.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
libdamageext_la_SOURCES = \
|
libdamageext_la_SOURCES = \
|
||||||
damageext.c \
|
damageext.c \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LTLIBRARIES = libdbe.la
|
noinst_LTLIBRARIES = libdbe.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
if XORG
|
if XORG
|
||||||
sdk_HEADERS = dbestruct.h
|
sdk_HEADERS = dbestruct.h
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LTLIBRARIES = libdix.la libxpstubs.la
|
noinst_LTLIBRARIES = libdix.la libxpstubs.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@ \
|
AM_CFLAGS = $(DIX_CFLAGS) \
|
||||||
-DVENDOR_STRING=\""@VENDOR_STRING@"\" \
|
-DVENDOR_STRING=\""@VENDOR_STRING@"\" \
|
||||||
-DVENDOR_RELEASE="@VENDOR_RELEASE@"
|
-DVENDOR_RELEASE="@VENDOR_RELEASE@"
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,8 @@ SOFTWARE.
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
|
|
|
@ -56,6 +56,9 @@ SOFTWARE.
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#define NEED_EVENTS
|
#define NEED_EVENTS
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <strings.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
|
|
|
@ -3019,9 +3019,6 @@ ProcessPointerEvent (register xEvent *xE, register DeviceIntPtr mouse, int count
|
||||||
butc->buttonsDown++;
|
butc->buttonsDown++;
|
||||||
butc->motionMask = ButtonMotionMask;
|
butc->motionMask = ButtonMotionMask;
|
||||||
*kptr |= bit;
|
*kptr |= bit;
|
||||||
#if !defined(XFree86Server) || !defined(XINPUT)
|
|
||||||
xE->u.u.detail = butc->map[key];
|
|
||||||
#endif
|
|
||||||
if (xE->u.u.detail == 0)
|
if (xE->u.u.detail == 0)
|
||||||
return;
|
return;
|
||||||
if (xE->u.u.detail <= 5)
|
if (xE->u.u.detail <= 5)
|
||||||
|
@ -3038,9 +3035,6 @@ ProcessPointerEvent (register xEvent *xE, register DeviceIntPtr mouse, int count
|
||||||
if (!butc->buttonsDown)
|
if (!butc->buttonsDown)
|
||||||
butc->motionMask = 0;
|
butc->motionMask = 0;
|
||||||
*kptr &= ~bit;
|
*kptr &= ~bit;
|
||||||
#if !defined(XFree86Server) || !defined(XINPUT)
|
|
||||||
xE->u.u.detail = butc->map[key];
|
|
||||||
#endif
|
|
||||||
if (xE->u.u.detail == 0)
|
if (xE->u.u.detail == 0)
|
||||||
return;
|
return;
|
||||||
if (xE->u.u.detail <= 5)
|
if (xE->u.u.detail <= 5)
|
||||||
|
|
|
@ -12,7 +12,7 @@ INCLUDES = \
|
||||||
$(XORG_INCS) \
|
$(XORG_INCS) \
|
||||||
-I$(srcdir)/../miext/cw
|
-I$(srcdir)/../miext/cw
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@ $(DIX_CFLAGS)
|
AM_CFLAGS = $(XORG_CFLAGS) $(DIX_CFLAGS)
|
||||||
|
|
||||||
libexa_la_SOURCES = \
|
libexa_la_SOURCES = \
|
||||||
exa.c \
|
exa.c \
|
||||||
|
|
|
@ -4,7 +4,7 @@ INCLUDES = \
|
||||||
-I$(top_srcdir)/hw/xfree86/os-support \
|
-I$(top_srcdir)/hw/xfree86/os-support \
|
||||||
-I$(top_srcdir)/hw/xfree86/os-support/bus \
|
-I$(top_srcdir)/hw/xfree86/os-support/bus \
|
||||||
-I$(top_srcdir)/hw/xfree86/common
|
-I$(top_srcdir)/hw/xfree86/common
|
||||||
AM_CFLAGS = $(DIX_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
if XORG
|
if XORG
|
||||||
sdk_HEADERS = fb.h fbrop.h fbpseudocolor.h fboverlay.h
|
sdk_HEADERS = fb.h fbrop.h fbpseudocolor.h fboverlay.h
|
||||||
|
|
|
@ -28,9 +28,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "xf86.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "fb.h"
|
#include "fb.h"
|
||||||
|
|
||||||
|
|
|
@ -35,13 +35,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "xf86.h"
|
|
||||||
#include "xf86_ansic.h"
|
|
||||||
#else
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#define NEED_REPLIES
|
#define NEED_REPLIES
|
||||||
#define NEED_EVENTS
|
#define NEED_EVENTS
|
||||||
|
|
|
@ -81,7 +81,7 @@ Xdmx_LDADD = $(XORG_CORE_LIBS) \
|
||||||
config/libdmxconfig.a \
|
config/libdmxconfig.a \
|
||||||
@DMXMODULES_LIBS@
|
@DMXMODULES_LIBS@
|
||||||
|
|
||||||
Xdmx_CFLAGS = @SERVER_DEFINES@ \
|
Xdmx_CFLAGS = \
|
||||||
-DHAVE_DMX_CONFIG_H \
|
-DHAVE_DMX_CONFIG_H \
|
||||||
$(GLX_INCS) \
|
$(GLX_INCS) \
|
||||||
$(GLX_DEFS) \
|
$(GLX_DEFS) \
|
||||||
|
|
|
@ -27,7 +27,7 @@ endif
|
||||||
|
|
||||||
AM_YFLAGS = -d
|
AM_YFLAGS = -d
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
@SERVER_DEFINES@ \
|
\
|
||||||
-I$(top_srcdir)/hw/dmx \
|
-I$(top_srcdir)/hw/dmx \
|
||||||
$(GLX_INCS) \
|
$(GLX_INCS) \
|
||||||
-DHAVE_DMX_CONFIG_H \
|
-DHAVE_DMX_CONFIG_H \
|
||||||
|
|
|
@ -93,6 +93,5 @@
|
||||||
#undef DAMAGE
|
#undef DAMAGE
|
||||||
#undef COMPOSITE
|
#undef COMPOSITE
|
||||||
#undef FONTCACHE
|
#undef FONTCACHE
|
||||||
#undef XFree86LOADER
|
|
||||||
|
|
||||||
#endif /* DMX_CONFIG_H */
|
#endif /* DMX_CONFIG_H */
|
||||||
|
|
|
@ -31,8 +31,8 @@ libglxproxy_a_SOURCES = compsize.c \
|
||||||
renderpixswap.c \
|
renderpixswap.c \
|
||||||
unpack.h
|
unpack.h
|
||||||
|
|
||||||
AM_CFLAGS = @SERVER_DEFINES@ \
|
AM_CFLAGS = \
|
||||||
@MODULE_DEFINES@ \
|
\
|
||||||
-I$(top_srcdir)/hw/dmx \
|
-I$(top_srcdir)/hw/dmx \
|
||||||
-I$(top_srcdir)/include \
|
-I$(top_srcdir)/include \
|
||||||
-I$(top_srcdir)/GL/include \
|
-I$(top_srcdir)/GL/include \
|
||||||
|
|
|
@ -48,12 +48,7 @@
|
||||||
|
|
||||||
#include "glxserver.h"
|
#include "glxserver.h"
|
||||||
|
|
||||||
#ifdef IN_MODULE
|
|
||||||
#include <xf86_ansic.h>
|
#include <xf86_ansic.h>
|
||||||
#else
|
|
||||||
#include <string.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <windowstr.h>
|
#include <windowstr.h>
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ GLX_DEFS = @GL_CFLAGS@
|
||||||
GLX_INCS = -I@MESA_SOURCE@/include
|
GLX_INCS = -I@MESA_SOURCE@/include
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AM_CFLAGS = @SERVER_DEFINES@ \
|
AM_CFLAGS = \
|
||||||
-I$(top_srcdir)/hw/dmx \
|
-I$(top_srcdir)/hw/dmx \
|
||||||
-I$(top_srcdir)/hw/xfree86/common \
|
-I$(top_srcdir)/hw/xfree86/common \
|
||||||
$(GLX_INCS) \
|
$(GLX_INCS) \
|
||||||
|
|
|
@ -21,7 +21,7 @@ Xvfb_LDFLAGS =
|
||||||
AM_CFLAGS = -DHAVE_DIX_CONFIG_H \
|
AM_CFLAGS = -DHAVE_DIX_CONFIG_H \
|
||||||
-DNO_HW_ONLY_EXTS \
|
-DNO_HW_ONLY_EXTS \
|
||||||
-DNO_MODULE_EXTS \
|
-DNO_MODULE_EXTS \
|
||||||
@SERVER_DEFINES@ \
|
\
|
||||||
$(XVFBMODULES_CFLAGS)
|
$(XVFBMODULES_CFLAGS)
|
||||||
|
|
||||||
# Man page
|
# Man page
|
||||||
|
|
|
@ -16,7 +16,7 @@ DIST_SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support \
|
||||||
|
|
||||||
bin_PROGRAMS = Xorg
|
bin_PROGRAMS = Xorg
|
||||||
|
|
||||||
AM_CFLAGS = @XORG_CFLAGS@ @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = @XORG_CFLAGS@
|
||||||
INCLUDES = @XORG_INCS@
|
INCLUDES = @XORG_INCS@
|
||||||
|
|
||||||
Xorg_SOURCES = xorg.c
|
Xorg_SOURCES = xorg.c
|
||||||
|
|
|
@ -103,4 +103,4 @@ if LNXACPI
|
||||||
XORG_CFLAGS += -DHAVE_ACPI
|
XORG_CFLAGS += -DHAVE_ACPI
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
|
@ -1605,17 +1605,13 @@ extern void outl(unsigned int a, unsigned int l);
|
||||||
# endif
|
# endif
|
||||||
# ifndef SCO325
|
# ifndef SCO325
|
||||||
# if defined(__UNIXWARE__)
|
# if defined(__UNIXWARE__)
|
||||||
# if defined(IN_MODULE)
|
|
||||||
# /* avoid including <sys/types.h> for <sys/inline.h> on UnixWare */
|
# /* avoid including <sys/types.h> for <sys/inline.h> on UnixWare */
|
||||||
# define ushort unsigned short
|
# define ushort unsigned short
|
||||||
# define ushort_t unsigned short
|
# define ushort_t unsigned short
|
||||||
# define ulong unsigned long
|
# define ulong unsigned long
|
||||||
# define ulong_t unsigned long
|
# define ulong_t unsigned long
|
||||||
# define uint_t unsigned int
|
# define uint_t unsigned int
|
||||||
# define uchar_t unsigned char
|
# define uchar_t unsigned char
|
||||||
# else
|
|
||||||
# include <sys/types.h>
|
|
||||||
# endif /* IN_MODULE */
|
|
||||||
# endif /* __UNIXWARE__ */
|
# endif /* __UNIXWARE__ */
|
||||||
# if !defined(sgi) && !defined(__SUNPRO_C)
|
# if !defined(sgi) && !defined(__SUNPRO_C)
|
||||||
# include <sys/inline.h>
|
# include <sys/inline.h>
|
||||||
|
|
|
@ -354,10 +354,8 @@ int xf86RegisterRootWindowProperty(int ScrnIndex, Atom property, Atom type,
|
||||||
pointer value);
|
pointer value);
|
||||||
Bool xf86IsUnblank(int mode);
|
Bool xf86IsUnblank(int mode);
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
void xf86AddModuleInfo(ModuleInfoPtr info, pointer module);
|
void xf86AddModuleInfo(ModuleInfoPtr info, pointer module);
|
||||||
void xf86DeleteModuleInfo(int idx);
|
void xf86DeleteModuleInfo(int idx);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* xf86Debug.c */
|
/* xf86Debug.c */
|
||||||
#ifdef BUILDDEBUG
|
#ifdef BUILDDEBUG
|
||||||
|
|
|
@ -513,7 +513,6 @@ fixup_video_driver_list(char **drivers)
|
||||||
static char **
|
static char **
|
||||||
GenerateDriverlist(char * dirname, char * drivernames)
|
GenerateDriverlist(char * dirname, char * drivernames)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
char **ret;
|
char **ret;
|
||||||
const char *subdirs[] = { dirname, NULL };
|
const char *subdirs[] = { dirname, NULL };
|
||||||
static const char *patlist[] = {"(.*)_drv\\.so", "(.*)_drv\\.o", NULL};
|
static const char *patlist[] = {"(.*)_drv\\.so", "(.*)_drv\\.o", NULL};
|
||||||
|
@ -524,39 +523,6 @@ GenerateDriverlist(char * dirname, char * drivernames)
|
||||||
fixup_video_driver_list(ret);
|
fixup_video_driver_list(ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
#else /* non-loadable server */
|
|
||||||
char *cp, **driverlist;
|
|
||||||
int count;
|
|
||||||
|
|
||||||
/* Count the number needed */
|
|
||||||
count = 0;
|
|
||||||
cp = drivernames;
|
|
||||||
while (*cp) {
|
|
||||||
while (*cp && isspace(*cp)) cp++;
|
|
||||||
if (!*cp) break;
|
|
||||||
count++;
|
|
||||||
while (*cp && !isspace(*cp)) cp++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!count)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
/* Now allocate the array of pointers to 0-terminated driver names */
|
|
||||||
driverlist = (char **)xnfalloc((count + 1) * sizeof(char *));
|
|
||||||
count = 0;
|
|
||||||
cp = drivernames;
|
|
||||||
while (*cp) {
|
|
||||||
while (*cp && isspace(*cp)) cp++;
|
|
||||||
if (!*cp) break;
|
|
||||||
driverlist[count++] = cp;
|
|
||||||
while (*cp && !isspace(*cp)) cp++;
|
|
||||||
if (!*cp) break;
|
|
||||||
*cp++ = 0;
|
|
||||||
}
|
|
||||||
driverlist[count] = NULL;
|
|
||||||
|
|
||||||
return driverlist;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -732,7 +698,6 @@ configFiles(XF86ConfFilesPtr fileconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* ModulePath */
|
/* ModulePath */
|
||||||
|
|
||||||
if (fileconf) {
|
if (fileconf) {
|
||||||
|
@ -743,7 +708,6 @@ configFiles(XF86ConfFilesPtr fileconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
xf86Msg(xf86ModPathFrom, "ModulePath set to \"%s\"\n", xf86ModulePath);
|
xf86Msg(xf86ModPathFrom, "ModulePath set to \"%s\"\n", xf86ModulePath);
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* LogFile */
|
/* LogFile */
|
||||||
|
|
|
@ -37,9 +37,7 @@
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xmd.h>
|
#include <X11/Xmd.h>
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "loaderProcs.h"
|
#include "loaderProcs.h"
|
||||||
#endif
|
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
#include "xf86Config.h"
|
#include "xf86Config.h"
|
||||||
#include "xf86_OSlib.h"
|
#include "xf86_OSlib.h"
|
||||||
|
@ -602,7 +600,6 @@ configureFlagsSection (void)
|
||||||
static XF86ConfModulePtr
|
static XF86ConfModulePtr
|
||||||
configureModuleSection (void)
|
configureModuleSection (void)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
char **elist, **el;
|
char **elist, **el;
|
||||||
/* Find the list of extension modules. */
|
/* Find the list of extension modules. */
|
||||||
const char *esubdirs[] = {
|
const char *esubdirs[] = {
|
||||||
|
@ -613,10 +610,8 @@ configureModuleSection (void)
|
||||||
"fonts",
|
"fonts",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
parsePrologue (XF86ConfModulePtr, XF86ConfModuleRec)
|
parsePrologue (XF86ConfModulePtr, XF86ConfModuleRec)
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
elist = LoaderListDirs(esubdirs, NULL);
|
elist = LoaderListDirs(esubdirs, NULL);
|
||||||
if (elist) {
|
if (elist) {
|
||||||
for (el = elist; *el; el++) {
|
for (el = elist; *el; el++) {
|
||||||
|
@ -653,7 +648,6 @@ configureModuleSection (void)
|
||||||
}
|
}
|
||||||
xfree(elist);
|
xfree(elist);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
@ -663,10 +657,8 @@ configureFilesSection (void)
|
||||||
{
|
{
|
||||||
parsePrologue (XF86ConfFilesPtr, XF86ConfFilesRec)
|
parsePrologue (XF86ConfFilesPtr, XF86ConfFilesRec)
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
if (xf86ModulePath)
|
if (xf86ModulePath)
|
||||||
ptr->file_modulepath = strdup(xf86ModulePath);
|
ptr->file_modulepath = strdup(xf86ModulePath);
|
||||||
#endif
|
|
||||||
if (defaultFontPath)
|
if (defaultFontPath)
|
||||||
ptr->file_fontpath = strdup(defaultFontPath);
|
ptr->file_fontpath = strdup(defaultFontPath);
|
||||||
if (rgbPath)
|
if (rgbPath)
|
||||||
|
@ -788,10 +780,8 @@ DoConfigure()
|
||||||
for (vl = vlist; *vl; vl++)
|
for (vl = vlist; *vl; vl++)
|
||||||
ErrorF("\t%s\n", *vl);
|
ErrorF("\t%s\n", *vl);
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Load all the drivers that were found. */
|
/* Load all the drivers that were found. */
|
||||||
xf86LoadModules(vlist, NULL);
|
xf86LoadModules(vlist, NULL);
|
||||||
#endif /* XFree86LOADER */
|
|
||||||
|
|
||||||
xfree(vlist);
|
xfree(vlist);
|
||||||
|
|
||||||
|
|
|
@ -63,11 +63,7 @@ DGACopyModeInfo(
|
||||||
XDGAModePtr xmode
|
XDGAModePtr xmode
|
||||||
);
|
);
|
||||||
|
|
||||||
#if defined(XFree86LOADER) || !defined(XFreeXDGA)
|
|
||||||
_X_EXPORT int *XDGAEventBase = NULL;
|
_X_EXPORT int *XDGAEventBase = NULL;
|
||||||
#else
|
|
||||||
_X_EXPORT int *XDGAEventBase = &DGAEventBase;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DGA_GET_SCREEN_PRIV(pScreen) \
|
#define DGA_GET_SCREEN_PRIV(pScreen) \
|
||||||
((DGAScreenPtr)((pScreen)->devPrivates[DGAScreenIndex].ptr))
|
((DGAScreenPtr)((pScreen)->devPrivates[DGAScreenIndex].ptr))
|
||||||
|
|
|
@ -40,10 +40,8 @@
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xmd.h>
|
#include <X11/Xmd.h>
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "loaderProcs.h"
|
#include "loaderProcs.h"
|
||||||
#include "xf86Config.h"
|
#include "xf86Config.h"
|
||||||
#endif /* XFree86LOADER */
|
|
||||||
#include "xf86_OSlib.h"
|
#include "xf86_OSlib.h"
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
#include "xf86Priv.h"
|
#include "xf86Priv.h"
|
||||||
|
@ -55,7 +53,6 @@ DoProbe()
|
||||||
Bool probeResult;
|
Bool probeResult;
|
||||||
Bool ioEnableFailed = FALSE;
|
Bool ioEnableFailed = FALSE;
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Find the list of video driver modules. */
|
/* Find the list of video driver modules. */
|
||||||
char **list = xf86DriverlistFromCompile();
|
char **list = xf86DriverlistFromCompile();
|
||||||
char **l;
|
char **l;
|
||||||
|
@ -70,7 +67,6 @@ DoProbe()
|
||||||
|
|
||||||
/* Load all the drivers that were found. */
|
/* Load all the drivers that were found. */
|
||||||
xf86LoadModules(list, NULL);
|
xf86LoadModules(list, NULL);
|
||||||
#endif /* XFree86LOADER */
|
|
||||||
|
|
||||||
/* Disable PCI devices */
|
/* Disable PCI devices */
|
||||||
xf86AccessInit();
|
xf86AccessInit();
|
||||||
|
|
|
@ -40,9 +40,7 @@
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xmd.h>
|
#include <X11/Xmd.h>
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "loaderProcs.h"
|
#include "loaderProcs.h"
|
||||||
#endif
|
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
#include "xf86Priv.h"
|
#include "xf86Priv.h"
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
@ -54,9 +52,7 @@ void DoScanPci(int argc, char **argv, int i)
|
||||||
int j,skip,globalVerbose,scanpciVerbose;
|
int j,skip,globalVerbose,scanpciVerbose;
|
||||||
ScanPciSetupProcPtr PciSetup;
|
ScanPciSetupProcPtr PciSetup;
|
||||||
ScanPciDisplayCardInfoProcPtr DisplayPCICardInfo;
|
ScanPciDisplayCardInfoProcPtr DisplayPCICardInfo;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
int errmaj, errmin;
|
int errmaj, errmin;
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* first we need to finish setup of the OS so that we can call other
|
* first we need to finish setup of the OS so that we can call other
|
||||||
|
@ -95,7 +91,6 @@ void DoScanPci(int argc, char **argv, int i)
|
||||||
/*
|
/*
|
||||||
* now get the loader set up and load the scanpci module
|
* now get the loader set up and load the scanpci module
|
||||||
*/
|
*/
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Initialise the loader */
|
/* Initialise the loader */
|
||||||
LoaderInit();
|
LoaderInit();
|
||||||
/* Tell the loader the default module search path */
|
/* Tell the loader the default module search path */
|
||||||
|
@ -113,10 +108,6 @@ void DoScanPci(int argc, char **argv, int i)
|
||||||
PciSetup = (ScanPciSetupProcPtr)LoaderSymbol("ScanPciSetupPciIds");
|
PciSetup = (ScanPciSetupProcPtr)LoaderSymbol("ScanPciSetupPciIds");
|
||||||
DisplayPCICardInfo =
|
DisplayPCICardInfo =
|
||||||
(ScanPciDisplayCardInfoProcPtr)LoaderSymbol("ScanPciDisplayPCICardInfo");
|
(ScanPciDisplayCardInfoProcPtr)LoaderSymbol("ScanPciDisplayPCICardInfo");
|
||||||
#else
|
|
||||||
PciSetup = ScanPciSetupPciIds;
|
|
||||||
DisplayPCICardInfo = ScanPciDisplayPCICardInfo;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!(*PciSetup)())
|
if (!(*PciSetup)())
|
||||||
FatalError("ScanPciSetupPciIds() failed\n");
|
FatalError("ScanPciSetupPciIds() failed\n");
|
||||||
|
|
|
@ -189,14 +189,12 @@ Bool xf86Initialising = FALSE;
|
||||||
Bool xf86ProbeFailed = FALSE;
|
Bool xf86ProbeFailed = FALSE;
|
||||||
Bool xf86DoProbe = FALSE;
|
Bool xf86DoProbe = FALSE;
|
||||||
Bool xf86DoConfigure = FALSE;
|
Bool xf86DoConfigure = FALSE;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
DriverPtr *xf86DriverList = NULL;
|
DriverPtr *xf86DriverList = NULL;
|
||||||
int xf86NumDrivers = 0;
|
int xf86NumDrivers = 0;
|
||||||
InputDriverPtr *xf86InputDriverList = NULL;
|
InputDriverPtr *xf86InputDriverList = NULL;
|
||||||
int xf86NumInputDrivers = 0;
|
int xf86NumInputDrivers = 0;
|
||||||
ModuleInfoPtr *xf86ModuleInfoList = NULL;
|
ModuleInfoPtr *xf86ModuleInfoList = NULL;
|
||||||
int xf86NumModuleInfos = 0;
|
int xf86NumModuleInfos = 0;
|
||||||
#endif
|
|
||||||
int xf86NumScreens = 0;
|
int xf86NumScreens = 0;
|
||||||
|
|
||||||
const char *xf86VisualNames[] = {
|
const char *xf86VisualNames[] = {
|
||||||
|
|
|
@ -70,7 +70,6 @@
|
||||||
static int xf86ScrnInfoPrivateCount = 0;
|
static int xf86ScrnInfoPrivateCount = 0;
|
||||||
|
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Add a pointer to a new DriverRec to xf86DriverList */
|
/* Add a pointer to a new DriverRec to xf86DriverList */
|
||||||
|
|
||||||
_X_EXPORT void
|
_X_EXPORT void
|
||||||
|
@ -172,7 +171,6 @@ xf86DeleteModuleInfo(int idx)
|
||||||
xf86ModuleInfoList[idx] = NULL;
|
xf86ModuleInfoList[idx] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Allocate a new ScrnInfoRec in xf86Screens */
|
/* Allocate a new ScrnInfoRec in xf86Screens */
|
||||||
|
@ -199,11 +197,7 @@ xf86AllocateScreen(DriverPtr drv, int flags)
|
||||||
|
|
||||||
xf86Screens[i]->drv = drv;
|
xf86Screens[i]->drv = drv;
|
||||||
drv->refCount++;
|
drv->refCount++;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
xf86Screens[i]->module = DuplicateModule(drv->module, NULL);
|
xf86Screens[i]->module = DuplicateModule(drv->module, NULL);
|
||||||
#else
|
|
||||||
xf86Screens[i]->module = NULL;
|
|
||||||
#endif
|
|
||||||
/*
|
/*
|
||||||
* set the initial access state. This will be modified after PreInit.
|
* set the initial access state. This will be modified after PreInit.
|
||||||
* XXX Or should we do it some other place?
|
* XXX Or should we do it some other place?
|
||||||
|
@ -260,10 +254,8 @@ xf86DeleteScreen(int scrnIndex, int flags)
|
||||||
|
|
||||||
xf86OptionListFree(pScrn->options);
|
xf86OptionListFree(pScrn->options);
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
if (pScrn->module)
|
if (pScrn->module)
|
||||||
UnloadModule(pScrn->module);
|
UnloadModule(pScrn->module);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pScrn->drv)
|
if (pScrn->drv)
|
||||||
pScrn->drv->refCount--;
|
pScrn->drv->refCount--;
|
||||||
|
@ -321,11 +313,7 @@ xf86AllocateInput(InputDriverPtr drv, int flags)
|
||||||
|
|
||||||
new->drv = drv;
|
new->drv = drv;
|
||||||
drv->refCount++;
|
drv->refCount++;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
new->module = DuplicateModule(drv->module, NULL);
|
new->module = DuplicateModule(drv->module, NULL);
|
||||||
#else
|
|
||||||
new->module = NULL;
|
|
||||||
#endif
|
|
||||||
new->next = xf86InputDevs;
|
new->next = xf86InputDevs;
|
||||||
xf86InputDevs = new;
|
xf86InputDevs = new;
|
||||||
return new;
|
return new;
|
||||||
|
@ -352,10 +340,8 @@ xf86DeleteInput(InputInfoPtr pInp, int flags)
|
||||||
pInp->free(pInp, 0);
|
pInp->free(pInp, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
if (pInp->module)
|
if (pInp->module)
|
||||||
UnloadModule(pInp->module);
|
UnloadModule(pInp->module);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pInp->drv)
|
if (pInp->drv)
|
||||||
pInp->drv->refCount--;
|
pInp->drv->refCount--;
|
||||||
|
@ -2381,17 +2367,12 @@ xf86GetVersion()
|
||||||
_X_EXPORT CARD32
|
_X_EXPORT CARD32
|
||||||
xf86GetModuleVersion(pointer module)
|
xf86GetModuleVersion(pointer module)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
return (CARD32)LoaderGetModuleVersion(module);
|
return (CARD32)LoaderGetModuleVersion(module);
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT pointer
|
_X_EXPORT pointer
|
||||||
xf86LoadDrvSubModule(DriverPtr drv, const char *name)
|
xf86LoadDrvSubModule(DriverPtr drv, const char *name)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
pointer ret;
|
pointer ret;
|
||||||
int errmaj = 0, errmin = 0;
|
int errmaj = 0, errmin = 0;
|
||||||
|
|
||||||
|
@ -2400,15 +2381,11 @@ xf86LoadDrvSubModule(DriverPtr drv, const char *name)
|
||||||
if (!ret)
|
if (!ret)
|
||||||
LoaderErrorMsg(NULL, name, errmaj, errmin);
|
LoaderErrorMsg(NULL, name, errmaj, errmin);
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
|
||||||
return (pointer)1;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT pointer
|
_X_EXPORT pointer
|
||||||
xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name)
|
xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
pointer ret;
|
pointer ret;
|
||||||
int errmaj = 0, errmin = 0;
|
int errmaj = 0, errmin = 0;
|
||||||
|
|
||||||
|
@ -2417,9 +2394,6 @@ xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name)
|
||||||
if (!ret)
|
if (!ret)
|
||||||
LoaderErrorMsg(pScrn->name, name, errmaj, errmin);
|
LoaderErrorMsg(pScrn->name, name, errmaj, errmin);
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
|
||||||
return (pointer)1;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2428,9 +2402,7 @@ xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name)
|
||||||
_X_EXPORT pointer
|
_X_EXPORT pointer
|
||||||
xf86LoadOneModule(char *name, pointer opt)
|
xf86LoadOneModule(char *name, pointer opt)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
int errmaj, errmin;
|
int errmaj, errmin;
|
||||||
#endif
|
|
||||||
char *Name;
|
char *Name;
|
||||||
pointer mod;
|
pointer mod;
|
||||||
|
|
||||||
|
@ -2452,13 +2424,9 @@ xf86LoadOneModule(char *name, pointer opt)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
mod = LoadModule(Name, NULL, NULL, NULL, opt, NULL, &errmaj, &errmin);
|
mod = LoadModule(Name, NULL, NULL, NULL, opt, NULL, &errmaj, &errmin);
|
||||||
if (!mod)
|
if (!mod)
|
||||||
LoaderErrorMsg(NULL, Name, errmaj, errmin);
|
LoaderErrorMsg(NULL, Name, errmaj, errmin);
|
||||||
#else
|
|
||||||
mod = (pointer)1;
|
|
||||||
#endif
|
|
||||||
xfree(Name);
|
xfree(Name);
|
||||||
return mod;
|
return mod;
|
||||||
}
|
}
|
||||||
|
@ -2470,7 +2438,7 @@ xf86UnloadSubModule(pointer mod)
|
||||||
* This is disabled for now. The loader isn't smart enough yet to undo
|
* This is disabled for now. The loader isn't smart enough yet to undo
|
||||||
* relocations.
|
* relocations.
|
||||||
*/
|
*/
|
||||||
#if defined(XFree86LOADER) && 0
|
#if 0
|
||||||
UnloadSubModule(mod);
|
UnloadSubModule(mod);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -2478,59 +2446,47 @@ xf86UnloadSubModule(pointer mod)
|
||||||
_X_EXPORT Bool
|
_X_EXPORT Bool
|
||||||
xf86LoaderCheckSymbol(const char *name)
|
xf86LoaderCheckSymbol(const char *name)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
return LoaderSymbol(name) != NULL;
|
return LoaderSymbol(name) != NULL;
|
||||||
#else
|
|
||||||
return TRUE;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT void
|
_X_EXPORT void
|
||||||
xf86LoaderReqSymLists(const char **list0, ...)
|
xf86LoaderReqSymLists(const char **list0, ...)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, list0);
|
va_start(ap, list0);
|
||||||
LoaderVReqSymLists(list0, ap);
|
LoaderVReqSymLists(list0, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT void
|
_X_EXPORT void
|
||||||
xf86LoaderReqSymbols(const char *sym0, ...)
|
xf86LoaderReqSymbols(const char *sym0, ...)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, sym0);
|
va_start(ap, sym0);
|
||||||
LoaderVReqSymbols(sym0, ap);
|
LoaderVReqSymbols(sym0, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT void
|
_X_EXPORT void
|
||||||
xf86LoaderRefSymLists(const char **list0, ...)
|
xf86LoaderRefSymLists(const char **list0, ...)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, list0);
|
va_start(ap, list0);
|
||||||
LoaderVRefSymLists(list0, ap);
|
LoaderVRefSymLists(list0, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT void
|
_X_EXPORT void
|
||||||
xf86LoaderRefSymbols(const char *sym0, ...)
|
xf86LoaderRefSymbols(const char *sym0, ...)
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, sym0);
|
va_start(ap, sym0);
|
||||||
LoaderVRefSymbols(sym0, ap);
|
LoaderVRefSymbols(sym0, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,11 +35,7 @@
|
||||||
#define _xf86InPriv_h
|
#define _xf86InPriv_h
|
||||||
|
|
||||||
/* xf86Globals.c */
|
/* xf86Globals.c */
|
||||||
#ifdef XFree86LOADER
|
|
||||||
extern InputDriverPtr *xf86InputDriverList;
|
extern InputDriverPtr *xf86InputDriverList;
|
||||||
#else
|
|
||||||
extern InputDriverPtr xf86InputDriverList[];
|
|
||||||
#endif
|
|
||||||
extern int xf86NumInputDrivers;
|
extern int xf86NumInputDrivers;
|
||||||
|
|
||||||
/* xf86Xinput.c */
|
/* xf86Xinput.c */
|
||||||
|
|
|
@ -62,9 +62,7 @@
|
||||||
|
|
||||||
#include "compiler.h"
|
#include "compiler.h"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "loaderProcs.h"
|
#include "loaderProcs.h"
|
||||||
#endif
|
|
||||||
#ifdef XFreeXDGA
|
#ifdef XFreeXDGA
|
||||||
#include "dgaproc.h"
|
#include "dgaproc.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -114,12 +112,10 @@ extern void os2ServerVideoAccess();
|
||||||
void (*xf86OSPMClose)(void) = NULL;
|
void (*xf86OSPMClose)(void) = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
static char *baseModules[] = {
|
static char *baseModules[] = {
|
||||||
"pcidata",
|
"pcidata",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Common pixmap formats */
|
/* Common pixmap formats */
|
||||||
|
|
||||||
|
@ -272,10 +268,8 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, j, k, scr_index;
|
int i, j, k, scr_index;
|
||||||
static unsigned long generation = 0;
|
static unsigned long generation = 0;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
char **modulelist;
|
char **modulelist;
|
||||||
pointer *optionlist;
|
pointer *optionlist;
|
||||||
#endif
|
|
||||||
screenLayoutPtr layout;
|
screenLayoutPtr layout;
|
||||||
Pix24Flags screenpix24, pix24;
|
Pix24Flags screenpix24, pix24;
|
||||||
MessageType pix24From = X_DEFAULT;
|
MessageType pix24From = X_DEFAULT;
|
||||||
|
@ -333,7 +327,6 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
if (!autoconfig)
|
if (!autoconfig)
|
||||||
PostConfigInit();
|
PostConfigInit();
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Initialise the loader */
|
/* Initialise the loader */
|
||||||
LoaderInit();
|
LoaderInit();
|
||||||
|
|
||||||
|
@ -377,8 +370,6 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
if (!xf86LoadModules(baseModules, NULL))
|
if (!xf86LoadModules(baseModules, NULL))
|
||||||
FatalError("Unable to load required base modules, Exiting...\n");
|
FatalError("Unable to load required base modules, Exiting...\n");
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
xf86OpenConsole();
|
xf86OpenConsole();
|
||||||
|
|
||||||
/* Do a general bus probe. This will be a PCI probe for x86 platforms */
|
/* Do a general bus probe. This will be a PCI probe for x86 platforms */
|
||||||
|
@ -401,7 +392,6 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
/* Initialise the resource broker */
|
/* Initialise the resource broker */
|
||||||
xf86ResourceBrokerInit();
|
xf86ResourceBrokerInit();
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Load all modules specified explicitly in the config file */
|
/* Load all modules specified explicitly in the config file */
|
||||||
if ((modulelist = xf86ModulelistFromConfig(&optionlist))) {
|
if ((modulelist = xf86ModulelistFromConfig(&optionlist))) {
|
||||||
xf86LoadModules(modulelist, optionlist);
|
xf86LoadModules(modulelist, optionlist);
|
||||||
|
@ -432,7 +422,6 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
* XXX Nothing keeps track of them for other modules.
|
* XXX Nothing keeps track of them for other modules.
|
||||||
*/
|
*/
|
||||||
/* XXX What do we do if not all of these could be loaded? */
|
/* XXX What do we do if not all of these could be loaded? */
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* At this point, xf86DriverList[] is all filled in with entries for
|
* At this point, xf86DriverList[] is all filled in with entries for
|
||||||
|
@ -672,12 +661,10 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/* Remove (unload) drivers that are not required */
|
/* Remove (unload) drivers that are not required */
|
||||||
for (i = 0; i < xf86NumDrivers; i++)
|
for (i = 0; i < xf86NumDrivers; i++)
|
||||||
if (xf86DriverList[i] && xf86DriverList[i]->refCount <= 0)
|
if (xf86DriverList[i] && xf86DriverList[i]->refCount <= 0)
|
||||||
xf86DeleteDriver(i);
|
xf86DeleteDriver(i);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* At this stage we know how many screens there are.
|
* At this stage we know how many screens there are.
|
||||||
|
@ -982,12 +969,10 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
if ((serverGeneration == 1) && LoaderCheckUnresolved(LD_RESOLV_IFDONE)) {
|
if ((serverGeneration == 1) && LoaderCheckUnresolved(LD_RESOLV_IFDONE)) {
|
||||||
/* For now, just a warning */
|
/* For now, just a warning */
|
||||||
xf86Msg(X_WARNING, "Some symbols could not be resolved!\n");
|
xf86Msg(X_WARNING, "Some symbols could not be resolved!\n");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
xf86PostScreenInit();
|
xf86PostScreenInit();
|
||||||
|
|
||||||
|
@ -1167,9 +1152,7 @@ OsVendorInit()
|
||||||
signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
|
signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
|
||||||
#endif
|
#endif
|
||||||
OsDelayInitColors = TRUE;
|
OsDelayInitColors = TRUE;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
loadableFonts = TRUE;
|
loadableFonts = TRUE;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!beenHere)
|
if (!beenHere)
|
||||||
xf86LogInit();
|
xf86LogInit();
|
||||||
|
@ -1461,9 +1444,7 @@ ddxProcessArgument(int argc, char **argv, int i)
|
||||||
}
|
}
|
||||||
if (!strcmp(argv[i],"-ignoreABI"))
|
if (!strcmp(argv[i],"-ignoreABI"))
|
||||||
{
|
{
|
||||||
#ifdef XFree86LOADER
|
|
||||||
LoaderSetOptions(LDR_OPT_ABI_MISMATCH_NONFATAL);
|
LoaderSetOptions(LDR_OPT_ABI_MISMATCH_NONFATAL);
|
||||||
#endif
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (!strcmp(argv[i],"-verbose"))
|
if (!strcmp(argv[i],"-verbose"))
|
||||||
|
@ -1870,9 +1851,7 @@ xf86PrintBanner()
|
||||||
#endif
|
#endif
|
||||||
ErrorF("\tBefore reporting problems, check "__VENDORDWEBSUPPORT__"\n"
|
ErrorF("\tBefore reporting problems, check "__VENDORDWEBSUPPORT__"\n"
|
||||||
"\tto make sure that you have the latest version.\n");
|
"\tto make sure that you have the latest version.\n");
|
||||||
#ifdef XFree86LOADER
|
|
||||||
ErrorF("Module Loader present\n");
|
ErrorF("Module Loader present\n");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1919,7 +1898,6 @@ xf86RunVtInit(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/*
|
/*
|
||||||
* xf86LoadModules iterates over a list that is being passed in.
|
* xf86LoadModules iterates over a list that is being passed in.
|
||||||
*/
|
*/
|
||||||
|
@ -1962,8 +1940,6 @@ xf86LoadModules(char **list, pointer *optlist)
|
||||||
return !failed;
|
return !failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Pixmap format stuff */
|
/* Pixmap format stuff */
|
||||||
|
|
||||||
_X_EXPORT PixmapFormatPtr
|
_X_EXPORT PixmapFormatPtr
|
||||||
|
|
|
@ -459,12 +459,10 @@ MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd)
|
||||||
mseParamsPtr mse = structure;
|
mseParamsPtr mse = structure;
|
||||||
InputInfoPtr pInfo;
|
InputInfoPtr pInfo;
|
||||||
MouseDevPtr pMse;
|
MouseDevPtr pMse;
|
||||||
#ifdef XFree86LOADER
|
|
||||||
pointer xf86MouseProtocolIDToName
|
pointer xf86MouseProtocolIDToName
|
||||||
= LoaderSymbol("xf86MouseProtocolIDToName");
|
= LoaderSymbol("xf86MouseProtocolIDToName");
|
||||||
if (!xf86MouseProtocolIDToName)
|
if (!xf86MouseProtocolIDToName)
|
||||||
return MISC_RET_NOMODULE;
|
return MISC_RET_NOMODULE;
|
||||||
#endif
|
|
||||||
if (mse->type < MTYPE_MICROSOFT
|
if (mse->type < MTYPE_MICROSOFT
|
||||||
|| ( mse->type > MTYPE_EXPPS2
|
|| ( mse->type > MTYPE_EXPPS2
|
||||||
&& (mse->type!=MTYPE_OSMOUSE && mse->type!=MTYPE_XQUEUE)))
|
&& (mse->type!=MTYPE_OSMOUSE && mse->type!=MTYPE_XQUEUE)))
|
||||||
|
@ -563,12 +561,8 @@ MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd)
|
||||||
pMse->chordMiddle = mse->chordmiddle;
|
pMse->chordMiddle = mse->chordmiddle;
|
||||||
pMse->mouseFlags = mse->flags;
|
pMse->mouseFlags = mse->flags;
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
pMse->protocol = ((const char *(*)(MouseProtocolID))
|
pMse->protocol = ((const char *(*)(MouseProtocolID))
|
||||||
xf86MouseProtocolIDToName)(pMse->protocolID);
|
xf86MouseProtocolIDToName)(pMse->protocolID);
|
||||||
#else
|
|
||||||
pMse->protocol = xf86MouseProtocolIDToName(pMse->protocolID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (mse->device) {
|
if (mse->device) {
|
||||||
if (MiscExtAuthorizeDevice(pInfo, mse->device)) {
|
if (MiscExtAuthorizeDevice(pInfo, mse->device)) {
|
||||||
|
|
|
@ -95,13 +95,9 @@ extern unsigned short xf86MouseCflags[];
|
||||||
extern Bool xf86SupportedMouseTypes[];
|
extern Bool xf86SupportedMouseTypes[];
|
||||||
extern int xf86NumMouseTypes;
|
extern int xf86NumMouseTypes;
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
extern DriverPtr *xf86DriverList;
|
extern DriverPtr *xf86DriverList;
|
||||||
extern ModuleInfoPtr *xf86ModuleInfoList;
|
extern ModuleInfoPtr *xf86ModuleInfoList;
|
||||||
extern int xf86NumModuleInfos;
|
extern int xf86NumModuleInfos;
|
||||||
#else
|
|
||||||
extern DriverPtr xf86DriverList[];
|
|
||||||
#endif
|
|
||||||
extern int xf86NumDrivers;
|
extern int xf86NumDrivers;
|
||||||
extern Bool xf86Resetting;
|
extern Bool xf86Resetting;
|
||||||
extern Bool xf86Initialising;
|
extern Bool xf86Initialising;
|
||||||
|
|
|
@ -1690,19 +1690,12 @@ xf86PciProbe(void)
|
||||||
/*
|
/*
|
||||||
* Initialise the pcidata entry points.
|
* Initialise the pcidata entry points.
|
||||||
*/
|
*/
|
||||||
#ifdef XFree86LOADER
|
|
||||||
xf86SetupPciIds = (ScanPciSetupProcPtr)LoaderSymbol("ScanPciSetupPciIds");
|
xf86SetupPciIds = (ScanPciSetupProcPtr)LoaderSymbol("ScanPciSetupPciIds");
|
||||||
xf86ClosePciIds = (ScanPciCloseProcPtr)LoaderSymbol("ScanPciClosePciIds");
|
xf86ClosePciIds = (ScanPciCloseProcPtr)LoaderSymbol("ScanPciClosePciIds");
|
||||||
xf86FindPciNamesByDevice =
|
xf86FindPciNamesByDevice =
|
||||||
(ScanPciFindByDeviceProcPtr)LoaderSymbol("ScanPciFindPciNamesByDevice");
|
(ScanPciFindByDeviceProcPtr)LoaderSymbol("ScanPciFindPciNamesByDevice");
|
||||||
xf86FindPciNamesBySubsys =
|
xf86FindPciNamesBySubsys =
|
||||||
(ScanPciFindBySubsysProcPtr)LoaderSymbol("ScanPciFindPciNamesBySubsys");
|
(ScanPciFindBySubsysProcPtr)LoaderSymbol("ScanPciFindPciNamesBySubsys");
|
||||||
#else
|
|
||||||
xf86SetupPciIds = ScanPciSetupPciIds;
|
|
||||||
xf86ClosePciIds = ScanPciClosePciIds;
|
|
||||||
xf86FindPciNamesByDevice = ScanPciFindPciNamesByDevice;
|
|
||||||
xf86FindPciNamesBySubsys = ScanPciFindPciNamesBySubsys;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!xf86SetupPciIds())
|
if (!xf86SetupPciIds())
|
||||||
FatalError("xf86SetupPciIds() failed\n");
|
FatalError("xf86SetupPciIds() failed\n");
|
||||||
|
|
|
@ -319,7 +319,6 @@ typedef struct _DriverRec {
|
||||||
#define HaveDriverFuncs 1
|
#define HaveDriverFuncs 1
|
||||||
|
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/*
|
/*
|
||||||
* The optional module list struct. This allows modules exporting helping
|
* The optional module list struct. This allows modules exporting helping
|
||||||
* functions to configuration tools, the Xserver, or any other
|
* functions to configuration tools, the Xserver, or any other
|
||||||
|
@ -333,7 +332,6 @@ typedef struct _ModuleInfoRec {
|
||||||
const OptionInfoRec * (*AvailableOptions)(void *unused);
|
const OptionInfoRec * (*AvailableOptions)(void *unused);
|
||||||
pointer unused[8]; /* leave some space for more fields */
|
pointer unused[8]; /* leave some space for more fields */
|
||||||
} ModuleInfoRec, *ModuleInfoPtr;
|
} ModuleInfoRec, *ModuleInfoPtr;
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are the private bus types. New types can be added here. Types
|
* These are the private bus types. New types can be added here. Types
|
||||||
|
|
|
@ -53,9 +53,7 @@
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
#include <X11/extensions/Xvproto.h>
|
#include <X11/extensions/Xvproto.h>
|
||||||
#include "xvdix.h"
|
#include "xvdix.h"
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "xvmodproc.h"
|
#include "xvmodproc.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "xf86xvpriv.h"
|
#include "xf86xvpriv.h"
|
||||||
|
|
||||||
|
@ -118,16 +116,9 @@ int XF86XvScreenIndex = -1;
|
||||||
static unsigned long XF86XVGeneration = 0;
|
static unsigned long XF86XVGeneration = 0;
|
||||||
static unsigned long PortResource = 0;
|
static unsigned long PortResource = 0;
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
int (*XvGetScreenIndexProc)(void) = NULL;
|
int (*XvGetScreenIndexProc)(void) = NULL;
|
||||||
unsigned long (*XvGetRTPortProc)(void) = NULL;
|
unsigned long (*XvGetRTPortProc)(void) = NULL;
|
||||||
int (*XvScreenInitProc)(ScreenPtr) = NULL;
|
int (*XvScreenInitProc)(ScreenPtr) = NULL;
|
||||||
#else
|
|
||||||
int (*XvGetScreenIndexProc)(void) = XvGetScreenIndex;
|
|
||||||
unsigned long (*XvGetRTPortProc)(void) = XvGetRTPort;
|
|
||||||
int (*XvScreenInitProc)(ScreenPtr) = XvScreenInit;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define GET_XV_SCREEN(pScreen) \
|
#define GET_XV_SCREEN(pScreen) \
|
||||||
((XvScreenPtr)((pScreen)->devPrivates[XF86XvScreenIndex].ptr))
|
((XvScreenPtr)((pScreen)->devPrivates[XF86XvScreenIndex].ptr))
|
||||||
|
|
|
@ -41,19 +41,13 @@
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "xvmodproc.h"
|
#include "xvmodproc.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "xf86xvpriv.h"
|
#include "xf86xvpriv.h"
|
||||||
#include "xf86xvmc.h"
|
#include "xf86xvmc.h"
|
||||||
|
|
||||||
typedef int (*XvMCScreenInitProcPtr)(ScreenPtr, int, XvMCAdaptorPtr);
|
typedef int (*XvMCScreenInitProcPtr)(ScreenPtr, int, XvMCAdaptorPtr);
|
||||||
#ifdef XFree86LOADER
|
|
||||||
_X_EXPORT XvMCScreenInitProcPtr XvMCScreenInitProc = NULL;
|
_X_EXPORT XvMCScreenInitProcPtr XvMCScreenInitProc = NULL;
|
||||||
#else
|
|
||||||
_X_EXPORT XvMCScreenInitProcPtr XvMCScreenInitProc = XvMCScreenInit;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -8,6 +8,6 @@ libddc_la_SOURCES = xf86DDC.c edid.c interpret_edid.c print_edid.c \
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS) -I$(srcdir)/../i2c
|
INCLUDES = $(XORG_INCS) -I$(srcdir)/../i2c
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
EXTRA_DIST = ddcPriv.h DDC.HOWTO
|
EXTRA_DIST = ddcPriv.h DDC.HOWTO
|
||||||
|
|
|
@ -121,14 +121,12 @@ static const OptionInfoRec DDCOptions[] = {
|
||||||
{ -1, NULL, OPTV_NONE, {0}, FALSE },
|
{ -1, NULL, OPTV_NONE, {0}, FALSE },
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
static const OptionInfoRec *
|
static const OptionInfoRec *
|
||||||
DDCAvailableOptions(void *unused)
|
DDCAvailableOptions(void *unused)
|
||||||
{
|
{
|
||||||
return (DDCOptions);
|
return (DDCOptions);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to probe the monitor for EDID information, if NoDDC and NoDDC1 are
|
* Attempts to probe the monitor for EDID information, if NoDDC and NoDDC1 are
|
||||||
|
|
|
@ -31,7 +31,7 @@ fontsmoduledir = $(moduledir)/fonts
|
||||||
fontsmodule_LTLIBRARIES = libfreetype.la \
|
fontsmodule_LTLIBRARIES = libfreetype.la \
|
||||||
libtype1.la
|
libtype1.la
|
||||||
|
|
||||||
AM_CFLAGS = @XORG_CFLAGS@ @DIX_CFLAGS@ @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = @XORG_CFLAGS@ @DIX_CFLAGS@
|
||||||
INCLUDES = @XORG_INCS@ \
|
INCLUDES = @XORG_INCS@ \
|
||||||
-I$(top_srcdir)/afb \
|
-I$(top_srcdir)/afb \
|
||||||
-I$(top_srcdir)/cfb \
|
-I$(top_srcdir)/cfb \
|
||||||
|
@ -64,6 +64,7 @@ libdbe_la_SOURCES = dbemodule.c
|
||||||
libfb_la_LDFLAGS = -avoid-version
|
libfb_la_LDFLAGS = -avoid-version
|
||||||
libfb_la_LIBADD = $(top_builddir)/fb/libfb.la
|
libfb_la_LIBADD = $(top_builddir)/fb/libfb.la
|
||||||
libfb_la_SOURCES = $(top_builddir)/fb/fbcmap.c fbmodule.c
|
libfb_la_SOURCES = $(top_builddir)/fb/fbcmap.c fbmodule.c
|
||||||
|
libfb_la_CFLAGS = -DXFree86Server $(AM_CFLAGS)
|
||||||
|
|
||||||
libglx_la_LDFLAGS = -avoid-version
|
libglx_la_LDFLAGS = -avoid-version
|
||||||
if AIGLX
|
if AIGLX
|
||||||
|
@ -93,6 +94,7 @@ libtype1_la_LDFLAGS = -avoid-version
|
||||||
libtype1_la_SOURCES = type1mod.c
|
libtype1_la_SOURCES = type1mod.c
|
||||||
|
|
||||||
libdixmods_la_SOURCES = $(top_srcdir)/mi/miinitext.c
|
libdixmods_la_SOURCES = $(top_srcdir)/mi/miinitext.c
|
||||||
|
libdixmods_la_CFLAGS = -DXFree86LOADER $(AM_CFLAGS)
|
||||||
|
|
||||||
libxorgxkb_la_SOURCES = xkbVT.c xkbPrivate.c xkbKillSrv.c
|
libxorgxkb_la_SOURCES = xkbVT.c xkbPrivate.c xkbKillSrv.c
|
||||||
libxorgxkb_la_LIBADD = $(top_builddir)/dix/libdix.la
|
libxorgxkb_la_LIBADD = $(top_builddir)/dix/libdix.la
|
||||||
|
|
|
@ -11,7 +11,7 @@ if XV
|
||||||
XV_SRCS = xvmod.c xvmodproc.h
|
XV_SRCS = xvmod.c xvmodproc.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AM_CFLAGS = @XORG_CFLAGS@ @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = @XORG_CFLAGS@
|
||||||
INCLUDES = @XORG_INCS@ \
|
INCLUDES = @XORG_INCS@ \
|
||||||
-I$(top_srcdir)/afb \
|
-I$(top_srcdir)/afb \
|
||||||
-I$(top_srcdir)/mfb \
|
-I$(top_srcdir)/mfb \
|
||||||
|
|
|
@ -6436,7 +6436,6 @@ static PciChipsets ZZZPciChipsets[] = {
|
||||||
driver. This is required for the dynamically loaded version:
|
driver. This is required for the dynamically loaded version:
|
||||||
<p>
|
<p>
|
||||||
<code>
|
<code>
|
||||||
#ifdef XFree86LOADER
|
|
||||||
static XF86ModuleVersionInfo zzzVersRec =
|
static XF86ModuleVersionInfo zzzVersRec =
|
||||||
{
|
{
|
||||||
"zzz",
|
"zzz",
|
||||||
|
@ -6450,7 +6449,6 @@ static XF86ModuleVersionInfo zzzVersRec =
|
||||||
MOD_CLASS_VIDEODRV,
|
MOD_CLASS_VIDEODRV,
|
||||||
{0,0,0,0}
|
{0,0,0,0}
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
</code>
|
</code>
|
||||||
<p>
|
<p>
|
||||||
<item>Define a data structure to hold the driver's screen-specific data.
|
<item>Define a data structure to hold the driver's screen-specific data.
|
||||||
|
@ -6508,9 +6506,7 @@ static const OptionInfoRec ZZZOptions[] = {
|
||||||
the driver to the main list of drivers.
|
the driver to the main list of drivers.
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
#ifdef XFree86LOADER
|
static MODULESETUPPROTO(zzzSetup);
|
||||||
|
|
||||||
static MODULESETUPPROTO(mgaSetup);
|
|
||||||
|
|
||||||
XF86ModuleData zzzModuleData = { &zzzVersRec, zzzSetup, NULL };
|
XF86ModuleData zzzModuleData = { &zzzVersRec, zzzSetup, NULL };
|
||||||
|
|
||||||
|
@ -6540,7 +6536,6 @@ zzzSetup(pointer module, pointer opts, int *errmaj, int *errmin)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
<sect2>GetRec, FreeRec
|
<sect2>GetRec, FreeRec
|
||||||
|
|
|
@ -7,9 +7,9 @@ libdri_la_CFLAGS = -I$(top_srcdir)/hw/xfree86/common \
|
||||||
-I$(top_builddir)/GL/include \
|
-I$(top_builddir)/GL/include \
|
||||||
-I@MESA_SOURCE@/include \
|
-I@MESA_SOURCE@/include \
|
||||||
-DHAVE_XORG_CONFIG_H \
|
-DHAVE_XORG_CONFIG_H \
|
||||||
@SERVER_DEFINES@ \
|
\
|
||||||
@MODULE_DEFINES@ \
|
\
|
||||||
@LOADER_DEFINES@ \
|
\
|
||||||
@DRIPROTO_CFLAGS@ \
|
@DRIPROTO_CFLAGS@ \
|
||||||
@LIBDRM_CFLAGS@ \
|
@LIBDRM_CFLAGS@ \
|
||||||
@GL_CFLAGS@
|
@GL_CFLAGS@
|
||||||
|
|
|
@ -69,7 +69,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "mi.h"
|
#include "mi.h"
|
||||||
#include "mipointer.h"
|
#include "mipointer.h"
|
||||||
|
|
||||||
#if defined(XFree86LOADER) && !defined(PANORAMIX)
|
#if !defined(PANORAMIX)
|
||||||
extern Bool noPanoramiXExtension;
|
extern Bool noPanoramiXExtension;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -135,14 +135,9 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
|
||||||
* If Xinerama is on, don't allow DRI to initialise. It won't be usable
|
* If Xinerama is on, don't allow DRI to initialise. It won't be usable
|
||||||
* anyway.
|
* anyway.
|
||||||
*/
|
*/
|
||||||
#if defined(PANORAMIX) && !defined(XFree86LOADER)
|
|
||||||
xineramaInCore = TRUE;
|
|
||||||
#elif defined(XFree86LOADER)
|
|
||||||
if (xf86LoaderCheckSymbol("noPanoramiXExtension"))
|
if (xf86LoaderCheckSymbol("noPanoramiXExtension"))
|
||||||
xineramaInCore = TRUE;
|
xineramaInCore = TRUE;
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PANORAMIX) || defined(XFree86LOADER)
|
|
||||||
if (xineramaInCore) {
|
if (xineramaInCore) {
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
DRIDrvMsg(pScreen->myNum, X_WARNING,
|
DRIDrvMsg(pScreen->myNum, X_WARNING,
|
||||||
|
@ -150,7 +145,6 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
drmWasAvailable = drmAvailable();
|
drmWasAvailable = drmAvailable();
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ noinst_LIBRARIES = libdummy.a libdummy-nonserver.a
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
if NEED_STRLCAT
|
if NEED_STRLCAT
|
||||||
STRL_SRCS = $(top_srcdir)/os/strlcat.c $(top_srcdir)/os/strlcpy.c
|
STRL_SRCS = $(top_srcdir)/os/strlcat.c $(top_srcdir)/os/strlcpy.c
|
||||||
|
|
|
@ -7,7 +7,7 @@ INCLUDES = \
|
||||||
-I$(srcdir)/../../../exa \
|
-I$(srcdir)/../../../exa \
|
||||||
-I$(srcdir)/../../../miext/cw
|
-I$(srcdir)/../../../miext/cw
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
libexa_la_SOURCES = \
|
libexa_la_SOURCES = \
|
||||||
examodule.c
|
examodule.c
|
||||||
|
|
|
@ -11,7 +11,7 @@ endif
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS) -I$(srcdir)/../i2c
|
INCLUDES = $(XORG_INCS) -I$(srcdir)/../i2c
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
sdk_HEADERS = fbdevhw.h
|
sdk_HEADERS = fbdevhw.h
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ libi2c_la_SOURCES = xf86i2c.c xf86i2cmodule.c
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
sdk_HEADERS = xf86i2c.h bt829.h fi1236.h msp3430.h tda8425.h tda9850.h tda9885.h uda1380.h i2c_def.h
|
sdk_HEADERS = xf86i2c.h bt829.h fi1236.h msp3430.h tda8425.h tda9850.h tda9885.h uda1380.h i2c_def.h
|
||||||
|
|
||||||
|
|
|
@ -82,8 +82,6 @@ int bt829_SetCC(BT829Ptr bt);
|
||||||
"bt829_SetOUT_EN", \
|
"bt829_SetOUT_EN", \
|
||||||
"bt829_SetP_IO"
|
"bt829_SetP_IO"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_bt829_Detect ((BT829Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("bt829_Detect"))
|
#define xf86_bt829_Detect ((BT829Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("bt829_Detect"))
|
||||||
#define xf86_bt829_ATIInit ((int (*)(BT829Ptr))LoaderSymbol("bt829_ATIInit"))
|
#define xf86_bt829_ATIInit ((int (*)(BT829Ptr))LoaderSymbol("bt829_ATIInit"))
|
||||||
#define xf86_bt829_SetFormat ((int (*)(BT829Ptr, CARD8))LoaderSymbol("bt829_SetFormat"))
|
#define xf86_bt829_SetFormat ((int (*)(BT829Ptr, CARD8))LoaderSymbol("bt829_SetFormat"))
|
||||||
|
@ -96,20 +94,4 @@ int bt829_SetCC(BT829Ptr bt);
|
||||||
#define xf86_bt829_SetOUT_EN ((void (*)(BT829Ptr, Bool))LoaderSymbol("bt829_SetOUT_EN"))
|
#define xf86_bt829_SetOUT_EN ((void (*)(BT829Ptr, Bool))LoaderSymbol("bt829_SetOUT_EN"))
|
||||||
#define xf86_bt829_SetP_IO ((void (*)(BT829Ptr, CARD8))LoaderSymbol("bt829_SetP_IO"))
|
#define xf86_bt829_SetP_IO ((void (*)(BT829Ptr, CARD8))LoaderSymbol("bt829_SetP_IO"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_bt829_Detect bt829_Detect
|
|
||||||
#define xf86_bt829_ATIInit bt829_ATIInit
|
|
||||||
#define xf86_bt829_SetFormat bt829_SetFormat
|
|
||||||
#define xf86_bt829_SetMux bt829_SetMux
|
|
||||||
#define xf86_bt829_SetCaptSize bt829_SetCaptSize
|
|
||||||
#define xf86_bt829_SetBrightness bt829_SetBrightness
|
|
||||||
#define xf86_bt829_SetContrast bt829_SetContrast
|
|
||||||
#define xf86_bt829_SetSaturation bt829_SetSaturation
|
|
||||||
#define xf86_bt829_SetTint bt829_SetTint
|
|
||||||
#define xf86_bt829_SetOUT_EN bt829_SetOUT_EN
|
|
||||||
#define xf86_bt829_SetP_IO bt829_SetP_IO
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -100,8 +100,6 @@ void fi1236_dump_status(FI1236Ptr f);
|
||||||
"FI1236_set_tuner_type", \
|
"FI1236_set_tuner_type", \
|
||||||
"TUNER_set_frequency"
|
"TUNER_set_frequency"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_Detect_FI1236 ((FI1236Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_FI1236"))
|
#define xf86_Detect_FI1236 ((FI1236Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_FI1236"))
|
||||||
#define xf86_FI1236_set_tuner_type ((void (*)(FI1236Ptr, int))LoaderSymbol("FI1236_set_tuner_type"))
|
#define xf86_FI1236_set_tuner_type ((void (*)(FI1236Ptr, int))LoaderSymbol("FI1236_set_tuner_type"))
|
||||||
#define xf86_TUNER_set_frequency ((void (*)(FI1236Ptr, CARD32))LoaderSymbol("TUNER_set_frequency"))
|
#define xf86_TUNER_set_frequency ((void (*)(FI1236Ptr, CARD32))LoaderSymbol("TUNER_set_frequency"))
|
||||||
|
@ -109,15 +107,4 @@ void fi1236_dump_status(FI1236Ptr f);
|
||||||
#define xf86_TUNER_get_afc_hint ((int (*)(FI1236Ptr))LoaderSymbol("TUNER_get_afc_hint"))
|
#define xf86_TUNER_get_afc_hint ((int (*)(FI1236Ptr))LoaderSymbol("TUNER_get_afc_hint"))
|
||||||
#define xf86_fi1236_dump_status ((void (*)(FI1236Ptr))LoaderSymbol("fi1236_dump_status"))
|
#define xf86_fi1236_dump_status ((void (*)(FI1236Ptr))LoaderSymbol("fi1236_dump_status"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_Detect_FI1236 Detect_FI1236
|
|
||||||
#define xf86_FI1236_set_tuner_type FI1236_set_tuner_type
|
|
||||||
#define xf86_TUNER_set_frequency TUNER_set_frequency
|
|
||||||
#define xf86_FI1236_AFC FI1236_AFC
|
|
||||||
#define xf86_TUNER_get_afc_hint TUNER_get_afc_hint
|
|
||||||
#define xf86_fi1236_dump_status fi1236_dump_status
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
/* the following are a workaround for possible loader bug..
|
/* the following are a workaround for possible loader bug..
|
||||||
WATCH function types ! */
|
WATCH function types ! */
|
||||||
#if XFree86LOADER
|
|
||||||
|
|
||||||
#define CreateI2CBusRec ((pointer (*)(void))LoaderSymbol("xf86CreateI2CBusRec"))
|
#define CreateI2CBusRec ((pointer (*)(void))LoaderSymbol("xf86CreateI2CBusRec"))
|
||||||
#define DestroyI2CBusRec ((pointer (*)(I2CBusPtr, Bool, Bool))LoaderSymbol("xf86DestroyI2CBusRec"))
|
#define DestroyI2CBusRec ((pointer (*)(I2CBusPtr, Bool, Bool))LoaderSymbol("xf86DestroyI2CBusRec"))
|
||||||
#define I2CBusInit ((Bool (*)(pointer))LoaderSymbol("xf86I2CBusInit"))
|
#define I2CBusInit ((Bool (*)(pointer))LoaderSymbol("xf86I2CBusInit"))
|
||||||
|
@ -13,17 +11,4 @@
|
||||||
#define I2CDevInit ((Bool (*)(I2CDevPtr))LoaderSymbol("xf86I2CDevInit"))
|
#define I2CDevInit ((Bool (*)(I2CDevPtr))LoaderSymbol("xf86I2CDevInit"))
|
||||||
#define I2CProbeAddress ((Bool (*)(I2CBusPtr,I2CSlaveAddr))LoaderSymbol("xf86I2CProbeAddress"))
|
#define I2CProbeAddress ((Bool (*)(I2CBusPtr,I2CSlaveAddr))LoaderSymbol("xf86I2CProbeAddress"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define CreateI2CBusRec xf86CreateI2CBusRec
|
|
||||||
#define DestroyI2CBusRec xf86DestroyI2CBusRec
|
|
||||||
#define I2CBusInit xf86I2CBusInit
|
|
||||||
#define I2C_WriteRead xf86I2CWriteRead
|
|
||||||
#define CreateI2CDevRec xf86CreateI2CDevRec
|
|
||||||
#define I2CDevInit xf86I2CDevInit
|
|
||||||
#define I2CProbeAddress xf86I2CProbeAddress
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -105,22 +105,10 @@ void MSP3430SetSAP (MSP3430Ptr m, int mode);
|
||||||
"MSP3430SetVolume", \
|
"MSP3430SetVolume", \
|
||||||
"MSP3430SetSAP"
|
"MSP3430SetSAP"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_DetectMSP3430 ((MSP3430Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("DetectMSP3430"))
|
#define xf86_DetectMSP3430 ((MSP3430Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("DetectMSP3430"))
|
||||||
#define xf86_ResetMSP3430 ((void (*)(MSP3430Ptr))LoaderSymbol("ResetMSP3430"))
|
#define xf86_ResetMSP3430 ((void (*)(MSP3430Ptr))LoaderSymbol("ResetMSP3430"))
|
||||||
#define xf86_MSP3430SetVolume ((void (*)(MSP3430Ptr, CARD8))LoaderSymbol("MSP3430SetVolume"))
|
#define xf86_MSP3430SetVolume ((void (*)(MSP3430Ptr, CARD8))LoaderSymbol("MSP3430SetVolume"))
|
||||||
#define xf86_MSP3430SetSAP ((void (*)(MSP3430Ptr, int))LoaderSymbol("MSP3430SetSAP"))
|
#define xf86_MSP3430SetSAP ((void (*)(MSP3430Ptr, int))LoaderSymbol("MSP3430SetSAP"))
|
||||||
#define xf86_InitMSP3430 ((void (*)(MSP3430Ptr))LoaderSymbol("InitMSP3430"))
|
#define xf86_InitMSP3430 ((void (*)(MSP3430Ptr))LoaderSymbol("InitMSP3430"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_DetectMSP3430 DetectMSP3430
|
|
||||||
#define xf86_ResetMSP3430 ResetMSP3430
|
|
||||||
#define xf86_MSP3430SetVolume MSP3430SetVolume
|
|
||||||
#define xf86_MSP3430SetSAP MSP3430SetSAP
|
|
||||||
#define xf86_InitMSP3430 InitMSP3430
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -34,20 +34,9 @@ void tda8425_mute(TDA8425Ptr t, Bool mute);
|
||||||
"tda8425_setaudio", \
|
"tda8425_setaudio", \
|
||||||
"tda8425_mute"
|
"tda8425_mute"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_Detect_tda8425 ((TDA8425Ptr (*)(I2CBusPtr, I2CSlaveAddr,Bool))LoaderSymbol("Detect_tda8425"))
|
#define xf86_Detect_tda8425 ((TDA8425Ptr (*)(I2CBusPtr, I2CSlaveAddr,Bool))LoaderSymbol("Detect_tda8425"))
|
||||||
#define xf86_tda8425_init ((Bool (*)(TDA8425Ptr))LoaderSymbol("tda8425_init"))
|
#define xf86_tda8425_init ((Bool (*)(TDA8425Ptr))LoaderSymbol("tda8425_init"))
|
||||||
#define xf86_tda8425_setaudio ((void (*)(TDA8425Ptr))LoaderSymbol("tda8425_setaudio"))
|
#define xf86_tda8425_setaudio ((void (*)(TDA8425Ptr))LoaderSymbol("tda8425_setaudio"))
|
||||||
#define xf86_tda8425_mute ((void (*)(TDA8425Ptr, Bool))LoaderSymbol("tda8425_mute"))
|
#define xf86_tda8425_mute ((void (*)(TDA8425Ptr, Bool))LoaderSymbol("tda8425_mute"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_Detect_tda8425 Detect_tda8425
|
|
||||||
#define xf86_tda8425_init tda8425_init
|
|
||||||
#define xf86_tda8425_setaudio tda8425_setaudio
|
|
||||||
#define xf86_tda8425_mute tda8425_mute
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -29,8 +29,6 @@ CARD16 tda9850_getstatus(TDA9850Ptr t);
|
||||||
"tda9850_mute", \
|
"tda9850_mute", \
|
||||||
"tda9850_sap_mute"
|
"tda9850_sap_mute"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_Detect_tda9850 ((TDA9850Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9850"))
|
#define xf86_Detect_tda9850 ((TDA9850Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9850"))
|
||||||
#define xf86_tda9850_init ((Bool (*)(TDA9850Ptr))LoaderSymbol("tda9850_init"))
|
#define xf86_tda9850_init ((Bool (*)(TDA9850Ptr))LoaderSymbol("tda9850_init"))
|
||||||
#define xf86_tda9850_setaudio ((void (*)(TDA9850Ptr))LoaderSymbol("tda9850_setaudio"))
|
#define xf86_tda9850_setaudio ((void (*)(TDA9850Ptr))LoaderSymbol("tda9850_setaudio"))
|
||||||
|
@ -38,15 +36,4 @@ CARD16 tda9850_getstatus(TDA9850Ptr t);
|
||||||
#define xf86_tda9850_sap_mute ((void (*)(TDA9850Ptr, Bool))LoaderSymbol("tda9850_sap_mute"))
|
#define xf86_tda9850_sap_mute ((void (*)(TDA9850Ptr, Bool))LoaderSymbol("tda9850_sap_mute"))
|
||||||
#define xf86_tda9850_getstatus ((CARD16 (*)(TDA9850Ptr))LoaderSymbol("tda9850_getstatus"))
|
#define xf86_tda9850_getstatus ((CARD16 (*)(TDA9850Ptr))LoaderSymbol("tda9850_getstatus"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_Detect_tda9850 Detect_tda9850
|
|
||||||
#define xf86_tda9850_init tda9850_init
|
|
||||||
#define xf86_tda9850_setaudio tda9850_setaudio
|
|
||||||
#define xf86_tda9850_mute tda9850_mute
|
|
||||||
#define xf86_tda9850_sap_mute tda9850_sap_mute
|
|
||||||
#define xf86_tda9850_getstatus tda9850_getstatus
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -51,22 +51,10 @@ void tda9885_dumpstatus(TDA9885Ptr t);
|
||||||
"tda9885_setaudio", \
|
"tda9885_setaudio", \
|
||||||
"tda9885_mute"
|
"tda9885_mute"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_Detect_tda9885 ((TDA9885Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9885"))
|
#define xf86_Detect_tda9885 ((TDA9885Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9885"))
|
||||||
#define xf86_tda9885_init ((Bool (*)(TDA9885Ptr))LoaderSymbol("tda9885_init"))
|
#define xf86_tda9885_init ((Bool (*)(TDA9885Ptr))LoaderSymbol("tda9885_init"))
|
||||||
#define xf86_tda9885_setparameters ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_setparameters"))
|
#define xf86_tda9885_setparameters ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_setparameters"))
|
||||||
#define xf86_tda9885_getstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_getstatus"))
|
#define xf86_tda9885_getstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_getstatus"))
|
||||||
#define xf86_tda9885_dumpstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_dumpstatus"))
|
#define xf86_tda9885_dumpstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_dumpstatus"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_Detect_tda9885 Detect_tda9885
|
|
||||||
#define xf86_tda9885_init tda9885_init
|
|
||||||
#define xf86_tda9885_setparameters tda9885_setparameters
|
|
||||||
#define xf86_tda9885_getstatus tda9885_getstatus
|
|
||||||
#define xf86_tda9885_dumpstatus tda9885_dumpstatus
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -66,8 +66,6 @@ void uda1380_dumpstatus(UDA1380Ptr t);
|
||||||
"uda1380_getstatus", \
|
"uda1380_getstatus", \
|
||||||
"uda1380_dumpstatus"
|
"uda1380_dumpstatus"
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
|
|
||||||
#define xf86_Detect_uda1380 ((UDA1380Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_uda1380"))
|
#define xf86_Detect_uda1380 ((UDA1380Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_uda1380"))
|
||||||
#define xf86_uda1380_init ((Bool (*)(UDA1380Ptr))LoaderSymbol("uda1380_init"))
|
#define xf86_uda1380_init ((Bool (*)(UDA1380Ptr))LoaderSymbol("uda1380_init"))
|
||||||
#define xf86_uda1380_shutdown ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_shutdown"))
|
#define xf86_uda1380_shutdown ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_shutdown"))
|
||||||
|
@ -77,17 +75,4 @@ void uda1380_dumpstatus(UDA1380Ptr t);
|
||||||
#define xf86_uda1380_getstatus ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_getstatus"))
|
#define xf86_uda1380_getstatus ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_getstatus"))
|
||||||
#define xf86_uda1380_dumpstatus ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_dumpstatus"))
|
#define xf86_uda1380_dumpstatus ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_dumpstatus"))
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define xf86_Detect_uda1380 Detect_uda1380
|
|
||||||
#define xf86_uda1380_init uda1380_init
|
|
||||||
#define xf86_uda1380_shutdown uda1380_shutdown
|
|
||||||
#define xf86_uda1380_setvolume uda1380_setvolume
|
|
||||||
#define xf86_uda1380_mute uda1380_mute
|
|
||||||
#define xf86_uda1380_setparameters uda1380_setparameters
|
|
||||||
#define xf86_uda1380_getstatus uda1380_getstatus
|
|
||||||
#define xf86_uda1380_dumpstatus uda1380_dumpstatus
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,7 +2,7 @@ module_LTLIBRARIES = libint10.la
|
||||||
|
|
||||||
sdk_HEADERS = xf86int10.h
|
sdk_HEADERS = xf86int10.h
|
||||||
|
|
||||||
EXTRA_CFLAGS = @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
EXTRA_CFLAGS =
|
||||||
|
|
||||||
libint10_la_LDFLAGS = -avoid-version
|
libint10_la_LDFLAGS = -avoid-version
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ INCLUDES = $(XORG_INCS) -I$(srcdir)/../parser -I$(srcdir)/../dixmods/extmod \
|
||||||
-I$(srcdir)/../ddc -I$(srcdir)/../i2c
|
-I$(srcdir)/../ddc -I$(srcdir)/../i2c
|
||||||
|
|
||||||
#AM_LDFLAGS = -r
|
#AM_LDFLAGS = -r
|
||||||
AM_CFLAGS = -DIN_LOADER $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DIN_LOADER $(XORG_CFLAGS)
|
||||||
|
|
||||||
if XORG_LOADER_SPARC
|
if XORG_LOADER_SPARC
|
||||||
SPARC_SOURCES = SparcMulDiv.S
|
SPARC_SOURCES = SparcMulDiv.S
|
||||||
|
|
|
@ -50,7 +50,7 @@ ARCH_SOURCES = \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# FIXME: NetBSD Aperture defines (configure.ac)
|
# FIXME: NetBSD Aperture defines (configure.ac)
|
||||||
AM_CFLAGS = -DUSESTDRES $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DUSESTDRES $(XORG_CFLAGS)
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,7 @@
|
||||||
#include <machine/joystick.h>
|
#include <machine/joystick.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#endif
|
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
|
|
||||||
#define JS_RETURN sizeof(struct joystick)
|
#define JS_RETURN sizeof(struct joystick)
|
||||||
|
@ -174,7 +172,6 @@ xf86JoystickGetState(int fd, int *x, int *y, int *buttons)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/*
|
/*
|
||||||
* Entry point for XFree86 Loader
|
* Entry point for XFree86 Loader
|
||||||
*/
|
*/
|
||||||
|
@ -184,5 +181,4 @@ bsd_jstkModuleInit(pointer *data, INT32 *magic)
|
||||||
*magic = MAGIC_DONE;
|
*magic = MAGIC_DONE;
|
||||||
*data = NULL;
|
*data = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
/* end of bsd_jstk.c */
|
/* end of bsd_jstk.c */
|
||||||
|
|
|
@ -53,6 +53,6 @@ libbus_la_SOURCES = Pci.c Pci.h $(PCI_SOURCES) $(PLATFORM_PCI_SOURCES) \
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
EXTRA_DIST = $(sdk_HEADERS)
|
EXTRA_DIST = $(sdk_HEADERS)
|
||||||
|
|
|
@ -7,9 +7,8 @@ libdrm_la_CFLAGS = -I$(top_srcdir)/hw/xfree86/common \
|
||||||
-I$(top_srcdir)/GL/glx \
|
-I$(top_srcdir)/GL/glx \
|
||||||
-I$(top_srcdir)/GL/include \
|
-I$(top_srcdir)/GL/include \
|
||||||
-DHAVE_XORG_CONFIG_H \
|
-DHAVE_XORG_CONFIG_H \
|
||||||
@LIBDRM_CFLAGS@ \
|
@LIBDRM_CFLAGS@
|
||||||
@SERVER_DEFINES@ \
|
|
||||||
@LOADER_DEFINES@
|
|
||||||
libdrm_la_LDFLAGS = -module -avoid-version
|
libdrm_la_LDFLAGS = -module -avoid-version
|
||||||
libdrm_ladir = $(moduledir)/@XORG_OS@
|
libdrm_ladir = $(moduledir)/@XORG_OS@
|
||||||
libdrm_la_SOURCES = \
|
libdrm_la_SOURCES = \
|
||||||
|
|
|
@ -37,18 +37,10 @@
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XFree86Server
|
#include "xf86.h"
|
||||||
# include "xf86.h"
|
#include "xf86_OSproc.h"
|
||||||
# include "xf86_OSproc.h"
|
#define _DRM_MALLOC xalloc
|
||||||
# define _DRM_MALLOC xalloc
|
#define _DRM_FREE xfree
|
||||||
# define _DRM_FREE xfree
|
|
||||||
# ifndef XFree86LOADER
|
|
||||||
# include <sys/mman.h>
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# define _DRM_MALLOC malloc
|
|
||||||
# define _DRM_FREE free
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -124,19 +116,9 @@ drmMsg(const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
#ifndef XFree86Server
|
va_start(ap, format);
|
||||||
const char *env;
|
xf86VDrvMsgVerb(-1, X_NONE, DRM_MSG_VERBOSITY, format, ap);
|
||||||
if ((env = getenv("LIBGL_DEBUG")) && strstr(env, "verbose"))
|
va_end(ap);
|
||||||
#endif
|
|
||||||
{
|
|
||||||
va_start(ap, format);
|
|
||||||
#ifdef XFree86Server
|
|
||||||
xf86VDrvMsgVerb(-1, X_NONE, DRM_MSG_VERBOSITY, format, ap);
|
|
||||||
#else
|
|
||||||
vfprintf(stderr, format, ap);
|
|
||||||
#endif
|
|
||||||
va_end(ap);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *drmHashTable = NULL; /* Context switch callbacks */
|
static void *drmHashTable = NULL; /* Context switch callbacks */
|
||||||
|
@ -270,19 +252,15 @@ static int drmOpenDevice(long dev, int minor)
|
||||||
int fd;
|
int fd;
|
||||||
mode_t devmode = DRM_DEV_MODE;
|
mode_t devmode = DRM_DEV_MODE;
|
||||||
int isroot = !geteuid();
|
int isroot = !geteuid();
|
||||||
#if defined(XFree86Server)
|
|
||||||
uid_t user = DRM_DEV_UID;
|
uid_t user = DRM_DEV_UID;
|
||||||
gid_t group = DRM_DEV_GID;
|
gid_t group = DRM_DEV_GID;
|
||||||
#endif
|
|
||||||
|
|
||||||
sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, minor);
|
sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, minor);
|
||||||
drmMsg("drmOpenDevice: node name is %s\n", buf);
|
drmMsg("drmOpenDevice: node name is %s\n", buf);
|
||||||
|
|
||||||
#if defined(XFree86Server)
|
|
||||||
devmode = xf86ConfigDRI.mode ? xf86ConfigDRI.mode : DRM_DEV_MODE;
|
devmode = xf86ConfigDRI.mode ? xf86ConfigDRI.mode : DRM_DEV_MODE;
|
||||||
devmode &= ~(S_IXUSR|S_IXGRP|S_IXOTH);
|
devmode &= ~(S_IXUSR|S_IXGRP|S_IXOTH);
|
||||||
group = (xf86ConfigDRI.group >= 0) ? xf86ConfigDRI.group : DRM_DEV_GID;
|
group = (xf86ConfigDRI.group >= 0) ? xf86ConfigDRI.group : DRM_DEV_GID;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (stat(DRM_DIR_NAME, &st)) {
|
if (stat(DRM_DIR_NAME, &st)) {
|
||||||
if (!isroot) return DRM_ERR_NOT_ROOT;
|
if (!isroot) return DRM_ERR_NOT_ROOT;
|
||||||
|
@ -297,10 +275,8 @@ static int drmOpenDevice(long dev, int minor)
|
||||||
remove(buf);
|
remove(buf);
|
||||||
mknod(buf, S_IFCHR | devmode, dev);
|
mknod(buf, S_IFCHR | devmode, dev);
|
||||||
}
|
}
|
||||||
#if defined(XFree86Server)
|
|
||||||
chown(buf, user, group);
|
chown(buf, user, group);
|
||||||
chmod(buf, devmode);
|
chmod(buf, devmode);
|
||||||
#endif
|
|
||||||
|
|
||||||
fd = open(buf, O_RDWR, 0);
|
fd = open(buf, O_RDWR, 0);
|
||||||
drmMsg("drmOpenDevice: open result is %d, (%s)\n",
|
drmMsg("drmOpenDevice: open result is %d, (%s)\n",
|
||||||
|
@ -314,10 +290,8 @@ static int drmOpenDevice(long dev, int minor)
|
||||||
if (!isroot) return DRM_ERR_NOT_ROOT;
|
if (!isroot) return DRM_ERR_NOT_ROOT;
|
||||||
remove(buf);
|
remove(buf);
|
||||||
mknod(buf, S_IFCHR | devmode, dev);
|
mknod(buf, S_IFCHR | devmode, dev);
|
||||||
#if defined(XFree86Server)
|
|
||||||
chown(buf, user, group);
|
chown(buf, user, group);
|
||||||
chmod(buf, devmode);
|
chmod(buf, devmode);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
fd = open(buf, O_RDWR, 0);
|
fd = open(buf, O_RDWR, 0);
|
||||||
drmMsg("drmOpenDevice: open result is %d, (%s)\n",
|
drmMsg("drmOpenDevice: open result is %d, (%s)\n",
|
||||||
|
@ -454,16 +428,12 @@ static int drmOpenByName(const char *name)
|
||||||
char * id;
|
char * id;
|
||||||
|
|
||||||
if (!drmAvailable()) {
|
if (!drmAvailable()) {
|
||||||
#if !defined(XFree86Server)
|
|
||||||
return -1;
|
|
||||||
#else
|
|
||||||
/* try to load the kernel module now */
|
/* try to load the kernel module now */
|
||||||
if (!xf86LoadKernelModule(name)) {
|
if (!xf86LoadKernelModule(name)) {
|
||||||
ErrorF("[drm] failed to load kernel module \"%s\"\n",
|
ErrorF("[drm] failed to load kernel module \"%s\"\n",
|
||||||
name);
|
name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -546,7 +516,6 @@ static int drmOpenByName(const char *name)
|
||||||
*/
|
*/
|
||||||
int drmOpen(const char *name, const char *busid)
|
int drmOpen(const char *name, const char *busid)
|
||||||
{
|
{
|
||||||
#ifdef XFree86Server
|
|
||||||
if (!drmAvailable() && name != NULL) {
|
if (!drmAvailable() && name != NULL) {
|
||||||
/* try to load the kernel */
|
/* try to load the kernel */
|
||||||
if (!xf86LoadKernelModule(name)) {
|
if (!xf86LoadKernelModule(name)) {
|
||||||
|
@ -555,7 +524,6 @@ int drmOpen(const char *name, const char *busid)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (busid) {
|
if (busid) {
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -2259,7 +2227,6 @@ int drmCommandWriteRead(int fd, unsigned long drmCommandIndex,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(XFree86Server)
|
|
||||||
static void drmSIGIOHandler(int interrupt, void *closure)
|
static void drmSIGIOHandler(int interrupt, void *closure)
|
||||||
{
|
{
|
||||||
unsigned long key;
|
unsigned long key;
|
||||||
|
@ -2323,4 +2290,3 @@ int drmRemoveSIGIOHandler(int fd)
|
||||||
|
|
||||||
return xf86RemoveSIGIOHandler(fd);
|
return xf86RemoveSIGIOHandler(fd);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -81,9 +81,7 @@
|
||||||
#if !HASH_MAIN
|
#if !HASH_MAIN
|
||||||
# include "drm.h"
|
# include "drm.h"
|
||||||
# include "xf86drm.h"
|
# include "xf86drm.h"
|
||||||
# ifdef XFree86LOADER
|
# include "xf86.h"
|
||||||
# include "xf86.h"
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define N(x) drm##x
|
#define N(x) drm##x
|
||||||
|
|
|
@ -84,9 +84,7 @@
|
||||||
#if !RANDOM_MAIN
|
#if !RANDOM_MAIN
|
||||||
# include "drm.h"
|
# include "drm.h"
|
||||||
# include "xf86drm.h"
|
# include "xf86drm.h"
|
||||||
# ifdef XFree86LOADER
|
# include "xf86.h"
|
||||||
# include "xf86.h"
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define N(x) drm##x
|
#define N(x) drm##x
|
||||||
|
|
|
@ -53,12 +53,7 @@
|
||||||
#else
|
#else
|
||||||
# include "drm.h"
|
# include "drm.h"
|
||||||
# include "xf86drm.h"
|
# include "xf86drm.h"
|
||||||
# ifdef XFree86LOADER
|
# include "xf86.h"
|
||||||
# include "xf86.h"
|
|
||||||
# else
|
|
||||||
# include <stdio.h>
|
|
||||||
# include <stdlib.h>
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define N(x) drm##x
|
#define N(x) drm##x
|
||||||
|
|
|
@ -34,7 +34,7 @@ liblinux_la_SOURCES = lnx_init.c lnx_video.c lnx_io.c lnx_kbd.c lnx_mouse.c \
|
||||||
$(APM_SOURCES) \
|
$(APM_SOURCES) \
|
||||||
$(PLATFORM_PCI_SUPPORT)
|
$(PLATFORM_PCI_SUPPORT)
|
||||||
|
|
||||||
AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(XORG_CFLAGS)
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS) -I/usr/include/drm # FIXME this last part is crack
|
INCLUDES = $(XORG_INCS) -I/usr/include/drm # FIXME this last part is crack
|
||||||
|
|
||||||
|
|
|
@ -18,12 +18,6 @@
|
||||||
#else
|
#else
|
||||||
#define DEV_MEM "/dev/mem"
|
#define DEV_MEM "/dev/mem"
|
||||||
#endif
|
#endif
|
||||||
#ifndef XFree86LOADER
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#ifndef MAP_FAILED
|
|
||||||
#define MAP_FAILED ((void *)-1)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#define ALLOC_ENTRIES(x) ((V_RAM / x) - 1)
|
#define ALLOC_ENTRIES(x) ((V_RAM / x) - 1)
|
||||||
#define SHMERRORPTR (pointer)(-1)
|
#define SHMERRORPTR (pointer)(-1)
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,7 @@ static const char rcs_id[] = "Id: lnx_jstk.c,v 1.1 1995/12/20 14:06:09 lepied Ex
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(JSIOCGTIMELIMIT)
|
#if !defined(JSIOCGTIMELIMIT)
|
||||||
/* make 2.1.x joystick.h backward compatable */
|
/* make 2.1.x joystick.h backward compatable */
|
||||||
|
@ -172,7 +170,6 @@ xf86JoystickGetState(int fd, int *x, int *y, int *buttons)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86LOADER
|
|
||||||
/*
|
/*
|
||||||
* Entry point for XFree86 Loader
|
* Entry point for XFree86 Loader
|
||||||
*/
|
*/
|
||||||
|
@ -182,6 +179,5 @@ linux_jstkModuleInit(pointer *data, INT32 *magic)
|
||||||
*magic = MAGIC_DONE;
|
*magic = MAGIC_DONE;
|
||||||
*data = NULL;
|
*data = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* end of lnx_jstk.c */
|
/* end of lnx_jstk.c */
|
||||||
|
|
|
@ -18,6 +18,6 @@ libmisc_la_SOURCES = xf86_Util.c Delay.c $(ARCH_SOURCES)
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
EXTRA_DIST = $(I386_SOURCES) $(PORTIO_SOURCES) $(ILHACK_SOURCES)
|
EXTRA_DIST = $(I386_SOURCES) $(PORTIO_SOURCES) $(ILHACK_SOURCES)
|
||||||
|
|
|
@ -58,22 +58,11 @@
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XFree86Server
|
|
||||||
# include <X11/X.h>
|
# include <X11/X.h>
|
||||||
# include "xf86.h"
|
# include "xf86.h"
|
||||||
# include "xf86Priv.h"
|
# include "xf86Priv.h"
|
||||||
# include "xf86_OSlib.h"
|
# include "xf86_OSlib.h"
|
||||||
# include "inputstr.h"
|
# include "inputstr.h"
|
||||||
#else
|
|
||||||
# include <unistd.h>
|
|
||||||
# include <signal.h>
|
|
||||||
# include <fcntl.h>
|
|
||||||
# include <sys/time.h>
|
|
||||||
# include <errno.h>
|
|
||||||
# include <stdio.h>
|
|
||||||
# include <string.h>
|
|
||||||
# define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Linux libc5 defines FASYNC, but not O_ASYNC. Don't know if it is
|
* Linux libc5 defines FASYNC, but not O_ASYNC. Don't know if it is
|
||||||
|
@ -126,11 +115,9 @@ xf86SIGIO (int sig)
|
||||||
xf86SigIOFuncs[i].closure);
|
xf86SigIOFuncs[i].closure);
|
||||||
r--;
|
r--;
|
||||||
}
|
}
|
||||||
#ifdef XFree86Server
|
|
||||||
if (r > 0) {
|
if (r > 0) {
|
||||||
xf86Msg(X_ERROR, "SIGIO %d descriptors not handled\n", r);
|
xf86Msg(X_ERROR, "SIGIO %d descriptors not handled\n", r);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -159,24 +146,14 @@ xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *closure)
|
||||||
return 0;
|
return 0;
|
||||||
blocked = xf86BlockSIGIO();
|
blocked = xf86BlockSIGIO();
|
||||||
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_ASYNC) == -1) {
|
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_ASYNC) == -1) {
|
||||||
#ifdef XFree86Server
|
|
||||||
xf86Msg(X_WARNING, "fcntl(%d, O_ASYNC): %s\n",
|
xf86Msg(X_WARNING, "fcntl(%d, O_ASYNC): %s\n",
|
||||||
fd, strerror(errno));
|
fd, strerror(errno));
|
||||||
#else
|
|
||||||
fprintf(stderr,"fcntl(%d, O_ASYNC): %s\n",
|
|
||||||
fd, strerror(errno));
|
|
||||||
#endif
|
|
||||||
xf86UnblockSIGIO(blocked);
|
xf86UnblockSIGIO(blocked);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (fcntl(fd, F_SETOWN, getpid()) == -1) {
|
if (fcntl(fd, F_SETOWN, getpid()) == -1) {
|
||||||
#ifdef XFree86Server
|
|
||||||
xf86Msg(X_WARNING, "fcntl(%d, F_SETOWN): %s\n",
|
xf86Msg(X_WARNING, "fcntl(%d, F_SETOWN): %s\n",
|
||||||
fd, strerror(errno));
|
fd, strerror(errno));
|
||||||
#else
|
|
||||||
fprintf(stderr,"fcntl(%d, F_SETOWN): %s\n",
|
|
||||||
fd, strerror(errno));
|
|
||||||
#endif
|
|
||||||
xf86UnblockSIGIO(blocked);
|
xf86UnblockSIGIO(blocked);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -289,7 +266,6 @@ xf86UnblockSIGIO (int wasset)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86Server
|
|
||||||
void
|
void
|
||||||
xf86AssertBlockedSIGIO (char *where)
|
xf86AssertBlockedSIGIO (char *where)
|
||||||
{
|
{
|
||||||
|
@ -308,5 +284,3 @@ xf86SIGIOSupported (void)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XFree86Server
|
|
||||||
#ifdef __UNIXOS2__
|
#ifdef __UNIXOS2__
|
||||||
# define I_NEED_OS2_H
|
# define I_NEED_OS2_H
|
||||||
#endif
|
#endif
|
||||||
|
@ -39,13 +38,6 @@
|
||||||
# include "xf86.h"
|
# include "xf86.h"
|
||||||
# include "xf86Priv.h"
|
# include "xf86Priv.h"
|
||||||
# include "xf86_OSlib.h"
|
# include "xf86_OSlib.h"
|
||||||
#else
|
|
||||||
# include <unistd.h>
|
|
||||||
# include <signal.h>
|
|
||||||
# include <fcntl.h>
|
|
||||||
# include <sys/time.h>
|
|
||||||
# include <errno.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_X_EXPORT int
|
_X_EXPORT int
|
||||||
xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *closure)
|
xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *closure)
|
||||||
|
@ -70,12 +62,10 @@ xf86UnblockSIGIO (int wasset)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XFree86Server
|
|
||||||
void
|
void
|
||||||
xf86AssertBlockedSIGIO (char *where)
|
xf86AssertBlockedSIGIO (char *where)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* XXX This is a quick hack for the benefit of xf86SetSilkenMouse() */
|
/* XXX This is a quick hack for the benefit of xf86SetSilkenMouse() */
|
||||||
Bool
|
Bool
|
||||||
|
|
|
@ -34,7 +34,7 @@ nodist_libsolaris_la_SOURCES = $(SOLARIS_INOUT_SRC)
|
||||||
sdk_HEADERS = agpgart.h
|
sdk_HEADERS = agpgart.h
|
||||||
nodist_sdk_HEADERS = solaris-$(SOLARIS_INOUT_ARCH).il
|
nodist_sdk_HEADERS = solaris-$(SOLARIS_INOUT_ARCH).il
|
||||||
|
|
||||||
AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(XORG_CFLAGS)
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
|
|
|
@ -212,9 +212,7 @@ extern int xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *);
|
||||||
extern int xf86RemoveSIGIOHandler(int fd);
|
extern int xf86RemoveSIGIOHandler(int fd);
|
||||||
extern int xf86BlockSIGIO (void);
|
extern int xf86BlockSIGIO (void);
|
||||||
extern void xf86UnblockSIGIO (int);
|
extern void xf86UnblockSIGIO (int);
|
||||||
#ifdef XFree86Server
|
|
||||||
extern void xf86AssertBlockedSIGIO (char *);
|
extern void xf86AssertBlockedSIGIO (char *);
|
||||||
#endif
|
|
||||||
extern Bool xf86SIGIOSupported (void);
|
extern Bool xf86SIGIOSupported (void);
|
||||||
|
|
||||||
#ifdef XF86_OS_PRIVS
|
#ifdef XF86_OS_PRIVS
|
||||||
|
|
|
@ -28,33 +28,27 @@
|
||||||
|
|
||||||
/* Handle <stdarg.h> */
|
/* Handle <stdarg.h> */
|
||||||
|
|
||||||
#ifndef IN_MODULE
|
#ifndef __OS2ELF__
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
#else /* !IN_MODULE */
|
#else /* __OS2ELF__ */
|
||||||
# ifndef __OS2ELF__
|
/* EMX/gcc_elf under OS/2 does not have native header files */
|
||||||
# include <stdarg.h>
|
# if !defined (_VA_LIST)
|
||||||
# else /* __OS2ELF__ */
|
# define _VA_LIST
|
||||||
/* EMX/gcc_elf under OS/2 does not have native header files */
|
typedef char *va_list;
|
||||||
# if !defined (_VA_LIST)
|
# endif
|
||||||
# define _VA_LIST
|
# define _VA_ROUND(t) ((sizeof (t) + 3) & -4)
|
||||||
typedef char *va_list;
|
# if !defined (va_start)
|
||||||
# endif
|
# define va_start(ap,v) ap = (va_list)&v + ((sizeof (v) + 3) & -4)
|
||||||
# define _VA_ROUND(t) ((sizeof (t) + 3) & -4)
|
# define va_end(ap) (ap = 0, (void)0)
|
||||||
# if !defined (va_start)
|
# define va_arg(ap,t) (ap += _VA_ROUND (t), *(t *)(ap - _VA_ROUND (t)))
|
||||||
# define va_start(ap,v) ap = (va_list)&v + ((sizeof (v) + 3) & -4)
|
# endif
|
||||||
# define va_end(ap) (ap = 0, (void)0)
|
#endif /* __OS2ELF__ */
|
||||||
# define va_arg(ap,t) (ap += _VA_ROUND (t), *(t *)(ap - _VA_ROUND (t)))
|
|
||||||
# endif
|
|
||||||
# endif /* __OS2ELF__ */
|
|
||||||
#endif /* IN_MODULE */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The first set of definitions are required both for modules and
|
* The first set of definitions are required both for modules and
|
||||||
* libc_wrapper.c.
|
* libc_wrapper.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(XFree86LOADER) || defined(NEED_XF86_TYPES)
|
|
||||||
|
|
||||||
#if !defined(SYSV) && !defined(SVR4) && !defined(Lynx) || \
|
#if !defined(SYSV) && !defined(SVR4) && !defined(Lynx) || \
|
||||||
defined(__SCO__) || defined(__UNIXWARE__)
|
defined(__SCO__) || defined(__UNIXWARE__)
|
||||||
#define HAVE_VSSCANF
|
#define HAVE_VSSCANF
|
||||||
|
@ -133,9 +127,6 @@
|
||||||
#define MAXLONG LONG_MAX
|
#define MAXLONG LONG_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* XFree86LOADER || NEED_XF86_TYPES */
|
|
||||||
|
|
||||||
#if defined(XFree86LOADER) || defined(NEED_XF86_PROTOTYPES)
|
|
||||||
/*
|
/*
|
||||||
* ANSI C compilers only.
|
* ANSI C compilers only.
|
||||||
*/
|
*/
|
||||||
|
@ -321,21 +312,6 @@ extern void xf86longjmp(xf86jmp_buf env, int val);
|
||||||
(xf86getjmptype() == 1 ? xf86setjmp1((env), xf86setjmp1_arg2()) : \
|
(xf86getjmptype() == 1 ? xf86setjmp1((env), xf86setjmp1_arg2()) : \
|
||||||
xf86setjmperror((env))))
|
xf86setjmperror((env))))
|
||||||
|
|
||||||
#else /* XFree86LOADER || NEED_XF86_PROTOTYPES */
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#ifdef HAVE_SYSV_IPC
|
|
||||||
#include <sys/ipc.h>
|
|
||||||
#include <sys/shm.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#define stat_t struct stat
|
|
||||||
#endif /* XFree86LOADER || NEED_XF86_PROTOTYPES */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These things are always required by drivers (but not by libc_wrapper.c),
|
* These things are always required by drivers (but not by libc_wrapper.c),
|
||||||
* even for a static server because some OSs don't provide them.
|
* even for a static server because some OSs don't provide them.
|
||||||
|
|
|
@ -53,8 +53,6 @@
|
||||||
* libc_wrapper.c.
|
* libc_wrapper.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(XFree86LOADER) || defined(NEED_XF86_TYPES)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* First, the new data types
|
* First, the new data types
|
||||||
*
|
*
|
||||||
|
@ -215,14 +213,12 @@ typedef int xf86jmp_buf[1024];
|
||||||
/* xf86shmclt() */
|
/* xf86shmclt() */
|
||||||
#define XF86IPC_RMID 0
|
#define XF86IPC_RMID 0
|
||||||
|
|
||||||
#endif /* defined(XFree86LOADER) || defined(NEED_XF86_TYPES) */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the rest of this file should only be included for code that is supposed
|
* the rest of this file should only be included for code that is supposed
|
||||||
* to go into modules
|
* to go into modules
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(XFree86LOADER) && !defined(DONT_DEFINE_WRAPPERS)
|
#if !defined(DONT_DEFINE_WRAPPERS)
|
||||||
|
|
||||||
#undef abort
|
#undef abort
|
||||||
#define abort() xf86abort()
|
#define abort() xf86abort()
|
||||||
|
@ -713,10 +709,9 @@ typedef int xf86jmp_buf[1024];
|
||||||
# define _FILEDEFED /* Already have FILE defined, don't redefine it */
|
# define _FILEDEFED /* Already have FILE defined, don't redefine it */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* XFree86LOADER && !DONT_DEFINE_WRAPPERS */
|
#endif /* !DONT_DEFINE_WRAPPERS */
|
||||||
|
|
||||||
#if defined(XFree86LOADER) && \
|
#if (!defined(DONT_DEFINE_WRAPPERS) || defined(DEFINE_SETJMP_WRAPPERS))
|
||||||
(!defined(DONT_DEFINE_WRAPPERS) || defined(DEFINE_SETJMP_WRAPPERS))
|
|
||||||
#undef setjmp
|
#undef setjmp
|
||||||
#define setjmp(a) xf86setjmp_macro(a)
|
#define setjmp(a) xf86setjmp_macro(a)
|
||||||
#undef longjmp
|
#undef longjmp
|
||||||
|
|
|
@ -5,4 +5,4 @@ sdk_HEADERS = xf86RAC.h
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
|
@ -13,7 +13,7 @@ EXTRA_DIST = BTPriv.h IBMPriv.h TIPriv.h xf86CursorPriv.h xf86RamDacPriv.h \
|
||||||
CURSOR.NOTES
|
CURSOR.NOTES
|
||||||
|
|
||||||
AM_CFLAGS = -DXAAReverseBitOrder=xf86ReverseBitOrder -DRAMDAC_MODULE \
|
AM_CFLAGS = -DXAAReverseBitOrder=xf86ReverseBitOrder -DRAMDAC_MODULE \
|
||||||
$(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
$(XORG_CFLAGS)
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
xf86BitOrder.c:
|
xf86BitOrder.c:
|
||||||
|
|
|
@ -8,7 +8,7 @@ libscanpci_la_SOURCES = xf86ScanPci.c
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
||||||
BUILT_SOURCES = xf86PciIds.h
|
BUILT_SOURCES = xf86PciIds.h
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,4 @@ sdk_HEADERS = shadowfb.h
|
||||||
|
|
||||||
INCLUDES = $(XORG_INCS)
|
INCLUDES = $(XORG_INCS)
|
||||||
|
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
|
|
|
@ -33,7 +33,7 @@ INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser
|
||||||
|
|
||||||
OPTIONSPATH=$(libdir)/X11
|
OPTIONSPATH=$(libdir)/X11
|
||||||
|
|
||||||
xorgcfg_CFLAGS = @SERVER_DEFINES@ $(XORG_CFLAGS) $(CURSESDEFINES) \
|
xorgcfg_CFLAGS = $(XORG_CFLAGS) $(CURSESDEFINES) \
|
||||||
$(XORGCFG_DEP_CFLAGS) -DXKB_RULES_DIR=\"$(XKB_BASE_DIRECTORY)/rules\" \
|
$(XORGCFG_DEP_CFLAGS) -DXKB_RULES_DIR=\"$(XKB_BASE_DIRECTORY)/rules\" \
|
||||||
-DPROJECT_ROOT=\"$(PROJECTROOT)\" -DOPTIONSPATH=\"$(OPTIONSPATH)\"
|
-DPROJECT_ROOT=\"$(PROJECTROOT)\" -DOPTIONSPATH=\"$(OPTIONSPATH)\"
|
||||||
xorgcfg_LDADD = $(XORGCFG_DEP_LIBS) ../../parser/libxf86config.a $(LOADERLIB) \
|
xorgcfg_LDADD = $(XORGCFG_DEP_LIBS) ../../parser/libxf86config.a $(LOADERLIB) \
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue