summaryrefslogtreecommitdiff
path: root/package/libpciaccess
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-29 20:29:32 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-29 20:29:44 +0100
commita60a17cd488cbe017b95f52bcb0f881d7a4a5846 (patch)
tree6256c2f07571ae20f424c39b247752b5e32ea226 /package/libpciaccess
parente17110aeb3863c1292eb3e58b7597174bea6cc85 (diff)
xorg: update all packages to latest stable version, remove mirror.mk entry
Diffstat (limited to 'package/libpciaccess')
-rw-r--r--package/libpciaccess/Makefile6
-rw-r--r--package/libpciaccess/patches/patch-src_freebsd_pci_c18
-rw-r--r--package/libpciaccess/patches/patch-src_linux_sysfs_c138
-rw-r--r--package/libpciaccess/patches/patch-src_netbsd_pci_c18
-rw-r--r--package/libpciaccess/patches/patch-src_openbsd_pci_c26
-rw-r--r--package/libpciaccess/patches/patch-src_pciaccess_private_h10
-rw-r--r--package/libpciaccess/patches/patch-src_solx_devfs_c10
-rw-r--r--package/libpciaccess/patches/patch-src_x86_pci_c10
8 files changed, 3 insertions, 233 deletions
diff --git a/package/libpciaccess/Makefile b/package/libpciaccess/Makefile
index 72d64aa3f..13abcdbeb 100644
--- a/package/libpciaccess/Makefile
+++ b/package/libpciaccess/Makefile
@@ -4,12 +4,12 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= libpciaccess
-PKG_VERSION:= 0.13.2
+PKG_VERSION:= 0.13.4
PKG_RELEASE:= 1
-PKG_HASH:= b5459e347166113cefac80003dc5c431a8399ae936b3efcd2cef6437fbe88602
+PKG_HASH:= 74d92bda448e6fdb64fee4e0091255f48d625d07146a121653022ed3a0ca1f2f
PKG_DESCR:= pci access library
PKG_SECTION:= x11/libs
-PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_SITES:= http://www.x.org/releases/individual/lib/
PKG_OPTS:= dev
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
diff --git a/package/libpciaccess/patches/patch-src_freebsd_pci_c b/package/libpciaccess/patches/patch-src_freebsd_pci_c
deleted file mode 100644
index 3a1c22fd1..000000000
--- a/package/libpciaccess/patches/patch-src_freebsd_pci_c
+++ /dev/null
@@ -1,18 +0,0 @@
---- libpciaccess-0.13.2.orig/src/freebsd_pci.c 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/freebsd_pci.c 2014-03-24 13:26:10.476152263 +0100
-@@ -579,6 +579,7 @@ pci_device_freebsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #elif defined(PCI_MAGIC_IO_RANGE)
- ret->memory = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
-@@ -588,6 +589,7 @@ pci_device_freebsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #else
- return NULL;
diff --git a/package/libpciaccess/patches/patch-src_linux_sysfs_c b/package/libpciaccess/patches/patch-src_linux_sysfs_c
deleted file mode 100644
index eb91062c2..000000000
--- a/package/libpciaccess/patches/patch-src_linux_sysfs_c
+++ /dev/null
@@ -1,138 +0,0 @@
---- libpciaccess-0.13.2.orig/src/linux_sysfs.c 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/linux_sysfs.c 2014-03-24 21:01:44.000000000 +0100
-@@ -41,11 +41,12 @@
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
-+#include <limits.h>
- #include <sys/mman.h>
- #include <dirent.h>
- #include <errno.h>
-
--#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
-+#if defined(__i386__) || defined(__x86_64__)
- #include <sys/io.h>
- #else
- #define inb(x) -1
-@@ -759,6 +760,7 @@ pci_device_linux_sysfs_open_device_io(st
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 0;
-
- return ret;
- }
-@@ -796,6 +798,7 @@ pci_device_linux_sysfs_open_legacy_io(st
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
-
- return ret;
- }
-@@ -813,10 +816,14 @@ pci_device_linux_sysfs_read32(struct pci
- {
- uint32_t ret;
-
-- if (handle->fd > -1)
-- pread(handle->fd, &ret, 4, port + handle->base);
-- else
-+ if (handle->fd > -1) {
-+ if (handle->is_legacy)
-+ pread(handle->fd, &ret, 4, port + handle->base);
-+ else
-+ pread(handle->fd, &ret, 4, port);
-+ } else {
- ret = inl(port + handle->base);
-+ }
-
- return ret;
- }
-@@ -826,10 +833,14 @@ pci_device_linux_sysfs_read16(struct pci
- {
- uint16_t ret;
-
-- if (handle->fd > -1)
-- pread(handle->fd, &ret, 2, port + handle->base);
-- else
-+ if (handle->fd > -1) {
-+ if (handle->is_legacy)
-+ pread(handle->fd, &ret, 2, port + handle->base);
-+ else
-+ pread(handle->fd, &ret, 2, port);
-+ } else {
- ret = inw(port + handle->base);
-+ }
-
- return ret;
- }
-@@ -839,10 +850,14 @@ pci_device_linux_sysfs_read8(struct pci_
- {
- uint8_t ret;
-
-- if (handle->fd > -1)
-- pread(handle->fd, &ret, 1, port + handle->base);
-- else
-+ if (handle->fd > -1) {
-+ if (handle->is_legacy)
-+ pread(handle->fd, &ret, 1, port + handle->base);
-+ else
-+ pread(handle->fd, &ret, 1, port);
-+ } else {
- ret = inb(port + handle->base);
-+ }
-
- return ret;
- }
-@@ -851,30 +866,42 @@ static void
- pci_device_linux_sysfs_write32(struct pci_io_handle *handle, uint32_t port,
- uint32_t data)
- {
-- if (handle->fd > -1)
-- pwrite(handle->fd, &data, 4, port + handle->base);
-- else
-+ if (handle->fd > -1) {
-+ if (handle->is_legacy)
-+ pwrite(handle->fd, &data, 4, port + handle->base);
-+ else
-+ pwrite(handle->fd, &data, 4, port);
-+ } else {
- outl(data, port + handle->base);
-+ }
- }
-
- static void
- pci_device_linux_sysfs_write16(struct pci_io_handle *handle, uint32_t port,
- uint16_t data)
- {
-- if (handle->fd > -1)
-- pwrite(handle->fd, &data, 2, port + handle->base);
-- else
-+ if (handle->fd > -1) {
-+ if (handle->is_legacy)
-+ pwrite(handle->fd, &data, 2, port + handle->base);
-+ else
-+ pwrite(handle->fd, &data, 2, port);
-+ } else {
- outw(data, port + handle->base);
-+ }
- }
-
- static void
- pci_device_linux_sysfs_write8(struct pci_io_handle *handle, uint32_t port,
- uint8_t data)
- {
-- if (handle->fd > -1)
-- pwrite(handle->fd, &data, 1, port + handle->base);
-- else
-+ if (handle->fd > -1) {
-+ if (handle->is_legacy)
-+ pwrite(handle->fd, &data, 1, port + handle->base);
-+ else
-+ pwrite(handle->fd, &data, 1, port);
-+ } else {
- outb(data, port + handle->base);
-+ }
- }
-
- static int
diff --git a/package/libpciaccess/patches/patch-src_netbsd_pci_c b/package/libpciaccess/patches/patch-src_netbsd_pci_c
deleted file mode 100644
index 9b7a31b7e..000000000
--- a/package/libpciaccess/patches/patch-src_netbsd_pci_c
+++ /dev/null
@@ -1,18 +0,0 @@
---- libpciaccess-0.13.2.orig/src/netbsd_pci.c 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/netbsd_pci.c 2014-03-24 13:26:10.484152334 +0100
-@@ -733,6 +733,7 @@ pci_device_netbsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #elif defined(__amd64__)
- struct x86_64_iopl_args ia;
-@@ -743,6 +744,7 @@ pci_device_netbsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #else
- return NULL;
diff --git a/package/libpciaccess/patches/patch-src_openbsd_pci_c b/package/libpciaccess/patches/patch-src_openbsd_pci_c
deleted file mode 100644
index 0c7180b72..000000000
--- a/package/libpciaccess/patches/patch-src_openbsd_pci_c
+++ /dev/null
@@ -1,26 +0,0 @@
---- libpciaccess-0.13.2.orig/src/openbsd_pci.c 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/openbsd_pci.c 2014-03-24 13:26:10.484152334 +0100
-@@ -412,6 +412,7 @@ pci_device_openbsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #elif defined(__amd64__)
- struct amd64_iopl_args ia;
-@@ -422,6 +423,7 @@ pci_device_openbsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #elif defined(PCI_MAGIC_IO_RANGE)
- ret->memory = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
-@@ -431,6 +433,7 @@ pci_device_openbsd_open_legacy_io(struct
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- #else
- return NULL;
diff --git a/package/libpciaccess/patches/patch-src_pciaccess_private_h b/package/libpciaccess/patches/patch-src_pciaccess_private_h
deleted file mode 100644
index e3ec7d0f1..000000000
--- a/package/libpciaccess/patches/patch-src_pciaccess_private_h
+++ /dev/null
@@ -1,10 +0,0 @@
---- libpciaccess-0.13.2.orig/src/pciaccess_private.h 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/pciaccess_private.h 2014-03-24 13:26:10.492152406 +0100
-@@ -109,6 +109,7 @@ struct pci_io_handle {
- pciaddr_t size;
- void *memory;
- int fd;
-+ int is_legacy;
- };
-
- struct pci_device_private {
diff --git a/package/libpciaccess/patches/patch-src_solx_devfs_c b/package/libpciaccess/patches/patch-src_solx_devfs_c
deleted file mode 100644
index f6ee2c03e..000000000
--- a/package/libpciaccess/patches/patch-src_solx_devfs_c
+++ /dev/null
@@ -1,10 +0,0 @@
---- libpciaccess-0.13.2.orig/src/solx_devfs.c 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/solx_devfs.c 2014-03-24 13:26:10.496152442 +0100
-@@ -911,6 +911,7 @@ pci_device_solx_devfs_open_legacy_io(str
- if (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) == 0) {
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
- return ret;
- }
- #endif
diff --git a/package/libpciaccess/patches/patch-src_x86_pci_c b/package/libpciaccess/patches/patch-src_x86_pci_c
deleted file mode 100644
index 07c18d419..000000000
--- a/package/libpciaccess/patches/patch-src_x86_pci_c
+++ /dev/null
@@ -1,10 +0,0 @@
---- libpciaccess-0.13.2.orig/src/x86_pci.c 2013-07-21 00:54:34.000000000 +0200
-+++ libpciaccess-0.13.2/src/x86_pci.c 2014-03-24 13:26:10.496152442 +0100
-@@ -558,6 +558,7 @@ pci_device_x86_open_legacy_io(struct pci
-
- ret->base = base;
- ret->size = size;
-+ ret->is_legacy = 1;
-
- return ret;
- }