summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/bsd
AgeCommit message (Collapse)AuthorFilesLines
2010-06-10Remove unnecessary parentheses around return values in functionsMikhail Gusarov6-30/+30
This patch was generated by the following Perl code: perl -i -pe 's/([^_])return\s*\(\s*([^(]+?)\s*\)s*;(\s+(\n))?/$1return $2;$4/g;' Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Keith Packard <keithp@keithp.com>
2010-05-13Replace X-allocation functions with their C89 counterpartsMikhail Gusarov1-6/+6
The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-01-25Move OS-specific VT key handler code from common to os-supportAlan Coopersmith1-0/+9
Adds new function xf86Activate to the OS-specific *VTsw*.c files and calls it from xf86ProcessActionEvent Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (GNU/Linux)
2009-08-12Fix build on AlphaMatt Turner1-2/+2
2009-07-28xserver: remove RAC/resource handling code.Dave Airlie1-3/+0
This changes the ABI, but since the video ABI is at 6 already it should be fine. driver changes are in the pipeline after this. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-03-30APM: Use general handlers, not input handlers.Adam Jackson2-4/+4
Otherwise APM events get treated as input events, which messes up idle time accounting and screensavers and such. Not, we hope, that anyone is using APM anymore.
2009-02-01netbsd: Force the use of ev56 instructions for register access on ev56.Manuel Bouyer1-6/+15
This avoids 32-bit access which might affect other registers. The linux code uses gcc flags to get this to happen, but this seems like more of a sure thing.
2009-02-01netbsd: Fix alpha ev6 support.Manuel Bouyer1-1/+6
Bug #19721
2008-12-16Support -sharevts on FreeBSDRobert Noland1-36/+52
Bugzilla #11179 Submitted-by: Nathan Whitehorn Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade11-37/+37
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade6-14/+14
This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode()
2008-11-24Remove xf86{En,Dis}ableInterrupts entirelyAdam Jackson5-107/+0
2008-11-22Remove the old libusbhid copy from os-support/bsd.Matthieu Herrb9-2167/+1
This has been replaced by in-kernel support for USB mices several years ago and hasn't been enabled in build since X.Org 6.8.
2008-11-21Support for BSD apmMatthieu Herrb1-1/+9
XXX check amd64 pci init
2008-10-06xalloc+memset(0) -> xcallocAdam Jackson1-2/+1
2008-08-18Remove dead {bsd,lnx}Resource.cMathieu BĂ©rard2-93/+0
2008-08-09remove OpenBSD/amd64 specific mtrr API.Matthieu Herrb1-66/+0
The old code never worked anyways and was removed from OpenBSD. OpenBSD/amd64 4.4 and later support mtrr with the same API as OpenBSD/i386.
2008-07-20distcheck fixesJulien Cristau1-1/+0
Still seems to fail because hw/xquartz has too long filenames
2008-07-16XFree86: Delete OSMouse codeDaniel Stone1-791/+0
This should be moved into the mouse driver, if anything.
2008-06-24Check for __amd64__, not __x86_64__.Adam Jackson1-1/+1
Spiritual revert of 1fa4de80fcfc697b5e5879cc351fb3e9dbf6acbe. Intel's C compiler claims to be gcc-compatible; if they're not defining the same macros as gcc then that's their bug, not ours. Even if we were to do this aliasing we should do it once and for all in servermd.h.
2008-06-19Various messages clean-ups.Matthieu Herrb1-7/+12
2008-06-19build fixMatthieu Herrb1-1/+1
2008-05-23xfree86: fix build on GNU/kFreeBSDJulien Cristau1-1/+1
GNU/kFreeBSD defines __FreeBSD_kernel__, but not __FreeBSD__. Unify preprocessor conditionals between variable declaration and use. Debian bug #482550.
2008-05-17OpenBSD doesn't define __x86_64__, simplify tests.Brad Smith1-4/+4
Seeing as this code seems to be specific to OpenBSD I don't think __x86_64__ should have been added there at all. It appears to have been added wherever __amd64__ existed before which is wrong. I think that part of the commit should be reverted but also all four of the checks should be __OpenBSD__ && __amd64__ instead of two one direction and two flipped.
2008-04-12Check for __x86_64__ when we check for __amd64__Matt Turner2-5/+5
It seems Intel C Compiler neglects to define __amd64__, __amd64, or amd64, but *does* define __x86_64__.
2008-04-06Remove stale codeSascha Hlusiak2-184/+0
The jstk code for Joysticks is not used by any module, was never actually compiled and uses an API that is deprecated these days. No reason to keep it.
2008-03-16test for the presence of pci_system_init_dev_mem() before calling it.Matthieu Herrb1-0/+2
This avoids creating a dependency on -current libpciaccess for BSD systems other than OpenBSD (which don't otherwise need it).
2008-03-12OpenBSD support for libpciaccess.Mark Kettenis1-0/+3
xserver and libpciaccess both need to open /dev/xf86, which can only be opened once. I implemented pci_system_init_dev_mem() like Ian suggested. This requires some minor changes to the BSD-specific os-support code. Since pci_system_init_dev_mem() is a no-op on FreeBSD this should be no problem.
2008-02-14Use strerror instead of errno values in user strings.Adam Jackson2-2/+2
2008-01-29Bug 13101: xorg-server has a typo in hw/xfree86/os-support/bsd/i386_video.cColeman Kane1-1/+1
X.Org Bug #13101 <https://bugs.freedesktop.org/show_bug.cgi?id=13101> Patch #12360 <https://bugs.freedesktop.org/attachment.cgi?id=12360>
2007-12-03xf86getpagesize -> getpagesize elsewhere in os-support/Adam Jackson3-3/+3
2007-12-03Death to libcwrapper.Adam Jackson1-1/+0
This has been deprecated since 1.1. Since we're breaking ABI again anyway, remove it entirely.
2007-08-30Remove dead xf86GetPciSizeFromOS and xf86GetPciOffsetFromOS.Eric Anholt1-1/+0
2007-08-30Remove the now-dead PciAvoid symbol.Eric Anholt1-2/+0
2007-08-27Remove the BusAccWindows resource code which is now unused.Eric Anholt1-99/+0
This was a bunch of poorly defined resource ranges per OS/platform combination which were supposed to represent what regions could potentially have resources allocated into them.
2007-08-19Autoconfiguration of wsmouse for NetBSD.Blair Sadewitz1-6/+6
2007-08-16Update for support on NetBSD and DragonFly. FromJeremy C. Reed1-1/+4
Joerg Sonnenberger and pkgsrc.
2007-06-29Death to RCS tags.Adam Jackson17-33/+0
2007-05-29Merge branch 'master' of ssh://herrb@git.freedesktop.org/git/xorg/xserverMatthieu Herrb1-0/+5
2007-05-29Make this build on OpenBSDMatthieu Herrb1-2/+2
2007-05-24Fix build on NetBSD/amd64.Matthias Drochner1-0/+5
2007-04-10Add a real xf86EnableIO/xf86DisableIO for NetBSD/PPC.Jared D. McNeill2-2/+34
2006-11-15Fix build on FreeBSD after input-hotplug.Eric Anholt1-0/+5
(cherry picked from commit 4e6e4baead6c565363abbcd9e06cc685be121596)
2006-11-07Add $(DIX_CFLAGS) to remaining Makefile.am filesKeith Packard1-1/+1
2006-11-01input: add non-keyboard bell ringing functionDaniel Stone2-0/+82
Add a generic 'ring the bell' function (console bell on Linux and BSD, /dev/audio on Solaris), and add DDX functions for this. Make this the core keyboard's bell. Port Xvfb and Xnest to this. Port XFree86 to this, with OS-specific hooks for Linux, BSD, and Solaris taken from foo_io.c in the old layer.
2006-08-12xfree86: remove Xqueue support completelyDaniel Stone2-294/+0
2006-08-12completely remove OS keyboard layerDaniel Stone4-1668/+0
Completely axe the keyboard layer from os-support.
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson22-22/+0
2006-07-18get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULEDaniel Stone2-5/+1
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.
2006-05-30Powerpc machines also need ioperm_noop.cMatthieu Herrb1-1/+2