summaryrefslogtreecommitdiff
path: root/sysutils/acpidump
diff options
context:
space:
mode:
authoruebayasi <uebayasi>2004-02-29 05:57:44 +0000
committeruebayasi <uebayasi>2004-02-29 05:57:44 +0000
commitafe06fb8a51963f85c466fe1fe5e507552dc94d5 (patch)
treeee68d180d20fd86db94507857d089940bbae1f9f /sysutils/acpidump
parent5dfc9e2e02a77569a41cf971a80b8553969d78c6 (diff)
downloadpkgsrc-afe06fb8a51963f85c466fe1fe5e507552dc94d5.tar.gz
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 (limited to 'sysutils/acpidump')
-rw-r--r--sysutils/acpidump/DESCR4
-rw-r--r--sysutils/acpidump/Makefile20
-rw-r--r--sysutils/acpidump/PLIST3
-rw-r--r--sysutils/acpidump/distinfo7
-rw-r--r--sysutils/acpidump/patches/patch-aa23
-rw-r--r--sysutils/acpidump/patches/patch-ab8
-rw-r--r--sysutils/acpidump/patches/patch-ac25
7 files changed, 90 insertions, 0 deletions
diff --git a/sysutils/acpidump/DESCR b/sysutils/acpidump/DESCR
new file mode 100644
index 00000000000..50c649c7826
--- /dev/null
+++ b/sysutils/acpidump/DESCR
@@ -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 --git a/sysutils/acpidump/Makefile b/sysutils/acpidump/Makefile
new file mode 100644
index 00000000000..368fdb5c1d1
--- /dev/null
+++ b/sysutils/acpidump/Makefile
@@ -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
+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 --git a/sysutils/acpidump/PLIST b/sysutils/acpidump/PLIST
new file mode 100644
index 00000000000..88a0df4807f
--- /dev/null
+++ b/sysutils/acpidump/PLIST
@@ -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 --git a/sysutils/acpidump/distinfo b/sysutils/acpidump/distinfo
new file mode 100644
index 00000000000..fb446e56601
--- /dev/null
+++ b/sysutils/acpidump/distinfo
@@ -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 --git a/sysutils/acpidump/patches/patch-aa b/sysutils/acpidump/patches/patch-aa
new file mode 100644
index 00000000000..8fadfe47a66
--- /dev/null
+++ b/sysutils/acpidump/patches/patch-aa
@@ -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 --git a/sysutils/acpidump/patches/patch-ab b/sysutils/acpidump/patches/patch-ab
new file mode 100644
index 00000000000..909fa1fde89
--- /dev/null
+++ b/sysutils/acpidump/patches/patch-ab
@@ -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 --git a/sysutils/acpidump/patches/patch-ac b/sysutils/acpidump/patches/patch-ac
new file mode 100644
index 00000000000..e2f879732ec
--- /dev/null
+++ b/sysutils/acpidump/patches/patch-ac
@@ -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;