Recent commits on external-libpciaccess (git) - Android-x86 - OSDN https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/ Android-x86 https://static-cdn.osdn.net/thumb/g/5/887/36x36_0.png /projects/android-x86/ ecfca4: Android porting Copy include/io.h from /usr/include/sys/... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/ecfca48f53c8361b6a1ad1b23dcdaa3fb8a76cb7 Chih-Wei Huang Commit: ecfca48f53c8361b6a1ad1b23dcdaa3fb8a76cb7
Android porting

Copy include/io.h from /usr/include/sys/io.h.

Copy hwdata/pci.ids from git://git.fedorahosted.org/hwdata.git
commit 5732b82c9d6fdbede9095cf11fe72852c37b8e9d.
]]>
8ea3af: linux_sysfs: include <limits.h> for PATH_MAX Signed-off-... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/8ea3af620a2d4ad5648917b4a0ef2b23ff566774 for PATH_MAX Signed-off-by: Felix Janda Tested-by: Bernd Kuhls ]]> Felix Janda Commit: 8ea3af620a2d4ad5648917b4a0ef2b23ff566774
linux_sysfs: include  for PATH_MAX

Signed-off-by: Felix Janda 
Tested-by: Bernd Kuhls 
]]>
42240d: autogen.sh: pass --force to autoreconf, quote string vari... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/42240dcbbce8ec744401d4a464f71c3fbd3fca1b ]]> Emil Velikov Commit: 42240dcbbce8ec744401d4a464f71c3fbd3fca1b
autogen.sh: pass --force to autoreconf, quote string variables

By passing --force autoreconf will update all the aux files, which would
otherwise be ignored if one updates autoconf/automake.

Quote the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when
it contains space.

v2: Also handle $srcdir and $0.

Signed-off-by: Emil Velikov 
]]>
e99c00: chmod a-x README.cygwin Signed-off-by: Adam Jackson <aja... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/e99c005d623a74287bbfafffc0c7040c31cdb01f ]]> Adam Jackson Commit: e99c005d623a74287bbfafffc0c7040c31cdb01f
chmod a-x README.cygwin

Signed-off-by: Adam Jackson 
]]>
0bfe3b: android porting Copy include/io.h from /usr/include/sys/... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/0bfe3b305a0abddea8d3d03952d512f0ec309018 Chih-Wei Huang Commit: 0bfe3b305a0abddea8d3d03952d512f0ec309018
android porting

Copy include/io.h from /usr/include/sys/io.h.

Copy hwdata/pci.ids from git://git.fedorahosted.org/hwdata.git
commit 772bcb2d7ca60788ed3b1693d62529881f3d205c.
]]>
6bd2f7: linux_sysfs.c: Include <limits.h> for PATH_MAX Fixes com... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/6bd2f7f92eae713663f4e13f6e2cb23526607b8c for PATH_MAX Fixes compilation with musl libc. Tested-by: Bernd Kuhls Signed-off-by: Felix Janda Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith ]]> Felix Janda Commit: 6bd2f7f92eae713663f4e13f6e2cb23526607b8c
linux_sysfs.c: Include  for PATH_MAX

Fixes compilation with musl libc.

Tested-by: Bernd Kuhls 
Signed-off-by: Felix Janda 
Reviewed-by: Alan Coopersmith 
Signed-off-by: Alan Coopersmith 
]]>
765e0a: Fix quoting issue. m4 has '[]' as quoting characters, so... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/765e0a38cb8c40f8865af5cb356ffe6039ffb08f . Signed-off-by: Thomas Klausner Reviewed-by: Alan Coopersmith ]]> Thomas Klausner Commit: 765e0a38cb8c40f8865af5cb356ffe6039ffb08f
Fix quoting issue.

m4 has '[]' as quoting characters, so if we want '[]' to
end up in the configure script, we need to quote them again.

Reported by Greg Troxel .

Signed-off-by: Thomas Klausner 
Reviewed-by: Alan Coopersmith 
]]>
b14696: Include config.h before anything else in *.c Debian bug#... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/b14696a55796e739624bbda4f772427032efff2a Reported-by: Michael Tautschnig Signed-off-by: Julien Cristau Reviewed-by: Alan Coopersmith ]]> Julien Cristau Commit: b14696a55796e739624bbda4f772427032efff2a
Include config.h before anything else in *.c

Debian bug#749008 

Reported-by: Michael Tautschnig 
Signed-off-by: Julien Cristau 
Reviewed-by: Alan Coopersmith 
]]>
bbd1ac: libpciaccess 0.13.4 Signed-off-by: Alan Coopersmith <ala... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/bbd1acdd1d25b9a68f4b7913a4094af20d7cf78f ]]> Alan Coopersmith Commit: bbd1acdd1d25b9a68f4b7913a4094af20d7cf78f
libpciaccess 0.13.4

Signed-off-by: Alan Coopersmith 
]]>
d0c53b: Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64. ... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/d0c53bdc0b35a5416fc30a610b7401978871a5f1 Signed-off-by: Thomas Klausner ]]> Tobias Nygren Commit: d0c53bdc0b35a5416fc30a610b7401978871a5f1
Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64.

This patch is required for building on NetBSD/alpha (needs platform
specific -lalpha) and NetBSD/sparc64 (no platform specific library,
just -lpci). The patch also generalizes to support all NetBSD
platforms with pci bus.

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

Reviewed-by: Alan Coopersmith 
Signed-off-by: Thomas Klausner 
]]>
1972e9: Check for __linux__ instead of linux during compilation ... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/1972e9223764618aedc5adc32b64b2c043d1b826 v2: Drop double negative from commit msg. Spotted by Mateusz Jończyk. [Emil Velikov: Remove irrelevant Android details from commit msg.] Signed-off-by: Emil Velikov Reviewed-by: Jasper St. Pierre Signed-off-by: Alan Coopersmith ]]> Eero Tamminen Commit: 1972e9223764618aedc5adc32b64b2c043d1b826
Check for __linux__ instead of linux during compilation

"__linux__" is the POSIX define for checking for Linux OS, "linux" is
deprecated and apparently not supported by Android.

Besides correcting the define, patch adds error for the case OS isn't
recognized.

Signed-off-by: Eero Tamminen 

v2: Drop double negative from commit msg. Spotted by Mateusz Jończyk.
[Emil Velikov: Remove irrelevant Android details from commit msg.]
Signed-off-by: Emil Velikov 
Reviewed-by: Jasper St. Pierre 
Signed-off-by: Alan Coopersmith 
]]>
ed340a: Include config.h before any other headers. The former ha... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/ed340abc37b07cb9fc788ae77d837088c54cd16a Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith ]]> Emil Velikov Commit: ed340abc37b07cb9fc788ae77d837088c54cd16a
Include config.h before any other headers.

The former has a series of defines which in some cases are crusial to be
set before including any system headers.

Signed-off-by: Emil Velikov 
Reviewed-by: Alan Coopersmith 
Signed-off-by: Alan Coopersmith 
]]>
6329ef: Add missing guards around config.h inclusion In some cas... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/6329ef9e5d6f36ca3f7258279f6640037b71926a Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith ]]> Chih-Wei Huang Commit: 6329ef9e5d6f36ca3f7258279f6640037b71926a
Add missing guards around config.h inclusion

In some cases the header may not exist, leading to compilation issues.
Add the ifdef HAVE_CONFIG_H, as it is those in other parts of the
project.

[Emil Velikov: Split out from a larger commit, rework commit message]
Signed-off-by: Emil Velikov 
Reviewed-by: Alan Coopersmith 
Signed-off-by: Alan Coopersmith 
]]>
e42ee2: Include the POSIX fcntl.h instead of sys/fcntl.h The for... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/e42ee2a075a8b7c62b190815be42ea26c9d8c03f Signed-off-by: Emil Velikov Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith ]]> Emil Velikov Commit: e42ee2a075a8b7c62b190815be42ea26c9d8c03f
Include the POSIX fcntl.h instead of sys/fcntl.h

The former is part of the POSIX standard, and (unlike the latter) is
more widely available.

v2: Drop gracious d in header name. Spotted by Alan.

Cc: Adam Jackson 
Signed-off-by: Emil Velikov 
Reviewed-by: Alan Coopersmith 
Signed-off-by: Alan Coopersmith 
]]>
f99c2e: libpciaccess 0.13.3 Signed-off-by: Alan Coopersmith <ala... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/f99c2e4199ce37f6f94428df504427f67c3ec543 ]]> Alan Coopersmith Commit: f99c2e4199ce37f6f94428df504427f67c3ec543
libpciaccess 0.13.3

Signed-off-by: Alan Coopersmith 
]]>
9b1bf1: Use PCIOCREADMASK on OpenBSD. If the machdep.allowapertu... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/9b1bf11c81881c9cc6e6145011cf229978f109f4 Signed-off-by: Mark Kettenis ]]> Mark Kettenis Commit: 9b1bf11c81881c9cc6e6145011cf229978f109f4
Use PCIOCREADMASK on OpenBSD.

If the machdep.allowaperture sysctl(8) variable is set to 0, writing to PCI
config space is not allowed.  So instead of writing 0xffffffff to the BARs
in order to determine their size, use the PCIOCREADMASK ioctl(2) which
returns the mask of changeable bits that was saved by the kernel when the
devices was initially probed.

Reviewed-by: Matthieu Herrb 
Signed-off-by: Mark Kettenis 
]]>
b7e426: Implement the kernel_has_driver() method for NetBSD. Thi... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/b7e42643d2ee6521cf23e6dfe49a8369ba4bf9bb Signed-off-by: Thomas Klausner ]]> Matthew Green Commit: b7e42643d2ee6521cf23e6dfe49a8369ba4bf9bb
Implement the kernel_has_driver() method for NetBSD.

This has the benefit of stopping the "vesa" driver from loading on
hardware that has been claimed by a kernel driver and thus shouldn't
be using "vesa".

Reviewed-by: Matthieu Herrb 
Signed-off-by: Thomas Klausner 
]]>
1654a0: Solaris: Fix fd leak in pci_device_solx_devfs_map_range()... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/1654a0462723b3b75d7a4a20bedfc653cc3e1f1a Reviewed-by: Randy Fishel ]]> Alan Coopersmith Commit: 1654a0462723b3b75d7a4a20bedfc653cc3e1f1a
Solaris: Fix fd leak in pci_device_solx_devfs_map_range()

Caching fd's for reuse is most effective when you actually stick the
newly opened fd in the cache, instead of letting it leak at the end
of the function.

Regression introduced by yours truly in commit 9f2d95e61896f41adb.

Signed-off-by: Alan Coopersmith 
Reviewed-by: Randy Fishel 
]]>
ee4e25: Enable use of __attribute__((deprecated)) with Solaris St... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/ee4e253a3f1a62e2f3f89f5339590fd4e6cde7c4 ]]> Alan Coopersmith Commit: ee4e253a3f1a62e2f3f89f5339590fd4e6cde7c4
Enable use of __attribute__((deprecated)) with Solaris Studio 12.4 compiler

Support for this attribute is added in the 12.4 beta release.

Signed-off-by: Alan Coopersmith 
]]>
b9c068: Fix IO access functions on linux+sysfs. The offsets on t... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/b9c068896914b4132a24839c9ef7f9fcd6282d88 ]]> Marcin Ko?cielnicki Commit: b9c068896914b4132a24839c9ef7f9fcd6282d88
Fix IO access functions on linux+sysfs.

The offsets on the resourceX files are relative to BAR base - don't add
the base address ourselves.

Reviewed-by: Adam Jackson 
]]>
b29e9b: Fix a compilation error on GNU Hurd platforms. This fixe... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/b29e9be9aff5c5a9ec5e2bcfc48044081b82742b ]]> Samuel Pitoiset Commit: b29e9be9aff5c5a9ec5e2bcfc48044081b82742b
Fix a compilation error on GNU Hurd platforms.

This fixes a typo (unAMp instead of unMAp) introduced in the Windows/Cygwin
support patch.

Reviewed-by: Jon TURNEY 
]]>
6bfccc: Windows/Cygwin: Add support through the WinIo library V2... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/6bfccc7ec4f0705595385f6684b6849663f781b4 Reviewed-by: Jon TURNEY ]]> Samuel Pitoiset Commit: 6bfccc7ec4f0705595385f6684b6849663f781b4
Windows/Cygwin: Add support through the WinIo library

V2:
- Add support for unmapping
- Add a README.cygwin

Reviewed-by: Martin Peres 
Reviewed-by: Jon TURNEY 
]]>
06f562: Improve NetBSD i386 detection. Sometimes, other values a... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/06f562584a885eff7366dca82caf746e62b5a21f Signed-off-by: Thomas Klausner Reviewed-By: Matt Dew Signed-off-by: Alan Coopersmith ]]> Thomas Klausner Commit: 06f562584a885eff7366dca82caf746e62b5a21f
Improve NetBSD i386 detection.

Sometimes, other values are reported for the CPU part, like
"i486--netbsdelf").

From: Mark Davies 
Signed-off-by: Thomas Klausner 
Reviewed-By:  Matt Dew 
Signed-off-by: Alan Coopersmith 
]]>
4427be: Fix zlib handling on NetBSD. Signed-off-by: Thomas Klaus... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/4427be3de93f359ab106a649a43e41319625e1e7 Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith ]]> Thomas Klausner Commit: 4427be3de93f359ab106a649a43e41319625e1e7
Fix zlib handling on NetBSD.

Signed-off-by: Thomas Klausner 
Reviewed-by: Alan Coopersmith 
Signed-off-by: Alan Coopersmith 
]]>
aa7925: libpciaccess 0.13.2 Signed-off-by: Alan Coopersmith <ala... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/aa7925c4a798b9ed2cd43bd3c99c2df2a1824311 ]]> Alan Coopersmith Commit: aa7925c4a798b9ed2cd43bd3c99c2df2a1824311
libpciaccess 0.13.2

Signed-off-by: Alan Coopersmith 
]]>
bdcb46: Fix Sun bug #7035791: scanpci should report 64 bit regist... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/bdcb46d33c6514278d2209fd00ed58c580da5ff3 ]]> John Martin Commit: bdcb46d33c6514278d2209fd00ed58c580da5ff3
Fix Sun bug #7035791: scanpci should report 64 bit registers

On a system which has allocated 64-bit device addresses scanpci -v
will show entries such as:
[...]
  BASE0     0xce000000 SIZE 16777216  MEM
  BASE1     0x00000fc1f8000000 SIZE 134217728  MEM64 PREFETCHABLE
  BASE3     0x00000fc1f6000000 SIZE 33554432  MEM64 PREFETCHABLE
[...]
instead of:
[...]
  BASE0     0xce000000 SIZE 16777216  MEM
  BASE1     0xf8000000 SIZE 134217728  MEM PREFETCHABLE
  BASE3     0xf6000000 SIZE 33554432  MEM PREFETCHABLE
[...]

Signed-off-by: Alan Coopersmith 
]]>
f806b9: Resync COPYING file with copyrights/licenses from code S... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/f806b95d029d36c977befed4096734f6461efa08 ]]> Alan Coopersmith Commit: f806b95d029d36c977befed4096734f6461efa08
Resync COPYING file with copyrights/licenses from code

Signed-off-by: Alan Coopersmith 
]]>
3bf035: pci_device_solx_devfs_probe: implicit conversion changes ... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/3bf035fcfd0ad55220f484f7fb5d5f18690bdb10 ]]> Alan Coopersmith Commit: 3bf035fcfd0ad55220f484f7fb5d5f18690bdb10
pci_device_solx_devfs_probe: implicit conversion changes signedness warnings

solx_devfs.c:615:32: warning: implicit conversion changes signedness:
 'unsigned long' to 'int' [-Wsign-conversion]
    for (i = 0; i < len; i = i + CELL_NUMS_1275) {
                           ~ ~~^~~~~~~~~~~~~~~~
solx_devfs.c:615:30: warning: implicit conversion changes signedness:
 'int' to 'unsigned long' [-Wsign-conversion]
    for (i = 0; i < len; i = i + CELL_NUMS_1275) {
                             ^ ~

Signed-off-by: Alan Coopersmith 
]]>
883acb: Solaris: Remove #defines for Ultra 45 southbridge device ... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/883acb4bf30735c7d8f3147341345fa9e3bc76b2 ]]> Alan Coopersmith Commit: 883acb4bf30735c7d8f3147341345fa9e3bc76b2
Solaris: Remove #defines for Ultra 45 southbridge device ids

Workaround for these chipsets was removed in commit d76fb36d9c28be0f7c
with the switch of probing methods from the PCI address poking that upset
them to using the already collected data from the kernel via devinfo,
but the #define to identify them was left behind unused - remove it too.

Signed-off-by: Alan Coopersmith 
]]>
3773ee: pci_device_solx_devfs_read: fix sign conversion/compariso... https://zh.osdn.net/projects/android-x86/scm/git/external-libpciaccess/commits/3773eea8d4e22aaedf675051e5e96af53b925152 ]]> Alan Coopersmith Commit: 3773eea8d4e22aaedf675051e5e96af53b925152
pci_device_solx_devfs_read: fix sign conversion/comparison warnings

Fixes:
solx_devfs.c:824:19: warning: comparison of integers of different signs: 'int' and 'pciaddr_t' (aka 'unsigned long') [-Wsign-compare]
    for (i = 0; i < size; i += PCITOOL_ACC_ATTR_SIZE(PCITOOL_ACC_ATTR_SIZE_1))
                ~ ^ ~~~~
solx_devfs.c:826:28: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
        cfg_prg.offset = offset + i;
                                ~ ^
solx_devfs.c:844:19: warning: implicit conversion changes signedness: 'int' to 'pciaddr_t' (aka 'unsigned long') [-Wsign-conversion]
    *bytes_read = i;
                ~ ^

Signed-off-by: Alan Coopersmith 
]]>