Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/acpica Add the userspace portion of ACPICA to a...



details:   https://anonhg.NetBSD.org/src/rev/e9a71671b490
branches:  trunk
changeset: 762176:e9a71671b490
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Feb 17 07:48:16 2011 +0000

description:
Add the userspace portion of ACPICA to a new location.

diffstat:

 external/bsd/acpica/Makefile          |    5 +
 external/bsd/acpica/bin/Makefile      |    5 +
 external/bsd/acpica/bin/iasl/Makefile |  166 +++++++++++++++++++++++++++
 external/bsd/acpica/bin/iasl/iasl.8   |  205 ++++++++++++++++++++++++++++++++++
 4 files changed, 381 insertions(+), 0 deletions(-)

diffs (truncated from 397 to 300 lines):

diff -r 3bdfc585a97a -r e9a71671b490 external/bsd/acpica/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/acpica/Makefile      Thu Feb 17 07:48:16 2011 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile,v 1.1 2011/02/17 07:48:16 jruoho Exp $
+
+SUBDIR=                bin
+
+.include <bsd.subdir.mk>
diff -r 3bdfc585a97a -r e9a71671b490 external/bsd/acpica/bin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/acpica/bin/Makefile  Thu Feb 17 07:48:16 2011 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2011/02/17 07:48:16 jruoho Exp $
+
+SUBDIR=                iasl
+
+.include <bsd.subdir.mk>
diff -r 3bdfc585a97a -r e9a71671b490 external/bsd/acpica/bin/iasl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/acpica/bin/iasl/Makefile     Thu Feb 17 07:48:16 2011 +0000
@@ -0,0 +1,166 @@
+# $NetBSD: Makefile,v 1.1 2011/02/17 07:48:16 jruoho Exp $
+
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
+PROG=  iasl
+.endif
+BINDIR=        /usr/bin
+MAN=   iasl.8
+WARNS= 0
+TOPDIR=        ${NETBSDSRCDIR}/sys/external/bsd/acpica/dist/compiler
+
+.include <bsd.own.mk>
+
+CPPFLAGS+=     -I${TOPDIR}/../include -I${TOPDIR} -I.
+CPPFLAGS+=     -D_LINUX -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
+CPPFLAGS+=     -D_USE_BERKELEY_YACC
+LDADD+=                -ll -ly -lrt -lpthread
+DPADD+=                ${LIBL} ${LIBY} ${LIBRT} ${LIBPTHREAD}
+
+DPSRCS=        aslcompilerparse.c
+DPSRCS+=aslcompilerlex.c
+
+.PATH: ${TOPDIR}
+SRCS=  aslcompilerparse.c
+SRCS+= aslcompilerlex.c
+SRCS+= aslanalyze.c
+SRCS+= aslcodegen.c
+SRCS+= aslcompile.c
+SRCS+= aslerror.c
+SRCS+= aslfiles.c
+SRCS+= asllength.c
+SRCS+= asllisting.c
+SRCS+= aslload.c
+SRCS+= asllookup.c
+SRCS+= aslmain.c
+SRCS+= aslmap.c
+SRCS+= aslopcodes.c
+SRCS+= asloperands.c
+SRCS+= aslpredef.c
+SRCS+= aslresource.c
+SRCS+= aslrestype1.c
+SRCS+= aslrestype1i.c
+SRCS+= aslrestype2.c
+SRCS+= aslrestype2d.c
+SRCS+= aslrestype2e.c
+SRCS+= aslrestype2q.c
+SRCS+= aslrestype2w.c
+SRCS+= aslstartup.c
+SRCS+= asltree.c
+SRCS+= aslutils.c
+SRCS+= asltransform.c
+SRCS+= aslfold.c
+SRCS+= aslstubs.c
+SRCS+= aslopt.c
+SRCS+= dtcompile.c
+SRCS+= dtfield.c
+SRCS+= dtio.c
+SRCS+= dtsubtable.c
+SRCS+= dttable.c
+SRCS+= dtutils.c
+.PATH: ${TOPDIR}/../common
+SRCS+= getopt.c
+.PATH: ${TOPDIR}/../utilities
+SRCS+= utalloc.c
+SRCS+= utcache.c
+SRCS+= utcopy.c
+SRCS+= utdebug.c
+SRCS+= utdelete.c
+SRCS+= utglobal.c
+SRCS+= utinit.c
+SRCS+= utlock.c
+SRCS+= utobject.c
+SRCS+= utmisc.c
+SRCS+= utmath.c
+SRCS+= utmutex.c
+SRCS+= utresrc.c
+SRCS+= utstate.c
+SRCS+= utxface.c
+.PATH: ${TOPDIR}/../namespace
+SRCS+= nsaccess.c
+SRCS+= nsalloc.c
+SRCS+= nsdump.c
+SRCS+= nsnames.c
+SRCS+= nsobject.c
+SRCS+= nsparse.c
+SRCS+= nssearch.c
+SRCS+= nsutils.c
+SRCS+= nswalk.c
+SRCS+= nsxfobj.c
+.PATH: ${TOPDIR}/../parser
+SRCS+= psargs.c
+SRCS+= psloop.c
+SRCS+= psopcode.c
+SRCS+= psparse.c
+SRCS+= psscope.c
+SRCS+= pstree.c
+SRCS+= psutils.c
+SRCS+= pswalk.c
+.PATH: ${TOPDIR}/../dispatcher
+SRCS+= dmextern.c
+SRCS+= dswscope.c
+SRCS+= dswstate.c
+SRCS+= dsfield.c
+SRCS+= dsobject.c
+SRCS+= dsopcode.c
+SRCS+= dsutils.c
+SRCS+= dswexec.c
+SRCS+= dswload.c
+.PATH: ${TOPDIR}/../executer
+SRCS+= exconvrt.c
+SRCS+= excreate.c
+SRCS+= exdump.c
+SRCS+= exmisc.c
+SRCS+= exmutex.c
+SRCS+= exnames.c
+SRCS+= exoparg1.c
+SRCS+= exoparg2.c
+SRCS+= exoparg3.c
+SRCS+= exoparg6.c
+SRCS+= exprep.c
+SRCS+= exregion.c
+SRCS+= exresnte.c
+SRCS+= exresolv.c
+SRCS+= exresop.c
+SRCS+= exstore.c
+SRCS+= exstoren.c
+SRCS+= exstorob.c
+SRCS+= exsystem.c
+SRCS+= exutils.c
+.PATH: ${TOPDIR}/../common
+SRCS+= adfile.c
+SRCS+= adisasm.c
+SRCS+= adwalk.c
+SRCS+= dmrestag.c
+SRCS+= dmtable.c
+SRCS+= dmtbinfo.c
+SRCS+= dmtbdump.c
+.PATH: ${TOPDIR}/../debugger
+SRCS+= dbfileio.c
+.PATH: ${TOPDIR}/../disassembler
+SRCS+= dmbuffer.c
+SRCS+= dmnames.c
+SRCS+= dmopcode.c
+SRCS+= dmobject.c
+SRCS+= dmresrc.c
+SRCS+= dmresrcl.c
+SRCS+= dmresrcs.c
+SRCS+= dmutils.c
+SRCS+= dmwalk.c
+.PATH: ${TOPDIR}/../tables
+SRCS+= tbfadt.c
+SRCS+= tbinstal.c
+SRCS+= tbutils.c
+SRCS+= tbxface.c
+.PATH: ${TOPDIR}/..
+SRCS+= osunixxf.c
+
+aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
+       ${YACC} -v -d -o${.TARGET} -pAslCompiler ${.ALLSRC}
+       mv -f ${.PREFIX}.h aslcompiler.y.h
+
+aslcompilerlex.c: ${TOPDIR}/aslcompiler.l
+       ${LEX} -i -PAslCompiler -o${.TARGET} ${.ALLSRC}
+
+CLEANFILES+=   aslcompilerlex.c aslcompilerparse.c aslcompiler.y.h aslcompilerparse.output
+
+.include <bsd.prog.mk>
diff -r 3bdfc585a97a -r e9a71671b490 external/bsd/acpica/bin/iasl/iasl.8
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/acpica/bin/iasl/iasl.8       Thu Feb 17 07:48:16 2011 +0000
@@ -0,0 +1,205 @@
+.\" $NetBSD: iasl.8,v 1.1 2011/02/17 07:48:16 jruoho Exp $
+.\"
+.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Jukka Ruohonen.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd April 10, 2010
+.Os
+.Dt IASL 8
+.Sh NAME
+.Nm iasl
+.Nd Intel ASL compiler and disassembler
+.Tn Pq iASL
+.Sh SYNOPSIS
+.Nm
+.Op Ar options
+.Ao Ar input file Ac
+.Sh DESCRIPTION
+The
+.Nm
+is a fully-featured compiler for the
+.Tn ACPI
+Source Language
+.Tn Pq ASL .
+It translates
+.Tn ASL
+to
+.Tn ACPI
+Machine Language
+.Tn Pq AML ,
+but
+.Nm
+can also act as a disassembler, translating
+.Tn AML
+to
+.Tn ASL .
+.Sh OPTIONS
+.Ss Global
+.Bl -tag -width "w 1 | 2 | 3 " -offset 4n -compact
+.It Fl @ Ar file
+Specify command file.
+.It Fl I Ar dir
+Specify additional include directory.
+.El
+.Ss General Output
+.Bl -tag -width "w 1 | 2 | 3 " -offset 4n -compact
+.It Fl p Ar prefix
+Specify a path or filename
+.Ar prefix
+for all output files.
+.It Fl va
+Disable all errors and warnings in the summary.
+.It Fl vi
+Use less verbose errors and warnings.
+.It Fl vo
+Enable optimization comments.
+.It Fl vr
+Disable remarks.
+.It Fl vs
+Disable signon.
+.It Fl w Ar 1 | 2 | 3
+Set warning reporting level.
+.El
+.Ss AML Output Files
+.Bl -tag -width "w 1 | 2 | 3 " -offset 4n -compact
+.It Fl s Ar a | c
+Create
+.Tn AML
+in assembler
+.Pq Pa *.asm
+or C
+.Pq Pa *.c
+source file.
+.It Fl i Ar a | c
+Create assembler
+.Pq Pa *.inc
+or C
+.Pq Pa *.h
+include file.
+.It Fl t Ar a | c
+Create AML in assembler or C hex table
+.Pq Pa *.hex .
+.El
+.Ss AML Code Generation
+.Bl -tag -width "w 1 | 2 | 3 " -offset 4n -compact



Home | Main Index | Thread Index | Old Index