Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
The isapnp tools consist of two programs - one allows the dumping of
resource data and generation of a skeleton configuration file, the
other configures ISA PnP hardware using a configuration file.

View File

@@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.15 2012/10/23 19:51:08 asau Exp $
#
DISTNAME= isapnptools-1.27
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/hardware/}
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.roestock.demon.co.uk/isapnptools/index.html
COMMENT= Manually query and configure isapnp devices
ONLY_FOR_PLATFORM= NetBSD-*-i386
USE_TOOLS+= gmake
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --disable-realtime
CONFIGURE_ARGS+= --disable-pci
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,18 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:16:08 joerg Exp $
include/isapnp/callbacks.h
include/isapnp/errcodes.h
include/isapnp/errenum.h
include/isapnp/iopl.h
include/isapnp/mysnprtf.h
include/isapnp/pnp-access.h
include/isapnp/pnp.h
include/isapnp/realtime.h
include/isapnp/release.h
include/isapnp/res-access.h
include/isapnp/resource.h
lib/libisapnp.a
man/man5/isapnp.conf.5
man/man8/isapnp.8
man/man8/pnpdump.8
sbin/isapnp
sbin/pnpdump

View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.3 2007/12/31 02:51:56 obache Exp $
SHA1 (isapnptools-1.27.tgz) = 6dd8081125086c6ecdc947c35c97ecade2b3f2f7
RMD160 (isapnptools-1.27.tgz) = 7c5c2ce2c9c1a33d351f35a68c8646bd7818cbab
Size (isapnptools-1.27.tgz) = 499639 bytes
SHA1 (patch-aa) = 150793665a3bb775a02a84a63ad69b244556ac28
SHA1 (patch-ab) = e584c500e6262e37d67184a55e8f05cd5d55db14
SHA1 (patch-ac) = 0696f3b6d091f5ae356973ed0277ca5700d6d22e
SHA1 (patch-ad) = 786f8ba36910db3db393ffd8e14a1a921b4ec2f3
SHA1 (patch-ae) = ba703b7c1de4d78efbc5ddd7dfa8fdd1ceb9ef71

View File

@@ -0,0 +1,35 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/07/23 12:07:45 agc Exp $
--- src/iopl.c Tue May 8 15:14:21 2001
+++ src/iopl.c Mon Jul 22 07:46:37 2002
@@ -61,10 +61,17 @@
*/
ret = iopl(3);
#else
+#if defined(__NetBSD__) && defined(HAVE_LIBI386)
+ /*
+ * Have to get unrestricted access to io ports, as WRITE_DATA port > 0x3ff
+ */
+ ret = i386_iopl(3);
+#else
#ifdef HAVE_IOPERM
/* ALPHA only has ioperm, apparently, so cover all with one permission */
ret = ioperm(MIN_READ_ADDR, WRITEDATA_ADDR - MIN_READ_ADDR + 1, 1);
#endif /* HAVE_IOPERM */
+#endif /* !(__NetBSD__ && HAVE_LIBI386) */
#endif /* !HAVE_IOPL */
if (ret < 0) {
@@ -85,9 +92,13 @@
#ifdef HAVE_IOPL
ret = iopl(0);
#else
+#if defined(__NetBSD__) && defined(HAVE_LIBI386)
+ ret = i386_iopl(0);
+#else
#ifdef HAVE_IOPERM
ret = ioperm(MIN_READ_ADDR, WRITEDATA_ADDR - MIN_READ_ADDR + 1, 0);
#endif /* HAVE_IOPERM */
+#endif /* !(__NetBSD__ && HAVE_LIBI386) */
#endif /* !HAVE_IOPL */
if (ret < 0) {

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ab,v 1.1.1.1 2002/07/23 12:07:45 agc Exp $
--- include/isapnp/iopl.h Tue May 8 15:14:21 2001
+++ include/isapnp/iopl.h Mon Jul 22 07:40:38 2002
@@ -45,6 +45,12 @@
#endif
/****************************************************************************/
+#if defined(__NetBSD__) && defined(HAVE_LIBI386)
+#include <sys/types.h>
+#include <machine/bus.h>
+#include <machine/sysarch.h>
+#include <machine/pio.h>
+#else
#ifdef __DJGPP__
#if !defined __TURBOC__ && !defined __BORLANDC__
#include <inlines/pc.h>
@@ -65,6 +71,7 @@
#include <sys/hw.h>
#endif /* _OS2_ */
#endif
+#endif /* !(__NetBSD__ && HAVE_LIBI386) */
/****************************************************************************/

View File

@@ -0,0 +1,27 @@
$NetBSD: patch-ac,v 1.1.1.1 2002/07/23 12:07:45 agc Exp $
--- include/isapnp/pnp.h Thu Apr 12 11:51:19 2001
+++ include/isapnp/pnp.h Mon Jul 22 07:51:51 2002
@@ -33,13 +33,23 @@
#else /* !_OS2_ && !__DJGPP__ */
#ifdef DEBUG
static int x;
+#if defined(__NetBSD__) && defined(HAVE_LIBI386)
+#define ADDRESS(x) (outb(ADDRESS_ADDR, x), printf("\nAddress: %04x", x))
+#define WRITE_DATA(x) (outb(WRITEDATA_ADDR, x), printf(" WR(%02x)", x & 0xff))
+#else
#define ADDRESS(x) (outb(x, ADDRESS_ADDR), printf("\nAddress: %04x", x))
#define WRITE_DATA(x) (outb(x, WRITEDATA_ADDR), printf(" WR(%02x)", x & 0xff))
+#endif
#define READ_DATA (x = inb(read_port), printf(" RD(%02x)", x & 0xff), x)
#define READ_IOPORT(p) (x = inb(p), printf(" [%04x](%02x)", p, x & 0xff), x)
#else /* !DEBUG */
+#if defined(__NetBSD__) && defined(HAVE_LIBI386)
+#define ADDRESS(x) outb(ADDRESS_ADDR, x)
+#define WRITE_DATA(x) outb(WRITEDATA_ADDR, x)
+#else
#define ADDRESS(x) outb(x, ADDRESS_ADDR)
#define WRITE_DATA(x) outb(x, WRITEDATA_ADDR)
+#endif
#define READ_DATA inb(read_port)
#define READ_IOPORT(p) inb(p)
#endif /* !DEBUG */

View File

@@ -0,0 +1,81 @@
$NetBSD: patch-ad,v 1.2 2007/12/31 02:51:56 obache Exp $
--- configure.orig 2007-03-24 17:11:07.000000000 +0000
+++ configure
@@ -21284,6 +21284,77 @@ fi
done
+{ echo "$as_me:$LINENO: checking for i386_iopl in -li386" >&5
+echo $ECHO_N "checking for i386_iopl in -li386... $ECHO_C" >&6; }
+if test "${ac_cv_lib_i386_i386_iopl+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-li386 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char i386_iopl ();
+int
+main ()
+{
+return i386_iopl ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ ac_cv_lib_i386_i386_iopl=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_i386_i386_iopl=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_iopl" >&5
+echo "${ECHO_T}$ac_cv_lib_i386_i386_iopl" >&6; }
+if test $ac_cv_lib_i386_i386_iopl = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBI386 1
+_ACEOF
+
+ LIBS="-li386 $LIBS"
+
+fi
+
+
# Check whether --enable-realtime was given.
if test "${enable_realtime+set}" = set; then
enableval=$enable_realtime; if test "$enableval" = yes

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.2 2007/12/31 02:51:56 obache Exp $
--- include/config.h.in.orig 2007-03-24 17:11:35.000000000 +0000
+++ include/config.h.in
@@ -154,6 +154,9 @@
/* Define to 1 if you have the `_sleep2' function. */
#undef HAVE__SLEEP2
+/* Define if you have the i386 library (-li386). */
+#undef HAVE_LIBI386
+
/* Name of package */
#undef PACKAGE