pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/acpidump Initial import of Portable ACPI dump...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97efd8cc8e65
branches:  trunk
changeset: 469798:97efd8cc8e65
user:      uebayasi <uebayasi%pkgsrc.org@localhost>
date:      Sun Feb 29 05:57:44 2004 +0000

description:
Initial import of Portable ACPI dumper (acpidump-20020711).

The acpidump utility analyzes ACPI tables in physical memory and dumps
them to standard output.  In addition, acpidump can disassemble AML
(ACPI Machine Language) found in these tables and dump them as ASL
(ACPI Source Language).

diffstat:

 sysutils/acpidump/DESCR            |   4 ++++
 sysutils/acpidump/Makefile         |  20 ++++++++++++++++++++
 sysutils/acpidump/PLIST            |   3 +++
 sysutils/acpidump/distinfo         |   7 +++++++
 sysutils/acpidump/patches/patch-aa |  23 +++++++++++++++++++++++
 sysutils/acpidump/patches/patch-ab |   8 ++++++++
 sysutils/acpidump/patches/patch-ac |  25 +++++++++++++++++++++++++
 7 files changed, 90 insertions(+), 0 deletions(-)

diffs (118 lines):

diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/DESCR   Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,4 @@
+The acpidump utility analyzes ACPI tables in physical memory and dumps
+them to standard output.  In addition, acpidump can disassemble AML
+(ACPI Machine Language) found in these tables and dump them as ASL
+(ACPI Source Language).
diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/Makefile        Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
+#
+
+DISTNAME=      pacpidump
+PKGNAME=       acpidump-20020711
+CATEGORIES=    sysutils
+MASTER_SITES=  http://people.freebsd.org/~takawata/
+
+MAINTAINER=    uebayasi%NetBSD.org@localhost
+HOMEPAGE=      ${MASTER_SITES} # Just a directory list. :-)
+COMMENT=       Portable ACPI table dumper
+
+USE_GNU_TOOLS+=        make
+ALL_TARGET=    # null
+
+do-install:
+       @${INSTALL_PROGRAM} ${WRKSRC}/acpidump ${PREFIX}/bin
+       @${INSTALL_MAN} ${WRKSRC}/acpidump.8 ${PREFIX}/man/man8
+
+.include "../../mk/bsd.pkg.mk"
diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/PLIST   Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
+bin/acpidump
+man/man8/acpidump.8
diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/distinfo        Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
+
+SHA1 (pacpidump.tar.gz) = 55cea53b1824f9df3b43c08c749bf584b567cd69
+Size (pacpidump.tar.gz) = 45281 bytes
+SHA1 (patch-aa) = 79450add2824f292f6c8bd08a3ee55aaa2d363c5
+SHA1 (patch-ab) = a283ba41370a24c452581a78dbc16d6ee7eb30cb
+SHA1 (patch-ac) = f9deae2aa1939aa951cca51e678fd459038bf2d6
diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/patches/patch-aa        Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
+
+--- acpi.c.orig        Tue Oct 23 16:36:26 2001
++++ acpi.c
+@@ -72,12 +72,12 @@ acpi_print_dsdt_definition(void)
+       strncpy(oemtblid, dsdt_header.oemtblid, 8);
+       oemtblid[8] = '\0';
+ 
+-      printf("DefinitionBlock (
+-      \"acpi_dsdt.aml\",      //Output filename
+-      \"DSDT\",               //Signature
+-      0x%x,                   //DSDT Revision
+-      \"%s\",                 //OEMID
+-      \"%s\",                 //TABLE ID
++      printf("DefinitionBlock (\n\
++      \"acpi_dsdt.aml\",      //Output filename\n\
++      \"DSDT\",               //Signature\n\
++      0x%x,                   //DSDT Revision\n\
++      \"%s\",                 //OEMID\n\
++      \"%s\",                 //TABLE ID\n\
+       0x%x                    //OEM Revision\n)\n",
+       dsdt_header.rev, oemid, oemtblid, dsdt_header.oemrev);
+ }
diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/patches/patch-ab        Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,8 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
+
+--- config.h.orig      Tue Oct 23 16:22:09 2001
++++ config.h
+@@ -1,2 +1,2 @@
+ #define HAVE_QUEUE_H
+-#define HAVE_VM_OFFSET_T
++#undef HAVE_VM_OFFSET_T
diff -r 366d894a9f59 -r 97efd8cc8e65 sysutils/acpidump/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/acpidump/patches/patch-ac        Sun Feb 29 05:57:44 2004 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
+
+--- aml/aml_parse.c.orig       Wed Oct 24 01:02:48 2001
++++ aml/aml_parse.c
+@@ -708,7 +708,7 @@ aml_parse_field(struct aml_environ *env,
+               width = aml_parse_pkglength(env);
+               template->bitlen = width;
+               aml_print_namestring(name);
+-              AML_CREATE_NAME(aname, env, name, NULL);
++              AML_CREATE_NAME(aname, env, name, 0);
+               /* Allignment */
+               if (width == 16) {
+                       template->bitoffset += 15;
+@@ -726,9 +726,9 @@ aml_parse_field(struct aml_environ *env,
+               if (aname->property != NULL) {
+                       env->stat = aml_stat_panic;
+                       AML_DEBUGPRINT("Already Defined \n");
+-                      return (NULL);
++                      return (0);
+               }
+-              AML_ALLOC_OBJECT(aname->property, env, aml_t_field, NULL);
++              AML_ALLOC_OBJECT(aname->property, env, aml_t_field, 0);
+               prop = &aname->property->field;
+               *prop = *template;
+               template->bitoffset += width;



Home | Main Index | Thread Index | Old Index