pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/libpciaccess Fix build problem on NetBSD 4.0,...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f23317f70008
branches: trunk
changeset: 609871:f23317f70008
user: taca <taca%pkgsrc.org@localhost>
date: Fri Oct 12 00:37:04 2012 +0000
description:
Fix build problem on NetBSD 4.0, simply revert the part of
"#ifdef _X86_SYSARCH_L" from revision 1.8.
diffstat:
sysutils/libpciaccess/distinfo | 4 ++--
sysutils/libpciaccess/patches/patch-ac | 31 ++++++++++++++++++++-----------
2 files changed, 22 insertions(+), 13 deletions(-)
diffs (126 lines):
diff -r 749214ee8c81 -r f23317f70008 sysutils/libpciaccess/distinfo
--- a/sysutils/libpciaccess/distinfo Thu Oct 11 19:37:47 2012 +0000
+++ b/sysutils/libpciaccess/distinfo Fri Oct 12 00:37:04 2012 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.15 2012/07/15 08:12:42 wiz Exp $
+$NetBSD: distinfo,v 1.16 2012/10/12 00:37:04 taca Exp $
SHA1 (libpciaccess-0.13.1.tar.bz2) = ae4dcf27a1b52c6a1fd90b21165fbaecae34e8ac
RMD160 (libpciaccess-0.13.1.tar.bz2) = 2e4c94bd782e98d360664cc0ce3d5ad2d1b0045c
Size (libpciaccess-0.13.1.tar.bz2) = 352351 bytes
SHA1 (patch-aa) = 090e2dd9d811fc56354d5387cc51fb2b1b4a2820
-SHA1 (patch-ac) = 060ce740ffb5d8a9ba71142075d49a6c0ff2c840
+SHA1 (patch-ac) = f860e9f7d99f381613f8f830281d157f2eb90905
diff -r 749214ee8c81 -r f23317f70008 sysutils/libpciaccess/patches/patch-ac
--- a/sysutils/libpciaccess/patches/patch-ac Thu Oct 11 19:37:47 2012 +0000
+++ b/sysutils/libpciaccess/patches/patch-ac Fri Oct 12 00:37:04 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.12 2012/07/15 08:12:42 wiz Exp $
+$NetBSD: patch-ac,v 1.13 2012/10/12 00:37:05 taca Exp $
Improve NetBSD support. From Michael Lorenz <macallan%NetBSD.org@localhost>.
Enable boot_vga support only if WSDISPLAYIO_GET_BUSID is defined.
@@ -13,7 +13,7 @@
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
-@@ -20,8 +21,13 @@
+@@ -20,8 +21,22 @@
#include <sys/mman.h>
#include <sys/types.h>
@@ -22,12 +22,21 @@
+#ifdef HAVE_MTRR
#include <machine/sysarch.h>
#include <machine/mtrr.h>
++#ifdef _X86_SYSARCH_L
+#define netbsd_set_mtrr(mr, num) _X86_SYSARCH_L(set_mtrr)(mr, num)
++#else
++#ifdef __i386__
++#define netbsd_set_mtrr(mr, num) i386_set_mtrr((mr), (num))
++#endif
++#ifdef __amd64__
++#define netbsd_set_mtrr(mr, num) x86_64_set_mtrr((mr), (num))
++#endif
++#endif
+#endif
#include <dev/pci/pciio.h>
#include <dev/pci/pcireg.h>
-@@ -35,126 +41,152 @@
+@@ -35,126 +50,152 @@
#include <unistd.h>
@@ -243,7 +252,7 @@
return pci_device_generic_unmap_range(dev, map);
}
-@@ -163,25 +195,23 @@ static int
+@@ -163,25 +204,23 @@ static int
pci_device_netbsd_read(struct pci_device *dev, void *data,
pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_read)
{
@@ -278,7 +287,7 @@
offset += toread;
data = (char *)data + toread;
-@@ -196,25 +226,23 @@ static int
+@@ -196,25 +235,23 @@ static int
pci_device_netbsd_write(struct pci_device *dev, const void *data,
pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_written)
{
@@ -311,7 +320,7 @@
size -= 4;
*bytes_written += 4;
}
-@@ -222,10 +250,53 @@ pci_device_netbsd_write(struct pci_devic
+@@ -222,10 +259,53 @@ pci_device_netbsd_write(struct pci_devic
return 0;
}
@@ -366,7 +375,7 @@
free(pci_sys);
pci_sys = NULL;
}
-@@ -233,17 +304,34 @@ pci_system_netbsd_destroy(void)
+@@ -233,17 +313,34 @@ pci_system_netbsd_destroy(void)
static int
pci_device_netbsd_probe(struct pci_device *device)
{
@@ -404,7 +413,7 @@
if (err)
return err;
-@@ -254,16 +342,16 @@ pci_device_netbsd_probe(struct pci_devic
+@@ -254,16 +351,16 @@ pci_device_netbsd_probe(struct pci_devic
region = device->regions;
for (bar = PCI_MAPREG_START; bar < PCI_MAPREG_END;
bar += sizeof(uint32_t), region++) {
@@ -425,7 +434,7 @@
if (PCI_MAPREG_TYPE(reg) == PCI_MAPREG_TYPE_IO) {
region->is_IO = 1;
-@@ -286,66 +374,189 @@ pci_device_netbsd_probe(struct pci_devic
+@@ -286,66 +383,189 @@ pci_device_netbsd_probe(struct pci_devic
bar += sizeof(uint32_t);
@@ -643,7 +652,7 @@
®) != 0)
continue;
if (PCI_VENDOR(reg) == PCI_VENDOR_INVALID ||
-@@ -355,37 +566,43 @@ pci_system_netbsd_create(void)
+@@ -355,37 +575,43 @@ pci_system_netbsd_create(void)
ndevs++;
}
}
@@ -696,7 +705,7 @@
continue;
device->base.device_class =
-@@ -393,8 +610,8 @@ pci_system_netbsd_create(void)
+@@ -393,8 +619,8 @@ pci_system_netbsd_create(void)
PCI_SUBCLASS(reg) << 8;
device->base.revision = PCI_REVISION(reg);
Home |
Main Index |
Thread Index |
Old Index