mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
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
7 changed files with 84 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
19
hw/xfree86/os-support/stub/Makefile.am
Normal file
19
hw/xfree86/os-support/stub/Makefile.am
Normal 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
|
||||
10
hw/xfree86/os-support/stub/stub_bell.c
Normal file
10
hw/xfree86/os-support/stub/stub_bell.c
Normal 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)
|
||||
{
|
||||
}
|
||||
12
hw/xfree86/os-support/stub/stub_bios.c
Normal file
12
hw/xfree86/os-support/stub/stub_bios.c
Normal 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;
|
||||
}
|
||||
26
hw/xfree86/os-support/stub/stub_init.c
Normal file
26
hw/xfree86/os-support/stub/stub_init.c
Normal 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()
|
||||
{
|
||||
}
|
||||
13
hw/xfree86/os-support/stub/stub_video.c
Normal file
13
hw/xfree86/os-support/stub/stub_video.c
Normal 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;
|
||||
}
|
||||
Loading…
Reference in a new issue