summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support
AgeCommit message (Collapse)AuthorFilesLines
2009-02-17Correct static symbol XkmReadTOC and first pass on compile warning fixes.Paulo Cesar Pereira de Andrade1-1/+2
The warnings corrected were only the ones that should correct real problems. The most common one is 64 bit integers as "printf %l" arguments. Note that there is a patch related to this at: http://bugs.freedesktop.org/show_bug.cgi?id=18204 Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 16b11cd03d8c5def07f0e598f237f71a37883a46)
2009-02-17xfree86: always force RAW mode under linux.Peter Hutterer1-35/+25
The previous check for AEI on left us with the possibility that AEI is forced off in the config, but devices are added through evdev nonetheless. A keyboard added this way can CTRL+C the server. Even when we use kbd, we can set the mode to RAW, so it's safer alround to to so. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit b33905234025f005819c7e2acd653a3a0ecfeb82) Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-09xfree86: don't restore the TTY mode if we didn't initialize it ourselvesPeter Hutterer1-2/+4
Restoring it unconditionally means we restore to whatever tty_mode has as default value (i.e. 0). K_RAW happens to be 0x00, so we always restore to raw mode if allowEmptyInput is off. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Julien Cristau <jcristau@debian.org> (cherry picked from commit aea6f19f25e13768b1d09fac4991d6a5e6c2cdac)
2008-12-16Support -sharevts on FreeBSDRobert Noland1-36/+52
Bugzilla #11179 Submitted-by: Nathan Whitehorn Signed-off-by: Robert Noland <rnoland@2hip.net> (cherry picked from commit 7aa29b9d66c3cd0f8af4fafbe92efd0c0556d225)
2008-12-15When disabling SIGIO tracking, use SIG_IGN instead of SIG_DFL.Keith Packard1-1/+1
This avoids a race condition for drivers which mis-order the fd close and signal disable. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 29a5b0596b396d3e4a8a014cacd3e3ef77467ab7)
2008-11-25Warning fixAdam Jackson1-0/+1
lnx_bell.c:37: warning: no previous prototype for ‘xf86OSRingBell’
2008-11-24Remove xf86IODelayAdam Jackson3-26/+1
2008-11-24Remove xf86{En,Dis}ableInterrupts entirelyAdam Jackson11-280/+0
2008-11-24Remove the remnants of Jensen supportAdam Jackson4-483/+26
As being an EISA-only machine, and as ISA support is gone now...
2008-11-24Bus: Remove ISA support.Adam Jackson1-4/+0
No, really. PCI is old enough to drive now. If you want this, get the kernel to expose a framebuffer device.
2008-11-24PCI: Unexport xf86scanpciAdam Jackson1-1/+1
2008-11-24Bus: Remove the notion of estimated resources.Adam Jackson1-3/+0
2008-11-24PCI: Remove unused ia64 platform code.Adam Jackson3-121/+0
2008-11-24PCI: Simplify OS PCI function registration a bit.Adam Jackson4-43/+5
2008-11-24PCI: Remove config mechanism details.Adam Jackson3-23/+0
pciaccess handles this for us now, no need to remember PC arcana.
2008-11-24PCI: Remove non-pciaccess path for x86.Adam Jackson3-495/+0
2008-11-24PCI: Always build domain support.Adam Jackson4-16/+1
2008-11-24Solaris: Make KDSETMODE failure non fatal, and retry it on interruptsAlan Coopersmith1-4/+10
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-21int10: Do an mprotect(..,PROT_EXEC) on shmat()ed memory ranges.Egbert Eich1-2/+10
When the linux kernel sets the NX bit vm86 segfaults when it tries to execute code in memory that is not marked EXEC. Such code gets called whenever we return from a VBIOS call to signal the calling program that the call is actually finished and that we are not trapping for other reasons (like IO accesses). Use mprotect(2) to set these memory ranges PROT_EXEC.
2008-11-21Support for BSD apmMatthieu Herrb1-1/+9
XXX check amd64 pci init
2008-11-19Use bsd_pci stub routines on Solaris too, since we use pciaccess for real workAlan Coopersmith1-1/+1
Depends on commit 70e18a3b6b9d52169bca650f6cd4ef5d8ab40d95 to get definition of xf86InitVidMem on Solaris.
2008-11-05linux: Drain the console fd of data when using evdev for keyboardsAdam Jackson1-0/+17
Works around a silly bug in the kernel that causes wakeup storms after too many keypresses. Should fix the kernel bug too, but this at least keeps the idle wakeup count below 1000/sec.
2008-10-30Refactor Solaris mapping code to work with standard shared/vidmem.cAlan Coopersmith3-232/+202
Also merge sun_bios.c into sun_vid.c and upstream Solaris patch to keep aperture device open, to allow mappings to occur after X server has given up uid 0.
2008-10-26Bug#16501: autodetection of sbus graphic cardsBernhard R. Link1-14/+68
Add automatic detection of the graphic driver to load for sbus devices. This allows xorg to work on those devices without a "Device" section. Debian bug#483942. Signed-off-by: Julien Cristau <jcristau@debian.org>
2008-10-16xfree86: if AllowEmptyInput is true, enable RAW mode on the console.Peter Hutterer1-1/+34
Usually, the console is set to RAW in the kbd driver. If we hotplug all input devices (i.e. the evdev driver for keyboards) and the console is left as-is. As a result, the evdev driver must put an EVIOCGRAB on the device to avoid characters leaking onto the console. This again breaks many things, amongst them lirc, in-kernel mouse button emulation and HAL. This patch sets the console to RAW if AllowEmptyInput is on. Use-cases: 1. AEI is off 1.1. Only kbd driver is used - behaviour as-is. 1.2. kbd and evdev driver is used: if evdev does not grab the device, duplicate events are generated. 2. AEI is on 2.1. Only evdev driver is used - behaviour as-is, but evdev does not need to grab the device anymore. 2.2. evdev and kbd are used: duplicate key events are generated if evdev does not grab the device. 1.2 is a marginal use-case that can be fixed by adding a "grab" option to the evdev driver (update of xorg.conf is needed). 2.2 is an issue. If we have no ServerLayout section, AEI is on, but devices specified in the xorg.conf are still added [1], resulting in duplicate events. This is a common configuration and needs sorting out. [1] 2eaed4a10fe5bf727579bca4ab8d4a47c8763a7d Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-10-06xalloc+memset(0) -> xcallocAdam Jackson5-7/+6
2008-10-03Remove unused pciNumBusesAdam Jackson5-7/+0
2008-10-02Unifdef ISCAdam Jackson1-17/+1
2008-08-22Remove unnecessary #ifdef __SOL8__'sAlan Coopersmith1-6/+0
2008-08-22Convert Solaris #ifdef's for <sys/kd.h> to AC_CHECK_HEADERS checkAlan Coopersmith1-1/+1
Upcoming virtual terminal support changes in Solaris kernel will provide <sys/kd.h> on SPARC too, so this gets us ready for them.
2008-08-18Remove dead {bsd,lnx}Resource.cMathieu Bérard4-200/+1
2008-08-18Remove MAX_PCI_{BUSES,DOMAINS} and some associated #if 0.Adam Jackson5-190/+15
2008-08-18Remove some unused assembly code and assyntax.hMathieu Bérard8-1243/+3
2008-08-18Remove (unused) pciMaxBusNum.Adam Jackson2-10/+1
2008-08-18Remove sparcPci.cAdam Jackson3-991/+2
There is no way this code can have been building for anyone since pciaccess was merged. BSD and Linux were already using OS code on sparc, the only people who could want this are Solaris, who should be using pciaccess anyway.
2008-08-18Remove XF86SCANPCI_WRAPPER.Adam Jackson1-8/+0
2008-08-18Remove vestigial MAX_PCI_DEVICES.Adam Jackson1-2/+0
2008-08-18Remove PciProbeType and associated weirdness.Adam Jackson2-188/+123
This code was effectively only used in ix86Pci.c to select PCI config access type. Nobody should be using that path anymore, in the glorious pciaccess world; kernel services should get it right for you.
2008-08-18Remove ancient unused inline hack.Mathieu Bérard2-20/+1
2008-08-18Drop dead PowerPC PCI code.Adam Jackson3-88/+1
Also add a warning for anyone still using legacy PCI code.
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-28Fix Makefile.am crack.Michel Dänzer1-1/+1
Looks like an artifact from early modularization.
2008-07-23Unifdef DGUX.Adam Jackson1-69/+1
2008-07-23Unifdef sgi.Adam Jackson1-8/+1
2008-07-23Unifdef QNX.Adam Jackson3-72/+1
Again, hasn't worked since at least 7.0.
2008-07-20distcheck fixesJulien Cristau6-6/+4
Still seems to fail because hw/xquartz has too long filenames
2008-07-17Dead code removalDaniel Stone16-2604/+9
Remove a whole bunch of code that was never built, be it entire files or just dead ifdefs.
2008-07-17Drop a bunch of #ifdef Lynx.Mathieu Bérard3-52/+3
2008-07-17Drop hw/xfree86/os-support/lynxos/Adam Jackson8-1281/+1
This has never worked in any modular release, clearly no one cares.