OSDN Git Service

android-x86/external-libpciaccess.git
12 years agoOpenBSD: Indicate that devices need access to legacy VGA resources.
Mark Kettenis [Sun, 6 Nov 2011 17:32:51 +0000 (17:32 +0000)]
OpenBSD: Indicate that devices need access to legacy VGA resources.

Makes sure xserver disables DRI if the VGA arbiter is in use.

Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
12 years agoSolaris: improve support for sparc platform
Henry Zhao [Tue, 15 Nov 2011 02:53:21 +0000 (18:53 -0800)]
Solaris: improve support for sparc platform

(1) added prom property retrieval on sparc
(2) added multiple domain support on sparc
(3) use kernel device as mapping device
(4) performance improvements by removing redundant ioctl

Signed-off-by: Henry Zhao <henry.zhao@oracle.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
12 years agoconfigure.ac: Bump to 0.12.902
Jeremy Huddleston [Wed, 9 Nov 2011 17:27:49 +0000 (09:27 -0800)]
configure.ac: Bump to 0.12.902

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoFix some -Wformat errors in scanpci
Jeremy Huddleston [Wed, 9 Nov 2011 17:46:30 +0000 (09:46 -0800)]
Fix some -Wformat errors in scanpci

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agolibpciaccess: close mtrr fd on pci_cleanup
Nithin Nayak Sujir [Mon, 24 Oct 2011 19:15:15 +0000 (12:15 -0700)]
libpciaccess: close mtrr fd on pci_cleanup

Since the fd is not closed, calling pci_system_init and
pci_system_cleanup more than 1024 times results in "too many files open"
error.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoSolaris: Give better error on realloc failure
Alan Coopersmith [Wed, 5 Oct 2011 04:46:05 +0000 (21:46 -0700)]
Solaris: Give better error on realloc failure

commit a18460b385ae03 converted from a fixed maximum number of devices
to dynamically growing the list via realloc, but didn't update the
error message shown on failure.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Dirk Wallenstein <halsmit@t-online.de>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
12 years agolinux sysfs: Fix read-write access in map_legacy
Jeremy Huddleston [Tue, 11 Oct 2011 17:22:49 +0000 (10:22 -0700)]
linux sysfs: Fix read-write access in map_legacy

O_RDONLY | O_WRONLY != O_RDWR

><

Reported-by: Javier Pello <javier.pello@urjc.es>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoscanpci: Build fix for systems without <err.h>
Jeremy Huddleston [Sun, 9 Oct 2011 10:53:05 +0000 (03:53 -0700)]
scanpci: Build fix for systems without <err.h>

https://bugs.freedesktop.org/show_bug.cgi?id=31133

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoconfigure.ac: Bump version to 0.12.901
Jeremy Huddleston [Fri, 7 Oct 2011 18:57:26 +0000 (11:57 -0700)]
configure.ac: Bump version to 0.12.901

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoUpdate library version to reflect new API
Jeremy Huddleston [Fri, 7 Oct 2011 18:56:06 +0000 (11:56 -0700)]
Update library version to reflect new API

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agolinux: Implement map_legacy
Adam Jackson [Tue, 10 May 2011 21:56:35 +0000 (17:56 -0400)]
linux: Implement map_legacy

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoAdd map_legacy interface
Adam Jackson [Tue, 10 May 2011 21:56:34 +0000 (17:56 -0400)]
Add map_legacy interface

This allows platforms to hand back mmaps of the low 1M (ISA) address
space on a per-domain basis.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
12 years agoStrip trailing whitespace
Alan Coopersmith [Sat, 17 Sep 2011 05:11:38 +0000 (22:11 -0700)]
Strip trailing whitespace

Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
12 years agolinux: Fix a crash in populate_devices
Adam Jackson [Wed, 3 Aug 2011 22:35:11 +0000 (18:35 -0400)]
linux: Fix a crash in populate_devices

If scandir returns -1, the 'devices' array won't be initialized, and
attempting to free() it will crash.

Signed-off-by: Adam Jackson <ajax@redhat.com>
12 years agolinux: Only set errno after an error
Chris Wilson [Sat, 4 Jun 2011 11:30:06 +0000 (12:30 +0100)]
linux: Only set errno after an error

errno is only valid after an error, and was being filled with a garbage
value upon eof.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoSolaris support for multiple PCI segments (domains)
John Martin [Tue, 29 Mar 2011 00:51:19 +0000 (17:51 -0700)]
Solaris support for multiple PCI segments (domains)

1. Removed hardcoded maximum size of 256 PCI devices, which is
too small for large systems.  The number of devices is dynamically
resized as needed.

2. pci_device_solx_devfs_probe() no longer walks the device tree
from the very top ("/") but instead starts at the nexus which
owns the bus.  Performance optimization for systems with multiple
bus nodes (including systems with just one segment/domain).

3. Added support for multiple domains/segments.  Code tested
on kernels with and without multiple segment support so it should
be safe to integrate independent of the kernel version.

Signed-off-by: John Martin <John.M.Martin@Oracle.COM>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
13 years agoconfig: comment, minor upgrade, quote and layout configure.ac
Gaetan Nadon [Thu, 3 Feb 2011 22:38:32 +0000 (17:38 -0500)]
config: comment, minor upgrade, quote and layout configure.ac

Group statements per section as per Autoconf standard layout
Quote statements where appropriate.
Autoconf recommends not using dnl instead of # for comments

Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters.
Add AC_CONFIG_SRCDIR([Makefile.am])
Update X.Org util-macros to version 1.8

This helps automated maintenance and release activities.
Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agolibpciaccess 0.12.1
Alan Coopersmith [Thu, 3 Feb 2011 04:50:17 +0000 (20:50 -0800)]
libpciaccess 0.12.1

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 years agoconfig: replace deprecated AC_HELP_STRING with AS_HELP_STRING
Gaetan Nadon [Fri, 28 Jan 2011 21:07:07 +0000 (16:07 -0500)]
config: replace deprecated AC_HELP_STRING with AS_HELP_STRING

This silences an Automake warning.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: remove AC_PROG_CC as it overrides AC_PROG_C_C99
Alan Coopersmith [Fri, 14 Jan 2011 06:05:02 +0000 (22:05 -0800)]
config: remove AC_PROG_CC as it overrides AC_PROG_C_C99

XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 years agoconfig: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Alan Coopersmith [Fri, 14 Jan 2011 05:58:02 +0000 (21:58 -0800)]
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS

Regroup AC statements under the Autoconf initialization section.
Regroup AM statements under the Automake initialization section.
Add missing AC_CONFIG_SRCDIR
Replace obsolete argument to AC_OUTPUT with AC_CONFIG_FILES

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 years agoFix detection of multi-function cards
Bryce Harrington [Tue, 14 Dec 2010 17:03:48 +0000 (12:03 -0500)]
Fix detection of multi-function cards

Bit 7 of the pci device header type is an indicator of multi-function
devices, so needs to be masked when examining the bridge type.
Thanks go to Chih-Pin Wu for finding the bug and its fix.

https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Bryce Harrington <bryce@canonical.com>
13 years agoRevert "Don't try to use bogus bridge data"
Jesse Barnes [Mon, 6 Dec 2010 20:18:19 +0000 (12:18 -0800)]
Revert "Don't try to use bogus bridge data"

This reverts commit 2bda5b733bb12854760750c08138db95e77aea0c.

It actually conflicts with 9ba94caf57e3a8c3e9c6f3f5f068f4a7a7b3ff9d
which came earlier, but I didn't catch it probably because I did a blind
rebase before pushing.

When reading bridge bus info, we may need to read out the current bridge
info if the PCI bridge private is uninitialized, so remove the check at
the top that would always short circuit the case where the priv was
still 0.

References:
https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207.

Reported-by: Bryce Harrington <bryce@canonical.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
13 years agoSun's copyrights belong to Oracle now
Alan Coopersmith [Sun, 21 Nov 2010 19:14:05 +0000 (11:14 -0800)]
Sun's copyrights belong to Oracle now

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 years agoconfig: use LDADD to obtain appropriate dependencies
Gaetan Nadon [Fri, 15 Oct 2010 21:34:16 +0000 (17:34 -0400)]
config: use LDADD to obtain appropriate dependencies

In generated scanpci/Makefile, this line is added:
scanpci_DEPENDENCIES = $(top_builddir)/src/libpciaccess.la

If the content of the library changes, the tool will rebuild.
When scanpci was in the same directory as the library, the .la file was used.
This will also ensure the "installed" pciaccess library is not used.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoinclude: add a Makefile to install and distribute header file
Gaetan Nadon [Sun, 26 Sep 2010 18:57:19 +0000 (14:57 -0400)]
include: add a Makefile to install and distribute header file

Makefiles are simpler when they only handle what is in their
directory.

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: replace INCLUDES, which is deprecated, with AM_CPPFLAGS
Gaetan Nadon [Sun, 26 Sep 2010 18:42:50 +0000 (14:42 -0400)]
config: replace INCLUDES, which is deprecated, with AM_CPPFLAGS

Fixes an Automake warning.

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: provide a makefile for scanpci man pages
Gaetan Nadon [Sun, 22 Aug 2010 12:10:23 +0000 (08:10 -0400)]
config: provide a makefile for scanpci man pages

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoscanpci.c: remove offending whitespace as reported by git diff
Gaetan Nadon [Sun, 26 Sep 2010 12:39:57 +0000 (08:39 -0400)]
scanpci.c: remove offending whitespace as reported by git diff

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: provide a makefile for scanpci dev tool
Gaetan Nadon [Sun, 22 Aug 2010 12:10:23 +0000 (08:10 -0400)]
config: provide a makefile for scanpci dev tool

No function changes.

Note that automake generates a wrapper script if libpciaccess
is not installed at configuration time, which is the most common case.

If it is installed at configuration time, you get an executable.

The makefile build order ensures the lib is build before scanpci.

Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: upgrade AC_DEFINE_DIR to AX_DEFINE_DIR
Gaetan Nadon [Sat, 21 Aug 2010 23:54:04 +0000 (19:54 -0400)]
config: upgrade AC_DEFINE_DIR to AX_DEFINE_DIR

Use the latest version now hosted by GNU.
The renaming protects Autoconf namespace.
There is no functional change in the macro.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agolibpciaccess 0.12.0 - bump version for release
Dave Airlie [Tue, 20 Jul 2010 23:39:26 +0000 (09:39 +1000)]
libpciaccess 0.12.0 - bump version for release

13 years agoFix long standing MTRR bug.
Thomas Hellstrom [Tue, 20 Jul 2010 20:14:22 +0000 (22:14 +0200)]
Fix long standing MTRR bug.

Add an include that makes the file common_vgaarb.c see the same
struct pci_system as the file linux_sysfs.c.

Without this fix, on a MTRR system, the vgaarb_fd member
would overwrite the mtrr_fd member and cause the MTRR_IOC_ADD_ENTRY call
to be issued to the incorrect device causing the infamous
"Inappropriate ioctl for device (25)" error.

This error would cause MTRR setup to fail on all systems relying on it
and is severe enough to warrant a new release.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agopciaccess: fix use after free.
Dave Airlie [Mon, 12 Jul 2010 03:09:33 +0000 (13:09 +1000)]
pciaccess: fix use after free.

Using the pointer passed to realloc earlier isn't a recipe for success.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agoLet libtool handle library flags for scanpci on Solaris
Alan Coopersmith [Sat, 19 Jun 2010 17:36:24 +0000 (10:36 -0700)]
Let libtool handle library flags for scanpci on Solaris

Stop hardcoding -ldevinfo since configure/libtool already know to add it
for static linking, and ELF dependencies handle it for dynamic linking

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 years agovgaarb: read back vga count when setting new decoding
Tiago Vignatti [Sat, 22 May 2010 15:23:33 +0000 (18:23 +0300)]
vgaarb: read back vga count when setting new decoding

Decode kernel operation can also change vga refcount, so we need to read back
the information when calling it.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
13 years agovgaarb: decode should send new information to the kernel
Tiago Vignatti [Wed, 12 May 2010 10:12:47 +0000 (13:12 +0300)]
vgaarb: decode should send new information to the kernel

This was introduced in e360c11c.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
13 years agoDelay allocation of agp_info so we don't leak it on prior errors
Alan Coopersmith [Fri, 4 Jun 2010 23:58:56 +0000 (16:58 -0700)]
Delay allocation of agp_info so we don't leak it on prior errors

   Memory leak of pointer 'agp_info'
        at line 119 of src/common_capability.c in function 'pci_fill_capabilities_generic'.
          'agp_info' allocated at line 107 with calloc(1, 12).
          'agp_info' leaks when err != 0 at line 118.
        at line 124 of src/common_capability.c in function 'pci_fill_capabilities_generic'.
          'agp_info' allocated at line 107 with calloc(1, 12).
          'agp_info' leaks when err != 0 at line 123.

[ This bug was found by the Parfait bug checking tool.
  For more information see http://research.sun.com/projects/parfait ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
14 years agoconfig: update AC_PREREQ statement to 2.60
Gaetan Nadon [Mon, 29 Mar 2010 20:50:34 +0000 (16:50 -0400)]
config: update AC_PREREQ statement to 2.60

Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.

ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: remove the pkgconfig pc.in file from EXTRA_DIST
Gaetan Nadon [Mon, 29 Mar 2010 18:53:49 +0000 (14:53 -0400)]
config: remove the pkgconfig pc.in file from EXTRA_DIST

Automake always includes it in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agolibpciaccess x86 backend
Samuel Thibault [Tue, 19 Jan 2010 17:37:43 +0000 (18:37 +0100)]
libpciaccess x86 backend

This adds support on x86 for OSes that do not have a PCI interface,
tinkering with I/O ports, and makes use of it on GNU/Hurd.

Signed-off-by: Julien Cristau <jcristau@debian.org>
14 years agoCOPYING: add Red Hat's copyright notice
Julien Cristau [Sun, 17 Jan 2010 14:33:13 +0000 (14:33 +0000)]
COPYING: add Red Hat's copyright notice

14 years agoUpdate Sun license notices to current X.Org standard form
Alan Coopersmith [Fri, 15 Jan 2010 04:48:20 +0000 (20:48 -0800)]
Update Sun license notices to current X.Org standard form

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
14 years agolibpciaccess 0.11.0
Adam Jackson [Mon, 14 Dec 2009 22:27:12 +0000 (17:27 -0500)]
libpciaccess 0.11.0

Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agoFix I/O handle array allocator to work for devices past the first
Adam Jackson [Mon, 14 Dec 2009 21:26:31 +0000 (16:26 -0500)]
Fix I/O handle array allocator to work for devices past the first

Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agoFix pci_device_open_io() to actually return something useful
Adam Jackson [Mon, 14 Dec 2009 21:19:35 +0000 (16:19 -0500)]
Fix pci_device_open_io() to actually return something useful

Remember, code review just means we're all inept.

Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agoI/O port access routines
Adam Jackson [Wed, 18 Nov 2009 18:53:49 +0000 (13:53 -0500)]
I/O port access routines

Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agoAdd pci_device_get_parent_bridge()
Adam Jackson [Wed, 18 Nov 2009 19:12:57 +0000 (14:12 -0500)]
Add pci_device_get_parent_bridge()

Copied from linuxPci.c in the X server.

Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agoMakefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Gaetan Nadon [Sat, 28 Nov 2009 01:56:05 +0000 (20:56 -0500)]
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES

Now that the INSTALL file is generated.
Allows running make maintainer-clean.

14 years agoINSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Gaetan Nadon [Wed, 28 Oct 2009 18:09:10 +0000 (14:09 -0400)]
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206

Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.

14 years agoDeploy the new XORG_DEFAULT_OPTIONS #24242
Gaetan Nadon [Tue, 27 Oct 2009 19:07:25 +0000 (15:07 -0400)]
Deploy the new XORG_DEFAULT_OPTIONS #24242

This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.

14 years agoMakefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
Gaetan Nadon [Tue, 27 Oct 2009 02:08:43 +0000 (22:08 -0400)]
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432

ChangeLog filename is known to Automake and requires no further
coding in the makefile.

14 years ago.gitignore: use common defaults with custom section # 24239
Gaetan Nadon [Thu, 22 Oct 2009 16:34:20 +0000 (12:34 -0400)]
.gitignore: use common defaults with custom section # 24239

Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.

14 years agoshutup stupid gcc warning, strtok_r ignores the first parameter
Dave Airlie [Fri, 25 Sep 2009 00:25:56 +0000 (10:25 +1000)]
shutup stupid gcc warning, strtok_r ignores the first parameter

14 years agolibpciaccess 0.10.9
Dave Airlie [Fri, 25 Sep 2009 00:19:07 +0000 (10:19 +1000)]
libpciaccess 0.10.9

14 years agovgaarb: fix newbie typo
Tiago Vignatti [Fri, 18 Sep 2009 12:21:19 +0000 (15:21 +0300)]
vgaarb: fix newbie typo

Eh, we don't need to check for the fd anyway. Kudos jcristau for reporting.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
14 years agovgaarb: check for fd before close it
Tiago Vignatti [Wed, 16 Sep 2009 09:56:53 +0000 (12:56 +0300)]
vgaarb: check for fd before close it

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
14 years agoFree return value from scandir instead of leaking it.
Keith Packard [Fri, 18 Sep 2009 00:38:56 +0000 (17:38 -0700)]
Free return value from scandir instead of leaking it.

Scandir is defined to return pointers to malloc'd storage, so make
sure that memory is nicely freed.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agovgaarb: check pci_sys exists before initing vga arb
Dave Airlie [Wed, 2 Sep 2009 09:03:11 +0000 (19:03 +1000)]
vgaarb: check pci_sys exists before initing vga arb

14 years agopciaccess: bump to 0.10.8
Dave Airlie [Sun, 30 Aug 2009 23:14:16 +0000 (09:14 +1000)]
pciaccess: bump to 0.10.8

14 years agopciaccess: fix vga arb stubs
Thomas Klausner [Sun, 30 Aug 2009 23:13:27 +0000 (09:13 +1000)]
pciaccess: fix vga arb stubs

14 years agolibpciaccess: bump to 0.10.7 for vga arb interface addition
Dave Airlie [Fri, 28 Aug 2009 01:29:00 +0000 (11:29 +1000)]
libpciaccess: bump to 0.10.7 for vga arb interface addition

14 years agoMerge branch 'vga'
Dave Airlie [Fri, 28 Aug 2009 01:25:15 +0000 (11:25 +1000)]
Merge branch 'vga'

14 years agovgaarb: update stub interface
Dave Airlie [Fri, 28 Aug 2009 01:24:53 +0000 (11:24 +1000)]
vgaarb: update stub interface

14 years agoRevert "vgaarb: delete stub functions"
Dave Airlie [Fri, 28 Aug 2009 01:21:11 +0000 (11:21 +1000)]
Revert "vgaarb: delete stub functions"

This reverts commit b7fd4d06890d801aae93fe1a1af7ab110fd388fd.

14 years agoRevert "vgaarb: fix pci_device_vgaarb_get_info() return value."
Tiago Vignatti [Wed, 26 Aug 2009 08:14:03 +0000 (11:14 +0300)]
Revert "vgaarb: fix pci_device_vgaarb_get_info() return value."

This reverts commit ef8aca5da46155e9ea0d1227215921ad9ce59150.

14 years agoMerge remote branch 'origin/vga-arbiter'
Dave Airlie [Fri, 21 Aug 2009 03:27:11 +0000 (13:27 +1000)]
Merge remote branch 'origin/vga-arbiter'

14 years agovgaarb: fix pci_device_vgaarb_get_info() return value.
Tiago Vignatti [Sun, 16 Aug 2009 16:11:15 +0000 (19:11 +0300)]
vgaarb: fix pci_device_vgaarb_get_info() return value.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
14 years agovgaarb: fix indentation and remove trailing white spaces
Tiago Vignatti [Sun, 16 Aug 2009 16:09:35 +0000 (19:09 +0300)]
vgaarb: fix indentation and remove trailing white spaces

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
14 years agovgaarb: delete stub functions
Tiago Vignatti [Sun, 16 Aug 2009 15:59:21 +0000 (18:59 +0300)]
vgaarb: delete stub functions

Such stub functions is already with API outdated. Moreover, if some operating
system doesn't have arbiter's implementation then the app can set some
autoconf tricks like "ifdef HAVE_PCI_DEVICE_VGAARB_INIT".

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
14 years agoSilence compiler warning about pci_id_file_open definition
Julien Cristau [Sun, 9 Aug 2009 09:28:38 +0000 (11:28 +0200)]
Silence compiler warning about pci_id_file_open definition

src/common_device_name.c:59: warning: function declaration isn't a prototype
src/common_device_name.c: In function 'pci_id_file_open':
src/common_device_name.c:59: warning: old-style function definition

14 years agoconfigure.ac: fix help text for the linux-rom-fallback option
Julien Cristau [Sat, 8 Aug 2009 16:12:08 +0000 (18:12 +0200)]
configure.ac: fix help text for the linux-rom-fallback option

LINUX_ROM defaults to no, fix the help text to reflect that

Signed-off-by: Julien Cristau <jcristau@debian.org>
14 years agoMerge branch 'master' into vga-arbiter
Dave Airlie [Wed, 5 Aug 2009 23:43:08 +0000 (09:43 +1000)]
Merge branch 'master' into vga-arbiter

14 years agopciaccess: make linux rom reading fallback optional
Dave Airlie [Wed, 5 Aug 2009 23:39:01 +0000 (09:39 +1000)]
pciaccess: make linux rom reading fallback optional

On kernels which have ROM files, the boot VGA rom file
will contain the 0xc0000 file anyways. If another card
is missing a rom file there is no need for this.

This is fallback is disabled by default, on the premise
that distro shipping this new a pciaccess will be running
on kernels with working rom support which is been upstream
for a long time

14 years agoMerge branch 'master' into vga-arbiter
Dave Airlie [Wed, 5 Aug 2009 23:42:06 +0000 (09:42 +1000)]
Merge branch 'master' into vga-arbiter

14 years agopciaccess: make linux rom reading fallback optional
Dave Airlie [Wed, 5 Aug 2009 23:39:01 +0000 (09:39 +1000)]
pciaccess: make linux rom reading fallback optional

On kernels which have ROM files, the boot VGA rom file
will contain the 0xc0000 file anyways. If another card
is missing a rom file there is no need for this.

This is fallback is disabled by default, on the premise
that distro shipping this new a pciaccess will be running
on kernels with working rom support which is been upstream
for a long time

14 years agopciaccess: make linux rom reading fallback optional
Dave Airlie [Wed, 5 Aug 2009 23:39:01 +0000 (09:39 +1000)]
pciaccess: make linux rom reading fallback optional

On kernels which have ROM files, the boot VGA rom file
will contain the 0xc0000 file anyways. If another card
is missing a rom file there is no need for this.

This is fallback is disabled by default, on the premise
that distro shipping this new a pciaccess will be running
on kernels with working rom support which is been upstream
for a long time

14 years agovgaarb: add vga count + resource accessor
Dave Airlie [Mon, 3 Aug 2009 02:43:26 +0000 (12:43 +1000)]
vgaarb: add vga count + resource accessor

14 years agovgaarb: more api changes + cleanup
Dave Airlie [Sun, 2 Aug 2009 23:39:22 +0000 (09:39 +1000)]
vgaarb: more api changes + cleanup

add a comma for ease of parsing,
use hex on the interface in both directions instead of hex on one
and decimal on the other

14 years agovgaarb: change API to target taking a device + lock/unlock not taking one
Dave Airlie [Fri, 31 Jul 2009 06:15:55 +0000 (16:15 +1000)]
vgaarb: change API to target taking a device + lock/unlock not taking one

working on the target device - a target device of NULL
reselects the target that existed when we started.

this is mainly to allow a udev posting tool to return to the
state of what happened before it ran.

14 years agovgaarb: add support for targetting default device
Dave Airlie [Fri, 31 Jul 2009 05:34:32 +0000 (15:34 +1000)]
vgaarb: add support for targetting default device

14 years agovgaarb: clean up debug output
Dave Airlie [Fri, 31 Jul 2009 01:17:21 +0000 (11:17 +1000)]
vgaarb: clean up debug output

14 years agoMerge remote branch 'main/master' into vga-arbiter
Dave Airlie [Fri, 31 Jul 2009 01:16:16 +0000 (11:16 +1000)]
Merge remote branch 'main/master' into vga-arbiter

14 years agovgaarb: fixup api for new count reporting + decodes interface was wrong.
Dave Airlie [Mon, 20 Jul 2009 03:26:41 +0000 (13:26 +1000)]
vgaarb: fixup api for new count reporting + decodes interface was wrong.

decodes is a information setting interface so it takes new decodes
and sends them to the kernel

14 years agoadd support for finding if something has a kernel driver
Dave Airlie [Thu, 16 Jul 2009 05:36:30 +0000 (15:36 +1000)]
add support for finding if something has a kernel driver

14 years agoDon't try to use bogus bridge data
Jesse Barnes [Tue, 30 Jun 2009 22:24:45 +0000 (15:24 -0700)]
Don't try to use bogus bridge data

If, for whatever reason, we weren't able to read bridge data (therefore
leaving bridge.pci or bridge.pcmcia empty), we shouldn't try to look at
the bus data inside the pci/pcmcia struct.

14 years agovgaarb: fixup api and decode rsrc.
Dave Airlie [Thu, 4 Jun 2009 23:32:10 +0000 (09:32 +1000)]
vgaarb: fixup api and decode rsrc.

This fixes up the API and stores the vga arb fd in the sys_pci structure,
instead of hiding it in a random dev struct.

It also reads back after setting the target and works out the decodes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
15 years agoComment typo.
Tiago Vignatti [Thu, 14 May 2009 20:30:17 +0000 (17:30 -0300)]
Comment typo.

15 years agoReorganize the code.
Tiago Vignatti [Thu, 14 May 2009 20:28:05 +0000 (17:28 -0300)]
Reorganize the code.

15 years agoFix typo in vgaarb stubs.
Tiago Vignatti [Thu, 14 May 2009 06:42:56 +0000 (03:42 -0300)]
Fix typo in vgaarb stubs.

15 years agoDelete vga_arb_rec.
Tiago Vignatti [Thu, 14 May 2009 06:40:25 +0000 (03:40 -0300)]
Delete vga_arb_rec.

15 years agovgaarb: a bunch of clean ups to fit in libpciaccess style.
Tiago Vignatti [Wed, 13 May 2009 21:31:09 +0000 (18:31 -0300)]
vgaarb: a bunch of clean ups to fit in libpciaccess style.

15 years agovgaarb: make it compile.
Tiago Vignatti [Wed, 13 May 2009 20:55:31 +0000 (17:55 -0300)]
vgaarb: make it compile.

15 years agoImport libvgaaccess (VGA Arbiter) implementation from C3SL repository:
Tiago Vignatti [Wed, 13 May 2009 20:44:46 +0000 (17:44 -0300)]
Import libvgaaccess (VGA Arbiter) implementation from C3SL repository:
    http://git.c3sl.ufpr.br/

15 years agoDon't try to write boot_vga since that fails with EACCES
Aaron Plattner [Fri, 1 May 2009 22:04:19 +0000 (15:04 -0700)]
Don't try to write boot_vga since that fails with EACCES

15 years agopciaccess: provide a method to detect if a device is boot VGA
Dave Airlie [Wed, 4 Mar 2009 05:55:11 +0000 (15:55 +1000)]
pciaccess: provide a method to detect if a device is boot VGA

When the linux kernel exposes this information, we can use this interface
in the X server to detect whether the kernel believes the device we
are looking at is the boot VGA device.

Signed-off-by: Dave Airlie <airlied@redhat.com>
15 years agoVersion bump: 0.10.6
Alan Coopersmith [Fri, 24 Apr 2009 23:32:12 +0000 (16:32 -0700)]
Version bump: 0.10.6

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
15 years agoResync COPYING file with code copyright notices
Alan Coopersmith [Fri, 24 Apr 2009 23:19:34 +0000 (16:19 -0700)]
Resync COPYING file with code copyright notices

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
15 years agoFix unused variable warnings in Solaris code
Alan Coopersmith [Sat, 18 Apr 2009 05:05:03 +0000 (22:05 -0700)]
Fix unused variable warnings in Solaris code

solx_devfs.c: In function `find_target_node':
solx_devfs.c:672: warning: unused variable `prop'
solx_devfs.c:673: warning: unused variable `i'

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
15 years agoFix $CWARNFLAGS addition
Alan Coopersmith [Sat, 18 Apr 2009 04:59:25 +0000 (21:59 -0700)]
Fix $CWARNFLAGS addition

Original addition to configure.ac had typo (missing N) - moving to
Makefile.am allows easier override at build time

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>