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:
parent
342f3eac84
commit
e8bafb9d8c
|
@ -1674,8 +1674,8 @@ if test "x$XORG" = xyes; then
|
||||||
xorg_bus_bsdpci="yes"
|
xorg_bus_bsdpci="yes"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
XORG_OS_SUBDIR="unknown"
|
XORG_OS_SUBDIR="stub"
|
||||||
AC_MSG_ERROR([m4_text_wrap(m4_join([ ],
|
AC_MSG_NOTICE([m4_text_wrap(m4_join([ ],
|
||||||
[Your OS is unknown. Xorg currently only supports Linux,],
|
[Your OS is unknown. Xorg currently only supports Linux,],
|
||||||
[Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd.],
|
[Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd.],
|
||||||
[If you are interested in porting Xorg to your platform,],
|
[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/misc/Makefile
|
||||||
hw/xfree86/os-support/linux/Makefile
|
hw/xfree86/os-support/linux/Makefile
|
||||||
hw/xfree86/os-support/solaris/Makefile
|
hw/xfree86/os-support/solaris/Makefile
|
||||||
|
hw/xfree86/os-support/stub/Makefile
|
||||||
hw/xfree86/parser/Makefile
|
hw/xfree86/parser/Makefile
|
||||||
hw/xfree86/ramdac/Makefile
|
hw/xfree86/ramdac/Makefile
|
||||||
hw/xfree86/shadowfb/Makefile
|
hw/xfree86/shadowfb/Makefile
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SUBDIRS = bus @XORG_OS_SUBDIR@ misc $(DRI_SUBDIRS)
|
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
|
sdk_HEADERS = xf86_OSproc.h xf86_OSlib.h
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -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)
|
||||||
|
{
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
|
@ -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()
|
||||||
|
{
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue