xfree86: Add stubs for os-support to help adding new architecture support

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
Jeremy Huddleston 2011-09-13 15:38:45 -05:00
parent 342f3eac84
commit e8bafb9d8c
7 changed files with 84 additions and 3 deletions

View File

@ -1674,8 +1674,8 @@ if test "x$XORG" = xyes; then
xorg_bus_bsdpci="yes"
;;
*)
XORG_OS_SUBDIR="unknown"
AC_MSG_ERROR([m4_text_wrap(m4_join([ ],
XORG_OS_SUBDIR="stub"
AC_MSG_NOTICE([m4_text_wrap(m4_join([ ],
[Your OS is unknown. Xorg currently only supports Linux,],
[Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd.],
[If you are interested in porting Xorg to your platform,],
@ -2176,6 +2176,7 @@ hw/xfree86/os-support/hurd/Makefile
hw/xfree86/os-support/misc/Makefile
hw/xfree86/os-support/linux/Makefile
hw/xfree86/os-support/solaris/Makefile
hw/xfree86/os-support/stub/Makefile
hw/xfree86/parser/Makefile
hw/xfree86/ramdac/Makefile
hw/xfree86/shadowfb/Makefile

View File

@ -1,5 +1,5 @@
SUBDIRS = bus @XORG_OS_SUBDIR@ misc $(DRI_SUBDIRS)
DIST_SUBDIRS = bsd bus misc linux solaris hurd
DIST_SUBDIRS = bsd bus misc linux solaris stub hurd
sdk_HEADERS = xf86_OSproc.h xf86_OSlib.h

View File

@ -0,0 +1,19 @@
noinst_LTLIBRARIES = libstub.la
AM_CFLAGS = $(XORG_CFLAGS) $(DIX_CFLAGS)
INCLUDES = $(XORG_INCS)
libstub_la_SOURCES = \
$(srcdir)/../shared/VTsw_noop.c \
$(srcdir)/../shared/agp_noop.c \
$(srcdir)/../shared/ioperm_noop.c \
$(srcdir)/../shared/kmod_noop.c \
$(srcdir)/../shared/pm_noop.c \
$(srcdir)/../shared/vidmem.c \
$(srcdir)/../shared/posix_tty.c \
$(srcdir)/../shared/sigio.c \
stub_bell.c \
stub_bios.c \
stub_init.c \
stub_video.c

View File

@ -0,0 +1,10 @@
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86_OSlib.h"
void
xf86OSRingBell(int loudness, int pitch, int duration)
{
}

View File

@ -0,0 +1,12 @@
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86_OSlib.h"
int
xf86ReadBIOS(unsigned long Base, unsigned long Offset, unsigned char *Buf,
int Len)
{
return -1;
}

View File

@ -0,0 +1,26 @@
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86_OSlib.h"
void
xf86OpenConsole()
{
}
void
xf86CloseConsole()
{
}
int
xf86ProcessArgument(int argc, char *argv[], int i)
{
return 0;
}
void
xf86UseMsg()
{
}

View File

@ -0,0 +1,13 @@
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86_OSlib.h"
#include "xf86OSpriv.h"
void
xf86OSInitVidMem(VidMemInfoPtr pVidMem)
{
pVidMem->initialised = TRUE;
return;
}