diff options
27 files changed, 1993 insertions, 1718 deletions
diff --git a/generate/msvc9/AcpiBin.vcproj b/generate/msvc9/AcpiBin.vcproj index 1e40fe153..acf477fd3 100755 --- a/generate/msvc9/AcpiBin.vcproj +++ b/generate/msvc9/AcpiBin.vcproj @@ -116,7 +116,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiBinDebug.exe to Libraries (DEBUG)" - CommandLine="copy .\acpibindebug\acpibin.exe ..\..\libraries\AcpiBinDebug.exe
dir ..\..\libraries\acpibindebug.exe
" + CommandLine="copy .\acpibindebug\acpibin.exe ..\..\libraries\AcpiBinDebug.exe

" /> </Configuration> <Configuration @@ -219,7 +219,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiBin.exe to Libraries" - CommandLine="copy .\acpibin\acpibin.exe ..\..\libraries\AcpiBin.exe
dir ..\..\libraries\acpibin.exe
" + CommandLine="copy .\acpibin\acpibin.exe ..\..\libraries\AcpiBin.exe

" /> </Configuration> </Configurations> @@ -227,21 +227,30 @@ </References> <Files> <Filter - Name="Source" - Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + Name="AcpiBin Headers" + Filter="h;hpp;hxx;hm;inl" > - <Filter - Name="Local" + <File + RelativePath="..\..\source\tools\AcpiBin\acpibin.h" > - <File - RelativePath="..\..\source\tools\AcpiBin\abcompare.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiBin\abmain.c" - > - </File> - </Filter> + </File> + </Filter> + <Filter + Name="AcpiBin Source" + > + <File + RelativePath="..\..\source\tools\AcpiBin\abcompare.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiBin\abmain.c" + > + </File> + </Filter> + <Filter + Name="Acpica Source" + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > <Filter Name="Common" > @@ -340,15 +349,6 @@ </File> </Filter> </Filter> - <Filter - Name="Local Headers" - Filter="h;hpp;hxx;hm;inl" - > - <File - RelativePath="..\..\source\tools\AcpiBin\acpibin.h" - > - </File> - </Filter> </Files> <Globals> </Globals> diff --git a/generate/msvc9/AcpiDump.vcproj b/generate/msvc9/AcpiDump.vcproj index 48cfe3ac0..da0548636 100755 --- a/generate/msvc9/AcpiDump.vcproj +++ b/generate/msvc9/AcpiDump.vcproj @@ -116,7 +116,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiDumpDebug.exe to Libraries (DEBUG)" - CommandLine="copy .\AcpiDumpdebug\AcpiDump.exe ..\..\libraries\AcpiDumpDebug.exe
dir ..\..\libraries\AcpiDumpdebug.exe
" + CommandLine="copy .\AcpiDumpdebug\AcpiDump.exe ..\..\libraries\AcpiDumpDebug.exe

" /> </Configuration> <Configuration @@ -219,7 +219,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiDump.exe to Libraries" - CommandLine="copy .\AcpiDump\AcpiDump.exe ..\..\libraries\AcpiDump.exe
dir ..\..\libraries\AcpiDump.exe
" + CommandLine="copy .\AcpiDump\AcpiDump.exe ..\..\libraries\AcpiDump.exe
" /> </Configuration> </Configurations> @@ -227,25 +227,18 @@ </References> <Files> <Filter - Name="Source" - Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + Name="AcpiDump Headers" + Filter="h;hpp;hxx;hm;inl" > - <Filter - Name="Local" + <File + RelativePath="..\..\source\tools\acpidump\acpidump.h" > - <File - RelativePath="..\..\source\tools\acpidump\apdump.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpidump\apfiles.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpidump\apmain.c" - > - </File> - </Filter> + </File> + </Filter> + <Filter + Name="Acpica Source" + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > <Filter Name="Common" > @@ -361,11 +354,18 @@ </Filter> </Filter> <Filter - Name="Local Headers" - Filter="h;hpp;hxx;hm;inl" + Name="AcpiDump Source" > <File - RelativePath="..\..\source\tools\acpidump\acpidump.h" + RelativePath="..\..\source\tools\acpidump\apdump.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpidump\apfiles.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpidump\apmain.c" > </File> </Filter> diff --git a/generate/msvc9/AcpiExec.vcproj b/generate/msvc9/AcpiExec.vcproj index 245286cf4..c6e480f33 100755 --- a/generate/msvc9/AcpiExec.vcproj +++ b/generate/msvc9/AcpiExec.vcproj @@ -119,7 +119,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiExecDebug.exe to Libraries (DEBUG)" - CommandLine="copy acpiexecdebug\acpiexec.exe ..\..\libraries\AcpiExecDebug.exe
dir ..\..\libraries\acpiexecdebug.exe
" + CommandLine="copy acpiexecdebug\acpiexec.exe ..\..\libraries\AcpiExecDebug.exe
" /> </Configuration> <Configuration @@ -224,7 +224,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiExec.exe to Libraries" - CommandLine="copy acpiexec\acpiexec.exe ..\..\libraries\AcpiExec.exe
dir ..\..\libraries\acpiexec.exe
" + CommandLine="copy acpiexec\acpiexec.exe ..\..\libraries\AcpiExec.exe
" /> </Configuration> </Configurations> @@ -232,7 +232,7 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter @@ -577,34 +577,6 @@ </File> </Filter> <Filter - Name="Local" - > - <File - RelativePath="..\..\source\Tools\AcpiExec\aeexec.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpiexec\aehandlers.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpiexec\aeinitfile.c" - > - </File> - <File - RelativePath="..\..\source\Tools\AcpiExec\aemain.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpiexec\aeregion.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpiexec\aetables.c" - > - </File> - </Filter> - <Filter Name="Debugger" Filter=".c" > @@ -1092,7 +1064,7 @@ </Filter> </Filter> <Filter - Name="Standard Headers" + Name="Acpica Headers" Filter="h;hpp;hxx;hm;inl" > <File @@ -1253,7 +1225,7 @@ </File> </Filter> <Filter - Name="Local Headers" + Name="AcpiExec Headers" > <File RelativePath="..\..\source\Tools\AcpiExec\aecommon.h" @@ -1264,6 +1236,34 @@ > </File> </Filter> + <Filter + Name="AcpiExec Source" + > + <File + RelativePath="..\..\source\Tools\AcpiExec\aeexec.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpiexec\aehandlers.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpiexec\aeinitfile.c" + > + </File> + <File + RelativePath="..\..\source\Tools\AcpiExec\aemain.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpiexec\aeregion.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpiexec\aetables.c" + > + </File> + </Filter> </Files> <Globals> </Globals> diff --git a/generate/msvc9/AcpiHelp.vcproj b/generate/msvc9/AcpiHelp.vcproj index f0280eb0c..05db023e9 100755 --- a/generate/msvc9/AcpiHelp.vcproj +++ b/generate/msvc9/AcpiHelp.vcproj @@ -114,7 +114,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiHelpDebug.exe to Libraries (DEBUG)" - CommandLine="copy AcpiHelpdebug\AcpiHelp.exe ..\..\libraries\AcpiHelpDebug.exe
dir ..\..\libraries\AcpiHelpdebug.exe
" + CommandLine="copy AcpiHelpdebug\AcpiHelp.exe ..\..\libraries\AcpiHelpDebug.exe

" /> </Configuration> <Configuration @@ -214,7 +214,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiHelp.exe to Libraries" - CommandLine="copy AcpiHelp\AcpiHelp.exe ..\..\libraries\AcpiHelp.exe
dir ..\..\libraries\AcpiHelp.exe
" + CommandLine="copy AcpiHelp\AcpiHelp.exe ..\..\libraries\AcpiHelp.exe

" /> </Configuration> </Configurations> @@ -222,39 +222,10 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter - Name="Local" - Filter=".c" - > - <File - RelativePath="..\..\source\tools\acpihelp\ahamlops.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpihelp\ahaslkey.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpihelp\ahaslops.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpihelp\ahdecode.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpihelp\ahgrammar.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpihelp\ahmain.c" - > - </File> - </Filter> - <Filter Name="Common" Filter=".c" > @@ -337,7 +308,7 @@ </Filter> </Filter> <Filter - Name="Local Headers" + Name="AcpiHelp Headers" Filter="h;hpp;hxx;hm;inl" > <File @@ -346,13 +317,50 @@ </File> </Filter> <Filter - Name="Standard Headers" + Name="Acpica Headers" > <File RelativePath="..\..\source\include\acuuid.h" > </File> </Filter> + <Filter + Name="AcpiHelp Source" + Filter=".c" + > + <File + RelativePath="..\..\source\tools\acpihelp\ahaml.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahamlops.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahasl.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahaslkey.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahaslops.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahdecode.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahgrammar.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpihelp\ahmain.c" + > + </File> + </Filter> </Files> <Globals> </Globals> diff --git a/generate/msvc9/AcpiNames.vcproj b/generate/msvc9/AcpiNames.vcproj index 209a69d25..37c001dd3 100755 --- a/generate/msvc9/AcpiNames.vcproj +++ b/generate/msvc9/AcpiNames.vcproj @@ -223,7 +223,7 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter @@ -610,25 +610,9 @@ > </File> </Filter> - <Filter - Name="Local" - > - <File - RelativePath="..\..\source\tools\AcpiNames\anmain.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiNames\anstubs.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiNames\antables.c" - > - </File> - </Filter> </Filter> <Filter - Name="Local Headers" + Name="AcpiNames Headers" Filter="h;hpp;hxx;hm;inl" > <File @@ -636,6 +620,22 @@ > </File> </Filter> + <Filter + Name="AcpiNames Source" + > + <File + RelativePath="..\..\source\tools\AcpiNames\anmain.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiNames\anstubs.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiNames\antables.c" + > + </File> + </Filter> </Files> <Globals> </Globals> diff --git a/generate/msvc9/AcpiSrc.vcproj b/generate/msvc9/AcpiSrc.vcproj index 1028a4094..a3e0b022e 100755 --- a/generate/msvc9/AcpiSrc.vcproj +++ b/generate/msvc9/AcpiSrc.vcproj @@ -114,7 +114,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiSrcDebug.exe to Libraries (DEBUG)" - CommandLine="copy acpisrcdebug\acpisrc.exe ..\..\libraries\AcpiSrcDebug.exe
dir ..\..\libraries\acpisrcdebug.exe
" + CommandLine="copy acpisrcdebug\acpisrc.exe ..\..\libraries\AcpiSrcDebug.exe

" /> </Configuration> <Configuration @@ -215,7 +215,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy AcpiSrc.exe to Libraries" - CommandLine="copy acpisrc\acpisrc.exe ..\..\libraries\AcpiSrc.exe
dir ..\..\libraries\acpisrc.exe
" + CommandLine="copy acpisrc\acpisrc.exe ..\..\libraries\AcpiSrc.exe

" /> </Configuration> </Configurations> @@ -223,43 +223,10 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter - Name="Local" - Filter=".c" - > - <File - RelativePath="..\..\source\TOOLS\acpisrc\ascase.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiSrc\asconvrt.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiSrc\asfile.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiSrc\asmain.c" - > - </File> - <File - RelativePath="..\..\source\TOOLS\acpisrc\asremove.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpisrc\astable.c" - > - </File> - <File - RelativePath="..\..\source\tools\AcpiSrc\asutils.c" - > - </File> - </Filter> - <Filter Name="Common" Filter=".c" > @@ -338,7 +305,7 @@ </Filter> </Filter> <Filter - Name="Local Headers" + Name="AcpiSrc Headers" Filter="h;hpp;hxx;hm;inl" > <File @@ -346,6 +313,39 @@ > </File> </Filter> + <Filter + Name="AcpiSrc Source" + Filter=".c" + > + <File + RelativePath="..\..\source\TOOLS\acpisrc\ascase.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiSrc\asconvrt.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiSrc\asfile.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiSrc\asmain.c" + > + </File> + <File + RelativePath="..\..\source\TOOLS\acpisrc\asremove.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpisrc\astable.c" + > + </File> + <File + RelativePath="..\..\source\tools\AcpiSrc\asutils.c" + > + </File> + </Filter> </Files> <Globals> </Globals> diff --git a/generate/msvc9/AcpiSubsystem.vcproj b/generate/msvc9/AcpiSubsystem.vcproj index 7f5911f65..064872008 100755 --- a/generate/msvc9/AcpiSubsystem.vcproj +++ b/generate/msvc9/AcpiSubsystem.vcproj @@ -98,7 +98,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy ACPICA library to Libraries (DEBUG)" - CommandLine="copy AcpiSubsystemDebug\acpisubsystem.lib ..\..\libraries\Acpica_dbg.lib
dir ..\..\libraries\acpica_dbg.lib
" + CommandLine="copy AcpiSubsystemDebug\acpisubsystem.lib ..\..\libraries\Acpica_dbg.lib

" /> </Configuration> <Configuration @@ -184,7 +184,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy ACPICA library to libraries" - CommandLine="copy AcpiSubsystem\acpisubsystem.lib ..\..\libraries\Acpica.lib
dir ..\..\libraries\acpica.lib
" + CommandLine="copy AcpiSubsystem\acpisubsystem.lib ..\..\libraries\Acpica.lib

" /> </Configuration> </Configurations> @@ -192,7 +192,7 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter @@ -1053,7 +1053,7 @@ </Filter> </Filter> <Filter - Name="Standard Headers" + Name="Acpica Headers" Filter="h;hpp;hxx;hm;inl" > <File diff --git a/generate/msvc9/AcpiXtract.vcproj b/generate/msvc9/AcpiXtract.vcproj index 63cc95dca..bdec0f872 100755 --- a/generate/msvc9/AcpiXtract.vcproj +++ b/generate/msvc9/AcpiXtract.vcproj @@ -223,7 +223,7 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter @@ -290,33 +290,28 @@ </FileConfiguration> </File> </Filter> - <Filter - Name="Local" - > - <File - RelativePath="..\..\source\tools\AcpiXtract\acpixtract.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpixtract\axmain.c" - > - </File> - <File - RelativePath="..\..\source\tools\acpixtract\axutils.c" - > - </File> - </Filter> </Filter> <Filter - Name="Standard Headers" - Filter="h;hpp;hxx;hm;inl" + Name="AcpiXtract Headers" > + <File + RelativePath="..\..\source\tools\acpixtract\acpixtract.h" + > + </File> </Filter> <Filter - Name="Local Headers" + Name="AcpiXtract Source" > <File - RelativePath="..\..\source\tools\acpixtract\acpixtract.h" + RelativePath="..\..\source\tools\AcpiXtract\acpixtract.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpixtract\axmain.c" + > + </File> + <File + RelativePath="..\..\source\tools\acpixtract\axutils.c" > </File> </Filter> diff --git a/generate/msvc9/AslCompiler.vcproj b/generate/msvc9/AslCompiler.vcproj index 84df9c505..ceb64555d 100755 --- a/generate/msvc9/AslCompiler.vcproj +++ b/generate/msvc9/AslCompiler.vcproj @@ -2,7 +2,7 @@ <VisualStudioProject ProjectType="Visual C++" Version="9.00" - Name="AslCompiler" + Name="iASL Compiler" ProjectGUID="{567F2240-BCAA-48BE-BAB8-4E812BD273D8}" RootNamespace="AslCompiler" TargetFrameworkVersion="0" @@ -118,7 +118,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy iasl.exe to Libraries" - CommandLine="copy AslCompiler\aslcompiler.exe ..\..\libraries\iasl.exe
dir ..\..\libraries\iasl.exe
" + CommandLine="copy AslCompiler\aslcompiler.exe ..\..\libraries\iasl.exe

" /> </Configuration> <Configuration @@ -224,7 +224,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy iaslDebug.exe to Libraries (DEBUG)" - CommandLine="copy AslCompilerDebug\aslcompiler.exe ..\..\libraries\iaslDebug.exe
dir ..\..\libraries\iasldebug.exe
" + CommandLine="copy AslCompilerDebug\aslcompiler.exe ..\..\libraries\iaslDebug.exe

" /> </Configuration> </Configurations> @@ -232,7 +232,7 @@ </References> <Files> <Filter - Name="ACPICA Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter @@ -764,7 +764,7 @@ </Filter> </Filter> <Filter - Name="Local Headers" + Name="Compiler Headers" Filter="h;hpp;hxx;hm;inl" > <File @@ -803,814 +803,810 @@ <Filter Name="Compiler Source" > - <Filter - Name="Compiler Parsers" + <File + RelativePath="..\..\source\compiler\aslanalyze.c" > - <File - RelativePath="..\..\source\compiler\aslcstyle.y" - > - </File> - <File - RelativePath="..\..\source\compiler\aslhelpers.y" - > - </File> - <File - RelativePath="..\..\source\compiler\aslkeywords.y" - > - </File> - <File - RelativePath="..\..\source\compiler\aslparser.y" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="M4 Macro Preprocessor ($(InputPath)) $(InputDir)" - CommandLine="c:\GnuWin32\bin\m4 -P -I../../source/compiler ../../source/compiler/$(InputName).y > ./AslCompiler/AslCompiler.y
" - AdditionalDependencies="$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslcstyle.y;$(InputDir)aslcstructs.y;$(InputDir)aslresources.y;$(InputDir)aslprimaries.y;$(InputDir)aslkeywords.y;$(InputDir)aslhelpers.y" - Outputs=" ./AslCompiler/AslCompiler.y" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="M4 Macro Preprocessor ($(InputPath)) > AslCompilerDebug/AslCompilerDebug.y" - CommandLine="c:\GnuWin32\bin\m4 -P -I../../source/compiler $(InputPath) > ./AslCompilerDebug/AslCompilerDebug.y
" - AdditionalDependencies="$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslcstyle.y;$(InputDir)aslcstructs.y;$(InputDir)aslresources.y;$(InputDir)aslprimaries.y;$(InputDir)aslkeywords.y;$(InputDir)aslhelpers.y" - Outputs=" ./AslCompilerDebug/AslCompilerDebug.y" - /> - </FileConfiguration> - </File> - <File - RelativePath="..\..\source\compiler\aslprimaries.y" - > - </File> - <File - RelativePath="..\..\source\compiler\aslresources.y" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrules.y" - > - </File> - <File - RelativePath="..\..\source\compiler\aslsupport.y" - > - </File> - <File - RelativePath="..\..\source\compiler\asltokens.y" - > - </File> - <File - RelativePath="..\..\source\compiler\asltypes.y" - > - </File> - <File - RelativePath="..\..\source\compiler\dtparser.y" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Table compiler parser generation ($(InputPath))" - CommandLine="c:\GnuWin32\bin\bison -pDtParser -t -d -v --warnings=yacc -oAslCompiler/$(InputName).y.c ../../source/compiler/dtparser.y
" - Outputs="AslCompiler\$(InputName).y.c;AslCompiler\$(InputName).y.h" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Table compiler parser generation ($(InputPath)) DEBUG" - CommandLine="c:\GnuWin32\bin\bison -pDtParser -t -d -v --warnings=yacc -oAslCompilerDebug/DtParserDebug.y.c ../../source/compiler/dtparser.y
copy /Y AslCompilerDebug\DtParserDebug.y.h AslCompilerDebug\DtParser.y.h
" - Outputs="AslCompilerDebug\DtParserDebug.y.c;AslCompilerDebug\DtParserDebug.y.h" - /> - </FileConfiguration> - </File> - <File - RelativePath="..\..\source\compiler\prparser.y" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Preprocessor parser generation ($(InputPath))" - CommandLine="c:\GnuWin32\bin\bison -pPrParser -t -d -v --warnings=yacc -oAslCompiler/$(InputName).y.c ../../source/compiler/prparser.y
" - Outputs="AslCompiler\$(InputName).y.c;AslCompiler\$(InputName).y.h" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Preprocessor parser generation ($(InputPath)) DEBUG" - CommandLine="c:\GnuWin32\bin\bison -pPrParser -t -d -v --warnings=yacc -oAslCompilerDebug/PrParserDebug.y.c ../../source/compiler/prparser.y
copy /Y AslCompilerDebug\PrParserDebug.y.h AslCompilerDebug\PrParser.y.h
" - Outputs="AslCompilerDebug\PrParserDebug.y.c;AslCompilerDebug\PrParserDebug.y.h" - /> - </FileConfiguration> - </File> - </Filter> - <Filter - Name="Compiler Lexers" + </File> + <File + RelativePath="..\..\source\compiler\aslascii.c" > - <File - RelativePath="..\..\source\compiler\aslcompiler.l" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Flex - Main compiler lexer generation ($(InputPath))" - CommandLine="c:\GnuWin32\bin\flex.exe -PAslCompiler -i -s -oAslCompiler\$(InputName).l.c $(InputPath)
" - AdditionalDependencies="$(InputDir)aslsupport.l" - Outputs="AslCompiler\$(InputName).l.c" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Flex - Main compiler lexer generation ($(InputPath)) DEBUG" - CommandLine="c:\GnuWin32\bin\flex.exe -PAslCompiler -i -s -oAslCompilerDebug\AslCompilerDebug.l.c $(InputPath)
" - AdditionalDependencies="$(InputDir)aslsupport.l" - Outputs="AslCompilerDebug\AslCompilerDebug.l.c " - /> - </FileConfiguration> - </File> - <File - RelativePath="..\..\source\compiler\aslsupport.l" - > - </File> - <File - RelativePath="..\..\source\compiler\dtparser.l" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Flex - Table compiler lexer generation ($(InputPath))" - CommandLine="c:\GnuWin32\bin\flex.exe -PDtParser -i -s -oAslCompiler\$(InputName).l.c $(InputPath)
" - Outputs="AslCompiler\$(InputName).l.c " - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Flex - Table compiler lexer generation ($(InputPath)) DEBUG" - CommandLine="c:\GnuWin32\bin\flex.exe -PDtParser -i -s -oAslCompilerDebug\DtParserDebug.l.c $(InputPath)
" - Outputs="AslCompilerDebug\DtParserDebug.l.c " - /> - </FileConfiguration> - </File> - <File - RelativePath="..\..\source\compiler\prparser.l" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Flex - Preprocessor lexer generation ($(InputPath))" - CommandLine="c:\GnuWin32\bin\flex.exe -PPrParser -i -s -oAslCompiler\$(InputName).l.c $(InputPath)
" - Outputs="AslCompiler\$(InputName).l.c " - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Flex - Preprocessor lexer generation ($(InputPath)) DEBUG" - CommandLine="c:\GnuWin32\bin\flex.exe -PPrParser -i -s -oAslCompilerDebug\PrParserDebug.l.c $(InputPath)
" - Outputs="AslCompilerDebug\PrParserDebug.l.c " - /> - </FileConfiguration> - </File> - </Filter> - <Filter - Name="ASL Compiler" + </File> + <File + RelativePath="..\..\source\compiler\aslbtypes.c" > - <File - RelativePath="..\..\source\compiler\aslanalyze.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslascii.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslbtypes.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslcodegen.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslcompile.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asldebug.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslerror.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslexternal.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslfileio.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslfiles.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslfold.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslhelp.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslhex.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asllength.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asllisting.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asllistsup.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslload.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asllookup.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmain.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmap.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmapenter.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmapoutput.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmaputils.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmessages.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslmethod.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslnamesp.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asloffset.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslopcodes.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asloperands.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslopt.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asloptions.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslpld.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslpredef.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslprepkg.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslprintf.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslprune.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslresource.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype1.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype1i.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype2.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype2d.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype2e.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype2q.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype2s.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslrestype2w.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslstartup.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslstubs.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asltransform.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asltree.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslutils.c" - > - </File> - <File - RelativePath="..\..\source\compiler\asluuid.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslwalks.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslxref.c" - > - </File> - <File - RelativePath="..\..\source\compiler\aslxrefout.c" - > - </File> - </Filter> - <Filter - Name="Data Table Compiler" + </File> + <File + RelativePath="..\..\source\compiler\aslcodegen.c" > - <File - RelativePath="..\..\source\compiler\dtcompile.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dtexpress.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dtfield.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dtio.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dtsubtable.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dttable.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dttable1.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dttable2.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dttemplate.c" - > - </File> - <File - RelativePath="..\..\source\compiler\dtutils.c" - > - </File> - </Filter> - <Filter - Name="Intermediate Output" - Filter="*.c, *.h" + </File> + <File + RelativePath="..\..\source\compiler\aslcompile.c" > - <File - RelativePath="AslCompiler\AslCompiler.l.c" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompiler\AslCompiler.y" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Main compiler parser generation ($(InputPath))" - CommandLine="c:\GnuWin32\bin\bison -pAslCompiler -t -d -v --warnings=yacc -oAslCompiler/$(InputName).y.c ./AslCompiler/aslcompiler.y
" - AdditionalDependencies="$(InputDir)aslcstructs.y;$(InputDir)aslcstyle.y;$(InputDir)aslhelpers.y;$(InputDir)aslkeywords.y;$(InputDir)aslparser.y;$(InputDir)aslprimaries.y;$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslresources.y" - Outputs="./AslCompiler/$(InputName).y.c;./AslCompiler/$(InputName).y.h" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Main compiler parser generation ($(InputPath))" - CommandLine="" - Outputs="" - /> - </FileConfiguration> - </File> - <File - RelativePath="AslCompiler\AslCompiler.y.c" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompiler\AslCompiler.y.output" - > - </File> - <File - RelativePath="AslCompilerDebug\AslCompilerDebug.l.c" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompilerDebug\AslCompilerDebug.y" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Main compiler parser generation ($(InputPath))" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Bison - Main compiler parser generation ($(InputPath)) DEBUG" - CommandLine="c:\GnuWin32\bin\bison -pAslCompiler -t -d -v --warnings=yacc -oAslCompilerDebug/AslCompilerDebug.y.c AslCompilerDebug/AslCompilerDebug.y
copy /Y AslCompilerDebug\AslCompilerDebug.y.h AslCompilerDebug\AslCompiler.y.h
" - AdditionalDependencies="$(InputDir)aslcstructs.y;$(InputDir)aslcstyle.y;$(InputDir)aslhelpers.y;$(InputDir)aslkeywords.y;$(InputDir)aslparser.y;$(InputDir)aslprimaries.y;$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslresources.y" - Outputs="AslCompilerDebug\AslCompilerDebug.y.c;AslCompilerDebug\AslCompilerDebug.y.h" - /> - </FileConfiguration> - </File> - <File - RelativePath="AslCompilerDebug\AslCompilerDebug.y.c" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompiler\dtparser.l.c" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - Detect64BitPortabilityProblems="false" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompiler\dtparser.y.c" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompilerDebug\DtParserDebug.l.c" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompilerDebug\DtParserDebug.y.c" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompiler\prparser.l.c" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompiler\prparser.y.c" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompilerDebug\PrParserDebug.l.c" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\AslCompilerDebug\PrParserDebug.y.c" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" - WarningLevel="3" - /> - </FileConfiguration> - </File> - </Filter> - <Filter - Name="Preprocessor" + </File> + <File + RelativePath="..\..\source\compiler\asldebug.c" > - <File - RelativePath="..\..\source\compiler\prexpress.c" - > - </File> - <File - RelativePath="..\..\source\compiler\prmacros.c" - > - </File> - <File - RelativePath="..\..\source\compiler\prscan.c" - > - </File> - <File - RelativePath="..\..\source\compiler\prutils.c" - > - </File> - </Filter> + </File> + <File + RelativePath="..\..\source\compiler\aslerror.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslexternal.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslfileio.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslfiles.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslfold.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslhelp.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslhex.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asllength.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asllisting.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asllistsup.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslload.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asllookup.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmain.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmap.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmapenter.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmapoutput.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmaputils.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmessages.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslmethod.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslnamesp.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asloffset.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslopcodes.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asloperands.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslopt.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asloptions.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslpld.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslpredef.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslprepkg.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslprintf.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslprune.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslresource.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype1.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype1i.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype2.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype2d.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype2e.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype2q.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype2s.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrestype2w.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslstartup.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslstubs.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asltransform.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asltree.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslutils.c" + > + </File> + <File + RelativePath="..\..\source\compiler\asluuid.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslwalks.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslxref.c" + > + </File> + <File + RelativePath="..\..\source\compiler\aslxrefout.c" + > + </File> + </Filter> + <Filter + Name="Compiler Lexers" + > + <File + RelativePath="..\..\source\compiler\aslcompiler.l" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Flex - Main compiler lexer generation ($(InputPath))" + CommandLine="c:\GnuWin32\bin\flex.exe -PAslCompiler -i -s -oAslCompiler\$(InputName).l.c $(InputPath)
" + AdditionalDependencies="$(InputDir)aslsupport.l" + Outputs="AslCompiler\$(InputName).l.c" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Flex - Main compiler lexer generation ($(InputPath)) DEBUG" + CommandLine="c:\GnuWin32\bin\flex.exe -PAslCompiler -i -s -oAslCompilerDebug\AslCompilerDebug.l.c $(InputPath)
" + AdditionalDependencies="$(InputDir)aslsupport.l" + Outputs="AslCompilerDebug\AslCompilerDebug.l.c " + /> + </FileConfiguration> + </File> + <File + RelativePath="..\..\source\compiler\aslsupport.l" + > + </File> + <File + RelativePath="..\..\source\compiler\dtparser.l" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Flex - Table compiler lexer generation ($(InputPath))" + CommandLine="c:\GnuWin32\bin\flex.exe -PDtParser -i -s -oAslCompiler\$(InputName).l.c $(InputPath)
" + Outputs="AslCompiler\$(InputName).l.c " + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Flex - Table compiler lexer generation ($(InputPath)) DEBUG" + CommandLine="c:\GnuWin32\bin\flex.exe -PDtParser -i -s -oAslCompilerDebug\DtParserDebug.l.c $(InputPath)
" + Outputs="AslCompilerDebug\DtParserDebug.l.c " + /> + </FileConfiguration> + </File> + <File + RelativePath="..\..\source\compiler\prparser.l" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Flex - Preprocessor lexer generation ($(InputPath))" + CommandLine="c:\GnuWin32\bin\flex.exe -PPrParser -i -s -oAslCompiler\$(InputName).l.c $(InputPath)
" + Outputs="AslCompiler\$(InputName).l.c " + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Flex - Preprocessor lexer generation ($(InputPath)) DEBUG" + CommandLine="c:\GnuWin32\bin\flex.exe -PPrParser -i -s -oAslCompilerDebug\PrParserDebug.l.c $(InputPath)
" + Outputs="AslCompilerDebug\PrParserDebug.l.c " + /> + </FileConfiguration> + </File> + </Filter> + <Filter + Name="Compiler Parsers" + > + <File + RelativePath="..\..\source\compiler\aslcstyle.y" + > + </File> + <File + RelativePath="..\..\source\compiler\aslhelpers.y" + > + </File> + <File + RelativePath="..\..\source\compiler\aslkeywords.y" + > + </File> + <File + RelativePath="..\..\source\compiler\aslparser.y" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="M4 Macro Preprocessor ($(InputPath)) $(InputDir)" + CommandLine="c:\GnuWin32\bin\m4 -P -I../../source/compiler ../../source/compiler/$(InputName).y > ./AslCompiler/AslCompiler.y
" + AdditionalDependencies="$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslcstyle.y;$(InputDir)aslcstructs.y;$(InputDir)aslresources.y;$(InputDir)aslprimaries.y;$(InputDir)aslkeywords.y;$(InputDir)aslhelpers.y" + Outputs=" ./AslCompiler/AslCompiler.y" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="M4 Macro Preprocessor ($(InputPath)) > AslCompilerDebug/AslCompilerDebug.y" + CommandLine="c:\GnuWin32\bin\m4 -P -I../../source/compiler $(InputPath) > ./AslCompilerDebug/AslCompilerDebug.y
" + AdditionalDependencies="$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslcstyle.y;$(InputDir)aslcstructs.y;$(InputDir)aslresources.y;$(InputDir)aslprimaries.y;$(InputDir)aslkeywords.y;$(InputDir)aslhelpers.y" + Outputs=" ./AslCompilerDebug/AslCompilerDebug.y" + /> + </FileConfiguration> + </File> + <File + RelativePath="..\..\source\compiler\aslprimaries.y" + > + </File> + <File + RelativePath="..\..\source\compiler\aslresources.y" + > + </File> + <File + RelativePath="..\..\source\compiler\aslrules.y" + > + </File> + <File + RelativePath="..\..\source\compiler\aslsupport.y" + > + </File> + <File + RelativePath="..\..\source\compiler\asltokens.y" + > + </File> + <File + RelativePath="..\..\source\compiler\asltypes.y" + > + </File> + <File + RelativePath="..\..\source\compiler\dtparser.y" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Table compiler parser generation ($(InputPath))" + CommandLine="c:\GnuWin32\bin\bison -pDtParser -t -d -v --warnings=yacc -oAslCompiler/$(InputName).y.c ../../source/compiler/dtparser.y
" + Outputs="AslCompiler\$(InputName).y.c;AslCompiler\$(InputName).y.h" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Table compiler parser generation ($(InputPath)) DEBUG" + CommandLine="c:\GnuWin32\bin\bison -pDtParser -t -d -v --warnings=yacc -oAslCompilerDebug/DtParserDebug.y.c ../../source/compiler/dtparser.y
copy /Y AslCompilerDebug\DtParserDebug.y.h AslCompilerDebug\DtParser.y.h
" + Outputs="AslCompilerDebug\DtParserDebug.y.c;AslCompilerDebug\DtParserDebug.y.h" + /> + </FileConfiguration> + </File> + <File + RelativePath="..\..\source\compiler\prparser.y" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Preprocessor parser generation ($(InputPath))" + CommandLine="c:\GnuWin32\bin\bison -pPrParser -t -d -v --warnings=yacc -oAslCompiler/$(InputName).y.c ../../source/compiler/prparser.y
" + Outputs="AslCompiler\$(InputName).y.c;AslCompiler\$(InputName).y.h" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Preprocessor parser generation ($(InputPath)) DEBUG" + CommandLine="c:\GnuWin32\bin\bison -pPrParser -t -d -v --warnings=yacc -oAslCompilerDebug/PrParserDebug.y.c ../../source/compiler/prparser.y
copy /Y AslCompilerDebug\PrParserDebug.y.h AslCompilerDebug\PrParser.y.h
" + Outputs="AslCompilerDebug\PrParserDebug.y.c;AslCompilerDebug\PrParserDebug.y.h" + /> + </FileConfiguration> + </File> + </Filter> + <Filter + Name="Intermediate Temp Output" + Filter="*.c, *.h" + > + <File + RelativePath="AslCompiler\AslCompiler.l.c" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompiler\AslCompiler.y" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Main compiler parser generation ($(InputPath))" + CommandLine="c:\GnuWin32\bin\bison -pAslCompiler -t -d -v --warnings=yacc -oAslCompiler/$(InputName).y.c ./AslCompiler/aslcompiler.y
" + AdditionalDependencies="$(InputDir)aslcstructs.y;$(InputDir)aslcstyle.y;$(InputDir)aslhelpers.y;$(InputDir)aslkeywords.y;$(InputDir)aslparser.y;$(InputDir)aslprimaries.y;$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslresources.y" + Outputs="./AslCompiler/$(InputName).y.c;./AslCompiler/$(InputName).y.h" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Main compiler parser generation ($(InputPath))" + CommandLine="" + Outputs="" + /> + </FileConfiguration> + </File> + <File + RelativePath="AslCompiler\AslCompiler.y.c" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompiler\AslCompiler.y.output" + > + </File> + <File + RelativePath="AslCompilerDebug\AslCompilerDebug.l.c" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompilerDebug\AslCompilerDebug.y" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Main compiler parser generation ($(InputPath))" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCustomBuildTool" + Description="Bison - Main compiler parser generation ($(InputPath)) DEBUG" + CommandLine="c:\GnuWin32\bin\bison -pAslCompiler -t -d -v --warnings=yacc -oAslCompilerDebug/AslCompilerDebug.y.c AslCompilerDebug/AslCompilerDebug.y
copy /Y AslCompilerDebug\AslCompilerDebug.y.h AslCompilerDebug\AslCompiler.y.h
" + AdditionalDependencies="$(InputDir)aslcstructs.y;$(InputDir)aslcstyle.y;$(InputDir)aslhelpers.y;$(InputDir)aslkeywords.y;$(InputDir)aslparser.y;$(InputDir)aslprimaries.y;$(InputDir)aslrules.y;$(InputDir)aslsupport.y;$(InputDir)asltokens.y;$(InputDir)asltypes.y;$(InputDir)aslresources.y" + Outputs="AslCompilerDebug\AslCompilerDebug.y.c;AslCompilerDebug\AslCompilerDebug.y.h" + /> + </FileConfiguration> + </File> + <File + RelativePath="AslCompilerDebug\AslCompilerDebug.y.c" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="" + PreprocessorDefinitions="" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompiler\dtparser.l.c" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + Detect64BitPortabilityProblems="false" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompiler\dtparser.y.c" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompilerDebug\DtParserDebug.l.c" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompilerDebug\DtParserDebug.y.c" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompiler\prparser.l.c" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompiler\prparser.y.c" + > + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompilerDebug\PrParserDebug.l.c" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + </File> + <File + RelativePath=".\AslCompilerDebug\PrParserDebug.y.c" + > + <FileConfiguration + Name="Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" + WarningLevel="3" + /> + </FileConfiguration> + </File> + </Filter> + <Filter + Name="Preprocessor Source" + > + <File + RelativePath="..\..\source\compiler\prexpress.c" + > + </File> + <File + RelativePath="..\..\source\compiler\prmacros.c" + > + </File> + <File + RelativePath="..\..\source\compiler\prscan.c" + > + </File> + <File + RelativePath="..\..\source\compiler\prutils.c" + > + </File> + </Filter> + <Filter + Name="TableCompiler Source" + > + <File + RelativePath="..\..\source\compiler\dtcompile.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dtexpress.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dtfield.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dtio.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dtsubtable.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dttable.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dttable1.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dttable2.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dttemplate.c" + > + </File> + <File + RelativePath="..\..\source\compiler\dtutils.c" + > + </File> </Filter> </Files> <Globals> diff --git a/generate/msvc9/Examples.vcproj b/generate/msvc9/Examples.vcproj index 8d9ad3c27..7749add9f 100755 --- a/generate/msvc9/Examples.vcproj +++ b/generate/msvc9/Examples.vcproj @@ -2,8 +2,9 @@ <VisualStudioProject ProjectType="Visual C++" Version="9.00" - Name="Examples" + Name="Acpica Examples" ProjectGUID="{D086AEFC-5004-4D97-B68B-F884F7C75436}" + RootNamespace="Acpica Examples" TargetFrameworkVersion="0" > <Platforms> @@ -114,7 +115,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy ExamplesDebug.exe to Libraries (DEBUG)" - CommandLine="copy examplesDebug\examples.exe ..\..\libraries\ExamplesDebug.exe
dir ..\..\libraries\examplesDebug.exe
" + CommandLine="copy examplesDebug\examples.exe ..\..\libraries\ExamplesDebug.exe

" /> </Configuration> <Configuration @@ -218,7 +219,7 @@ <Tool Name="VCPostBuildEventTool" Description="Copy Examples.exe to Libraries" - CommandLine="copy examples\examples.exe ..\..\libraries\Examples.exe
dir ..\..\libraries\examples.exe
" + CommandLine="copy examples\examples.exe ..\..\libraries\Examples.exe

" /> </Configuration> </Configurations> @@ -226,7 +227,7 @@ </References> <Files> <Filter - Name="Source" + Name="Acpica Source" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <Filter @@ -254,22 +255,6 @@ </File> </Filter> <Filter - Name="Local" - > - <File - RelativePath="..\..\source\tools\examples\examples.c" - > - </File> - <File - RelativePath="..\..\source\tools\examples\exstubs.c" - > - </File> - <File - RelativePath="..\..\source\tools\examples\extables.c" - > - </File> - </Filter> - <Filter Name="Utilities" > <File @@ -783,7 +768,7 @@ </Filter> </Filter> <Filter - Name="Local Headers" + Name="Examples Headers" Filter="h;hpp;hxx;hm;inl" > <File @@ -791,6 +776,22 @@ > </File> </Filter> + <Filter + Name="Examples Source" + > + <File + RelativePath="..\..\source\tools\examples\examples.c" + > + </File> + <File + RelativePath="..\..\source\tools\examples\exstubs.c" + > + </File> + <File + RelativePath="..\..\source\tools\examples\extables.c" + > + </File> + </Filter> </Files> <Globals> </Globals> diff --git a/generate/unix/acpihelp/Makefile b/generate/unix/acpihelp/Makefile index b0896755c..7f04770d3 100644 --- a/generate/unix/acpihelp/Makefile +++ b/generate/unix/acpihelp/Makefile @@ -28,7 +28,9 @@ HEADERS = \ $(wildcard $(ACPIHELP)/*.h) OBJECTS = \ + $(OBJDIR)/ahaml.o\ $(OBJDIR)/ahamlops.o\ + $(OBJDIR)/ahasl.o\ $(OBJDIR)/ahaslkey.o\ $(OBJDIR)/ahaslops.o\ $(OBJDIR)/ahdecode.o\ diff --git a/source/common/ahtable.c b/source/common/ahtable.c index 59ddc836e..67d1eea1f 100644 --- a/source/common/ahtable.c +++ b/source/common/ahtable.c @@ -123,7 +123,7 @@ const AH_TABLE * AcpiAhGetTableInfo ( char *Signature); -extern const AH_TABLE AcpiSupportedTables[]; +extern const AH_TABLE Gbl_AcpiSupportedTables[]; /******************************************************************************* @@ -145,7 +145,7 @@ AcpiAhGetTableInfo ( const AH_TABLE *Info; - for (Info = AcpiSupportedTables; Info->Signature; Info++) + for (Info = Gbl_AcpiSupportedTables; Info->Signature; Info++) { if (ACPI_COMPARE_NAME (Signature, Info->Signature)) { @@ -161,7 +161,7 @@ AcpiAhGetTableInfo ( * Note: Any tables added here should be duplicated within AcpiDmTableData * in the file common/dmtable.c */ -const AH_TABLE AcpiSupportedTables[] = +const AH_TABLE Gbl_AcpiSupportedTables[] = { {ACPI_SIG_ASF, "Alert Standard Format table"}, {ACPI_SIG_BERT, "Boot Error Record Table"}, diff --git a/source/common/ahuuids.c b/source/common/ahuuids.c index abcdfce92..157a5eef9 100644 --- a/source/common/ahuuids.c +++ b/source/common/ahuuids.c @@ -124,7 +124,7 @@ /* * Table of "known" (ACPI-related) UUIDs */ -const AH_UUID AcpiUuids[] = +const AH_UUID Gbl_AcpiUuids[] = { {"[Controllers]", NULL}, {"GPIO Controller", UUID_GPIO_CONTROLLER}, @@ -184,7 +184,7 @@ AcpiAhMatchUuid ( /* Walk the table of known ACPI-related UUIDs */ - for (Info = AcpiUuids; Info->Description; Info++) + for (Info = Gbl_AcpiUuids; Info->Description; Info++) { /* Null string means desciption is a UUID class */ diff --git a/source/compiler/aslutils.c b/source/compiler/aslutils.c index 588945930..c1033f5b7 100644 --- a/source/compiler/aslutils.c +++ b/source/compiler/aslutils.c @@ -227,7 +227,7 @@ UtDisplaySupportedTables ( /* All ACPI tables with the common table header */ printf ("\n Supported ACPI tables:\n"); - for (TableData = AcpiSupportedTables, i = 1; + for (TableData = Gbl_AcpiSupportedTables, i = 1; TableData->Signature; TableData++, i++) { printf ("%8u) %s %s\n", i, diff --git a/source/components/utilities/utdecode.c b/source/components/utilities/utdecode.c index f27bf0f8d..30c28c4e9 100644 --- a/source/components/utilities/utdecode.c +++ b/source/components/utilities/utdecode.c @@ -341,7 +341,7 @@ AcpiUtGetObjectTypeName ( if (!ObjDesc) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Null Object Descriptor\n")); - return_PTR ("[NULL Object Descriptor]"); + return_STR ("[NULL Object Descriptor]"); } /* These descriptor types share a common area */ @@ -354,7 +354,7 @@ AcpiUtGetObjectTypeName ( ACPI_GET_DESCRIPTOR_TYPE (ObjDesc), AcpiUtGetDescriptorName (ObjDesc), ObjDesc)); - return_PTR ("Invalid object"); + return_STR ("Invalid object"); } return_STR (AcpiUtGetTypeName (ObjDesc->Common.Type)); diff --git a/source/components/utilities/utdelete.c b/source/components/utilities/utdelete.c index 0921b3809..ebe2a784e 100644 --- a/source/components/utilities/utdelete.c +++ b/source/components/utilities/utdelete.c @@ -521,8 +521,9 @@ AcpiUtUpdateRefCount ( } ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, - "Obj %p Type %.2X Refs %.2X [Incremented]\n", - Object, Object->Common.Type, NewCount)); + "Obj %p Type %.2X [%s] Refs %.2X [Incremented]\n", + Object, Object->Common.Type, + AcpiUtGetObjectTypeName (Object), NewCount)); break; case REF_DECREMENT: diff --git a/source/include/acdisasm.h b/source/include/acdisasm.h index 9c01d88bd..3102a9531 100644 --- a/source/include/acdisasm.h +++ b/source/include/acdisasm.h @@ -501,7 +501,7 @@ extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2]; * dmtable and ahtable */ extern const ACPI_DMTABLE_DATA AcpiDmTableData[]; -extern const AH_TABLE AcpiSupportedTables[]; +extern const AH_TABLE Gbl_AcpiSupportedTables[]; UINT8 AcpiDmGenerateChecksum ( diff --git a/source/include/acmacros.h b/source/include/acmacros.h index 0cecfa022..1255be5c5 100644 --- a/source/include/acmacros.h +++ b/source/include/acmacros.h @@ -119,7 +119,7 @@ /* * Extract data using a pointer. Any more than a byte and we - * get into potential aligment issues -- see the STORE macros below. + * get into potential alignment issues -- see the STORE macros below. * Use with care. */ #define ACPI_CAST8(ptr) ACPI_CAST_PTR (UINT8, (ptr)) @@ -136,7 +136,7 @@ #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (UINT64) (val)) /* - * printf() format helper. This macros is a workaround for the difficulties + * printf() format helper. This macro is a workaround for the difficulties * with emitting 64-bit integers and 64-bit pointers with the same code * for both 32-bit and 64-bit hosts. */ @@ -336,7 +336,7 @@ #define ACPI_IS_MISALIGNED(value) (((ACPI_SIZE) value) & (sizeof(ACPI_SIZE)-1)) -/* Generic (power-of-two) rounding */ +/* Generic bit manipulation */ #ifndef ACPI_USE_NATIVE_BIT_FINDER @@ -386,6 +386,8 @@ #endif /* ACPI_USE_NATIVE_BIT_FINDER */ +/* Generic (power-of-two) rounding */ + #define ACPI_ROUND_UP_POWER_OF_TWO_8(a) ((UINT8) \ (((UINT16) 1) << ACPI_FIND_LAST_BIT_8 ((a) - 1))) #define ACPI_ROUND_DOWN_POWER_OF_TWO_8(a) ((UINT8) \ @@ -406,8 +408,8 @@ * Bit positions start at zero. * MASK_BITS_ABOVE creates a mask starting AT the position and above * MASK_BITS_BELOW creates a mask starting one bit BELOW the position - * MASK_BITS_ABOVE/BELOW accpets a bit offset to create a mask - * MASK_BITS_ABOVE/BELOW_32/64 accpets a bit width to create a mask + * MASK_BITS_ABOVE/BELOW accepts a bit offset to create a mask + * MASK_BITS_ABOVE/BELOW_32/64 accepts a bit width to create a mask * Note: The ACPI_INTEGER_BIT_SIZE check is used to bypass compiler * differences with the shift operator */ @@ -525,7 +527,7 @@ */ #ifndef ACPI_NO_ERROR_MESSAGES /* - * Error reporting. Callers module and line number are inserted by AE_INFO, + * Error reporting. The callers module and line number are inserted by AE_INFO, * the plist contains a set of parens to allow variable-length lists. * These macros are used for both the debug and non-debug versions of the code. */ diff --git a/source/tools/acpihelp/acpihelp.h b/source/tools/acpihelp/acpihelp.h index 939654d3a..493c2dba7 100644 --- a/source/tools/acpihelp/acpihelp.h +++ b/source/tools/acpihelp/acpihelp.h @@ -128,6 +128,50 @@ #endif +/* + * Global variables. Defined in ahmain.c only, externed in all other files + */ +#undef ACPI_GLOBAL +#undef ACPI_INIT_GLOBAL + +#ifdef DEFINE_AHELP_GLOBALS +#define ACPI_GLOBAL(type,name) \ + extern type name; \ + type name + +#define ACPI_INIT_GLOBAL(type,name,value) \ + type name=value + +#else +#ifndef ACPI_GLOBAL +#define ACPI_GLOBAL(type,name) \ + extern type name +#endif + +#ifndef ACPI_INIT_GLOBAL +#define ACPI_INIT_GLOBAL(type,name,value) \ + extern type name +#endif +#endif + + +#define AH_BUFFER_LENGTH 128 +#define AH_LINE_BUFFER_LENGTH 512 +#define AH_MAX_ASL_LINE_LENGTH 70 +#define AH_MAX_AML_LINE_LENGTH 100 + +ACPI_GLOBAL (char, Gbl_Buffer[AH_BUFFER_LENGTH]); +ACPI_GLOBAL (char, Gbl_LineBuffer[AH_LINE_BUFFER_LENGTH]); + + +#define AH_DISPLAY_EXCEPTION(Status, Name) \ + printf ("%.4X: %s\n", Status, Name) + +#define AH_DISPLAY_EXCEPTION_TEXT(Status, Exception) \ + printf ("%.4X: %-28s (%s)\n", Status,\ + Exception->Name, Exception->Description) + + typedef enum { AH_DECODE_DEFAULT = 0, @@ -147,10 +191,6 @@ typedef enum } AH_OPTION_TYPES; -#define AH_MAX_ASL_LINE_LENGTH 70 -#define AH_MAX_AML_LINE_LENGTH 100 - - typedef struct ah_aml_opcode { UINT16 OpcodeRangeStart; @@ -194,14 +234,17 @@ typedef struct ah_directive_info } AH_DIRECTIVE_INFO; -extern const AH_AML_OPCODE AmlOpcodeInfo[]; -extern const AH_AML_TYPE AmlTypesInfo[]; -extern const AH_ASL_OPERATOR AslOperatorInfo[]; -extern const AH_ASL_KEYWORD AslKeywordInfo[]; -extern const AH_UUID AcpiUuids[]; -extern const AH_DIRECTIVE_INFO PreprocessorDirectives[]; -extern const AH_TABLE AcpiSupportedTables[]; -extern BOOLEAN AhDisplayAll; + +/* Externals for various data tables */ + +extern const AH_AML_OPCODE Gbl_AmlOpcodeInfo[]; +extern const AH_AML_TYPE Gbl_AmlTypesInfo[]; +extern const AH_ASL_OPERATOR Gbl_AslOperatorInfo[]; +extern const AH_ASL_KEYWORD Gbl_AslKeywordInfo[]; +extern const AH_UUID Gbl_AcpiUuids[]; +extern const AH_DIRECTIVE_INFO Gbl_PreprocessorDirectives[]; +extern const AH_TABLE Gbl_AcpiSupportedTables[]; + void AhFindAmlOpcode ( @@ -255,4 +298,11 @@ void AhDisplayDirectives ( void); +void +AhPrintOneField ( + UINT32 Indent, + UINT32 CurrentPosition, + UINT32 MaxPosition, + const char *Field); + #endif /* __ACPIHELP_H */ diff --git a/source/tools/acpihelp/ahaml.c b/source/tools/acpihelp/ahaml.c new file mode 100644 index 000000000..f6a6a555b --- /dev/null +++ b/source/tools/acpihelp/ahaml.c @@ -0,0 +1,421 @@ +/****************************************************************************** + * + * Module Name: ahaml - AML opcode decoding for acpihelp utility + * + *****************************************************************************/ + +/****************************************************************************** + * + * 1. Copyright Notice + * + * Some or all of this work - Copyright (c) 1999 - 2016, Intel Corp. + * All rights reserved. + * + * 2. License + * + * 2.1. This is your license from Intel Corp. under its intellectual property + * rights. You may have additional license terms from the party that provided + * you this software, covering your right to use that party's intellectual + * property rights. + * + * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a + * copy of the source code appearing in this file ("Covered Code") an + * irrevocable, perpetual, worldwide license under Intel's copyrights in the + * base code distributed originally by Intel ("Original Intel Code") to copy, + * make derivatives, distribute, use and display any portion of the Covered + * Code in any form, with the right to sublicense such rights; and + * + * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent + * license (with the right to sublicense), under only those claims of Intel + * patents that are infringed by the Original Intel Code, to make, use, sell, + * offer to sell, and import the Covered Code and derivative works thereof + * solely to the minimum extent necessary to exercise the above copyright + * license, and in no event shall the patent license extend to any additions + * to or modifications of the Original Intel Code. No other license or right + * is granted directly or by implication, estoppel or otherwise; + * + * The above copyright and patent license is granted only if the following + * conditions are met: + * + * 3. Conditions + * + * 3.1. Redistribution of Source with Rights to Further Distribute Source. + * Redistribution of source code of any substantial portion of the Covered + * Code or modification with rights to further distribute source must include + * the above Copyright Notice, the above License, this list of Conditions, + * and the following Disclaimer and Export Compliance provision. In addition, + * Licensee must cause all Covered Code to which Licensee contributes to + * contain a file documenting the changes Licensee made to create that Covered + * Code and the date of any change. Licensee must include in that file the + * documentation of any changes made by any predecessor Licensee. Licensee + * must include a prominent statement that the modification is derived, + * directly or indirectly, from Original Intel Code. + * + * 3.2. Redistribution of Source with no Rights to Further Distribute Source. + * Redistribution of source code of any substantial portion of the Covered + * Code or modification without rights to further distribute source must + * include the following Disclaimer and Export Compliance provision in the + * documentation and/or other materials provided with distribution. In + * addition, Licensee may not authorize further sublicense of source of any + * portion of the Covered Code, and must include terms to the effect that the + * license from Licensee to its licensee is limited to the intellectual + * property embodied in the software Licensee provides to its licensee, and + * not to intellectual property embodied in modifications its licensee may + * make. + * + * 3.3. Redistribution of Executable. Redistribution in executable form of any + * substantial portion of the Covered Code or modification must reproduce the + * above Copyright Notice, and the following Disclaimer and Export Compliance + * provision in the documentation and/or other materials provided with the + * distribution. + * + * 3.4. Intel retains all right, title, and interest in and to the Original + * Intel Code. + * + * 3.5. Neither the name Intel nor any other trademark owned or controlled by + * Intel shall be used in advertising or otherwise to promote the sale, use or + * other dealings in products derived from or relating to the Covered Code + * without prior written authorization from Intel. + * + * 4. Disclaimer and Export Compliance + * + * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED + * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE + * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, + * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY + * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY + * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A + * PARTICULAR PURPOSE. + * + * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES + * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR + * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, + * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY + * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL + * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS + * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY + * LIMITED REMEDY. + * + * 4.3. Licensee shall not export, either directly or indirectly, any of this + * software or system incorporating such software without first obtaining any + * required license or other approval from the U. S. Department of Commerce or + * any other agency or department of the United States Government. In the + * event Licensee exports any such software from the United States or + * re-exports any such software from a foreign destination, Licensee shall + * ensure that the distribution and export/re-export of the software is in + * compliance with all laws, regulations, orders, or other restrictions of the + * U.S. Export Administration Regulations. Licensee agrees that neither it nor + * any of its subsidiaries will export/re-export any technical data, process, + * software, or service, directly or indirectly, to any country for which the + * United States government or any agency thereof requires an export license, + * other governmental approval, or letter of assurance, without first obtaining + * such license, approval or letter. + * + *****************************************************************************/ + +#include "acpihelp.h" + + +/* Local prototypes */ + +static void +AhDisplayAmlOpcode ( + const AH_AML_OPCODE *Op); + +static void +AhDisplayAmlType ( + const AH_AML_TYPE *Op); + + +/******************************************************************************* + * + * FUNCTION: AhFindAmlOpcode (entry point for AML opcode name search) + * + * PARAMETERS: Name - Name or prefix for an AML opcode. + * NULL means "find all" + * + * RETURN: None + * + * DESCRIPTION: Find all AML opcodes that match the input Name or name + * prefix. + * + ******************************************************************************/ + +void +AhFindAmlOpcode ( + char *Name) +{ + const AH_AML_OPCODE *Op; + BOOLEAN Found = FALSE; + + + AcpiUtStrupr (Name); + + /* Find/display all opcode names that match the input name prefix */ + + for (Op = Gbl_AmlOpcodeInfo; Op->OpcodeString; Op++) + { + if (!Op->OpcodeName) /* Unused opcodes */ + { + continue; + } + + if (!Name || (Name[0] == '*')) + { + AhDisplayAmlOpcode (Op); + Found = TRUE; + continue; + } + + /* Upper case the opcode name before substring compare */ + + strcpy (Gbl_Buffer, Op->OpcodeName); + AcpiUtStrupr (Gbl_Buffer); + + if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) + { + AhDisplayAmlOpcode (Op); + Found = TRUE; + } + } + + if (!Found) + { + printf ("%s, no matching AML operators\n", Name); + } +} + + +/******************************************************************************* + * + * FUNCTION: AhDecodeAmlOpcode (entry point for AML opcode search) + * + * PARAMETERS: OpcodeString - String version of AML opcode + * + * RETURN: None + * + * DESCRIPTION: Display information about the input AML opcode + * + ******************************************************************************/ + +void +AhDecodeAmlOpcode ( + char *OpcodeString) +{ + const AH_AML_OPCODE *Op; + UINT32 Opcode; + UINT8 Prefix; + + + if (!OpcodeString) + { + AhFindAmlOpcode (NULL); + return; + } + + Opcode = strtoul (OpcodeString, NULL, 16); + if (Opcode > ACPI_UINT16_MAX) + { + printf ("Invalid opcode (more than 16 bits)\n"); + return; + } + + /* Only valid opcode extension is 0x5B */ + + Prefix = (Opcode & 0x0000FF00) >> 8; + if (Prefix && (Prefix != 0x5B)) + { + printf ("Invalid opcode (invalid extension prefix 0x%X)\n", + Prefix); + return; + } + + /* Find/Display the opcode. May fall within an opcode range */ + + for (Op = Gbl_AmlOpcodeInfo; Op->OpcodeString; Op++) + { + if ((Opcode >= Op->OpcodeRangeStart) && + (Opcode <= Op->OpcodeRangeEnd)) + { + AhDisplayAmlOpcode (Op); + } + } +} + + +/******************************************************************************* + * + * FUNCTION: AhDisplayAmlOpcode + * + * PARAMETERS: Op - An opcode info struct + * + * RETURN: None + * + * DESCRIPTION: Display the contents of an AML opcode information struct + * + ******************************************************************************/ + +static void +AhDisplayAmlOpcode ( + const AH_AML_OPCODE *Op) +{ + + if (!Op->OpcodeName) + { + printf ("%18s: Opcode=%-9s\n", "Reserved opcode", Op->OpcodeString); + return; + } + + /* Opcode name and value(s) */ + + printf ("%18s: Opcode=%-9s Type (%s)", + Op->OpcodeName, Op->OpcodeString, Op->Type); + + /* Optional fixed/static arguments */ + + if (Op->FixedArguments) + { + printf (" FixedArgs ("); + AhPrintOneField (37, 36 + 7 + strlen (Op->Type) + 12, + AH_MAX_AML_LINE_LENGTH, Op->FixedArguments); + printf (")"); + } + + /* Optional variable-length argument list */ + + if (Op->VariableArguments) + { + if (Op->FixedArguments) + { + printf ("\n%*s", 36, " "); + } + printf (" VariableArgs ("); + AhPrintOneField (37, 15, AH_MAX_AML_LINE_LENGTH, Op->VariableArguments); + printf (")"); + } + printf ("\n"); + + /* Grammar specification */ + + if (Op->Grammar) + { + AhPrintOneField (37, 0, AH_MAX_AML_LINE_LENGTH, Op->Grammar); + printf ("\n"); + } +} + + +/******************************************************************************* + * + * FUNCTION: AhFindAmlTypes (entry point for AML grammar keyword search) + * + * PARAMETERS: Name - Name or prefix for an AML grammar element. + * NULL means "find all" + * + * RETURN: None + * + * DESCRIPTION: Find all AML grammar keywords that match the input Name or name + * prefix. + * + ******************************************************************************/ + +void +AhFindAmlTypes ( + char *Name) +{ + const AH_AML_TYPE *Keyword; + BOOLEAN Found = FALSE; + + + AcpiUtStrupr (Name); + + for (Keyword = Gbl_AmlTypesInfo; Keyword->Name; Keyword++) + { + if (!Name) + { + printf (" %s\n", Keyword->Name); + Found = TRUE; + continue; + } + + if (*Name == '*') + { + AhDisplayAmlType (Keyword); + Found = TRUE; + continue; + } + + /* Upper case the operator name before substring compare */ + + strcpy (Gbl_Buffer, Keyword->Name); + AcpiUtStrupr (Gbl_Buffer); + + if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) + { + AhDisplayAmlType (Keyword); + Found = TRUE; + } + } + + if (!Found) + { + printf ("%s, no matching AML grammar type\n", Name); + } +} + + +/******************************************************************************* + * + * FUNCTION: AhDisplayAmlType + * + * PARAMETERS: Op - Pointer to AML grammar info + * + * RETURN: None + * + * DESCRIPTION: Format and display info for an AML grammar element. + * + ******************************************************************************/ + +static void +AhDisplayAmlType ( + const AH_AML_TYPE *Op) +{ + char *Description; + + + Description = Op->Description; + printf ("%4s", " "); /* Primary indent */ + + /* Emit the entire description string */ + + while (*Description) + { + /* Description can be multiple lines, must indent each */ + + while (*Description != '\n') + { + printf ("%c", *Description); + Description++; + } + + printf ("\n"); + Description++; + + /* Do indent */ + + if (*Description) + { + printf ("%8s", " "); /* Secondary indent */ + + /* Index extra for a comment */ + + if ((Description[0] == '/') && + (Description[1] == '/')) + { + printf ("%4s", " "); + } + } + } + + printf ("\n"); +} diff --git a/source/tools/acpihelp/ahamlops.c b/source/tools/acpihelp/ahamlops.c index 79b596c67..799c2d353 100644 --- a/source/tools/acpihelp/ahamlops.c +++ b/source/tools/acpihelp/ahamlops.c @@ -120,7 +120,7 @@ * AML opcodes with related syntax and grammar information. * This table was extracted from the ACPI specification. */ -const AH_AML_OPCODE AmlOpcodeInfo[] = +const AH_AML_OPCODE Gbl_AmlOpcodeInfo[] = { {0x00, 0x00, "0x00", "ZeroOp", "DataObject", NULL, NULL, NULL}, diff --git a/source/tools/acpihelp/ahasl.c b/source/tools/acpihelp/ahasl.c new file mode 100644 index 000000000..83777074a --- /dev/null +++ b/source/tools/acpihelp/ahasl.c @@ -0,0 +1,391 @@ +/****************************************************************************** + * + * Module Name: ahasl - ASL operator decoding for acpihelp utility + * + *****************************************************************************/ + +/****************************************************************************** + * + * 1. Copyright Notice + * + * Some or all of this work - Copyright (c) 1999 - 2016, Intel Corp. + * All rights reserved. + * + * 2. License + * + * 2.1. This is your license from Intel Corp. under its intellectual property + * rights. You may have additional license terms from the party that provided + * you this software, covering your right to use that party's intellectual + * property rights. + * + * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a + * copy of the source code appearing in this file ("Covered Code") an + * irrevocable, perpetual, worldwide license under Intel's copyrights in the + * base code distributed originally by Intel ("Original Intel Code") to copy, + * make derivatives, distribute, use and display any portion of the Covered + * Code in any form, with the right to sublicense such rights; and + * + * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent + * license (with the right to sublicense), under only those claims of Intel + * patents that are infringed by the Original Intel Code, to make, use, sell, + * offer to sell, and import the Covered Code and derivative works thereof + * solely to the minimum extent necessary to exercise the above copyright + * license, and in no event shall the patent license extend to any additions + * to or modifications of the Original Intel Code. No other license or right + * is granted directly or by implication, estoppel or otherwise; + * + * The above copyright and patent license is granted only if the following + * conditions are met: + * + * 3. Conditions + * + * 3.1. Redistribution of Source with Rights to Further Distribute Source. + * Redistribution of source code of any substantial portion of the Covered + * Code or modification with rights to further distribute source must include + * the above Copyright Notice, the above License, this list of Conditions, + * and the following Disclaimer and Export Compliance provision. In addition, + * Licensee must cause all Covered Code to which Licensee contributes to + * contain a file documenting the changes Licensee made to create that Covered + * Code and the date of any change. Licensee must include in that file the + * documentation of any changes made by any predecessor Licensee. Licensee + * must include a prominent statement that the modification is derived, + * directly or indirectly, from Original Intel Code. + * + * 3.2. Redistribution of Source with no Rights to Further Distribute Source. + * Redistribution of source code of any substantial portion of the Covered + * Code or modification without rights to further distribute source must + * include the following Disclaimer and Export Compliance provision in the + * documentation and/or other materials provided with distribution. In + * addition, Licensee may not authorize further sublicense of source of any + * portion of the Covered Code, and must include terms to the effect that the + * license from Licensee to its licensee is limited to the intellectual + * property embodied in the software Licensee provides to its licensee, and + * not to intellectual property embodied in modifications its licensee may + * make. + * + * 3.3. Redistribution of Executable. Redistribution in executable form of any + * substantial portion of the Covered Code or modification must reproduce the + * above Copyright Notice, and the following Disclaimer and Export Compliance + * provision in the documentation and/or other materials provided with the + * distribution. + * + * 3.4. Intel retains all right, title, and interest in and to the Original + * Intel Code. + * + * 3.5. Neither the name Intel nor any other trademark owned or controlled by + * Intel shall be used in advertising or otherwise to promote the sale, use or + * other dealings in products derived from or relating to the Covered Code + * without prior written authorization from Intel. + * + * 4. Disclaimer and Export Compliance + * + * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED + * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE + * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, + * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY + * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY + * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A + * PARTICULAR PURPOSE. + * + * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES + * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR + * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, + * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY + * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL + * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS + * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY + * LIMITED REMEDY. + * + * 4.3. Licensee shall not export, either directly or indirectly, any of this + * software or system incorporating such software without first obtaining any + * required license or other approval from the U. S. Department of Commerce or + * any other agency or department of the United States Government. In the + * event Licensee exports any such software from the United States or + * re-exports any such software from a foreign destination, Licensee shall + * ensure that the distribution and export/re-export of the software is in + * compliance with all laws, regulations, orders, or other restrictions of the + * U.S. Export Administration Regulations. Licensee agrees that neither it nor + * any of its subsidiaries will export/re-export any technical data, process, + * software, or service, directly or indirectly, to any country for which the + * United States government or any agency thereof requires an export license, + * other governmental approval, or letter of assurance, without first obtaining + * such license, approval or letter. + * + *****************************************************************************/ + +#include "acpihelp.h" + + +/* Local prototypes */ + +static void +AhDisplayAslOperator ( + const AH_ASL_OPERATOR *Op); + +static void +AhDisplayOperatorKeywords ( + const AH_ASL_OPERATOR *Op); + +static void +AhDisplayAslKeyword ( + const AH_ASL_KEYWORD *Op); + + +/******************************************************************************* + * + * FUNCTION: AhFindAslKeywords (entry point for ASL keyword search) + * + * PARAMETERS: Name - Name or prefix for an ASL keyword. + * NULL means "find all" + * + * RETURN: None + * + * DESCRIPTION: Find all ASL keywords that match the input Name or name + * prefix. + * + ******************************************************************************/ + +void +AhFindAslKeywords ( + char *Name) +{ + const AH_ASL_KEYWORD *Keyword; + BOOLEAN Found = FALSE; + + + AcpiUtStrupr (Name); + + for (Keyword = Gbl_AslKeywordInfo; Keyword->Name; Keyword++) + { + if (!Name || (Name[0] == '*')) + { + AhDisplayAslKeyword (Keyword); + Found = TRUE; + continue; + } + + /* Upper case the operator name before substring compare */ + + strcpy (Gbl_Buffer, Keyword->Name); + AcpiUtStrupr (Gbl_Buffer); + + if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) + { + AhDisplayAslKeyword (Keyword); + Found = TRUE; + } + } + + if (!Found) + { + printf ("%s, no matching ASL keywords\n", Name); + } +} + + +/******************************************************************************* + * + * FUNCTION: AhDisplayAslKeyword + * + * PARAMETERS: Op - Pointer to ASL keyword with syntax info + * + * RETURN: None + * + * DESCRIPTION: Format and display syntax info for an ASL keyword. Splits + * long lines appropriately for reading. + * + ******************************************************************************/ + +static void +AhDisplayAslKeyword ( + const AH_ASL_KEYWORD *Op) +{ + + /* ASL keyword name and description */ + + printf ("%22s: %s\n", Op->Name, Op->Description); + if (!Op->KeywordList) + { + return; + } + + /* List of actual keywords */ + + AhPrintOneField (24, 0, AH_MAX_ASL_LINE_LENGTH, Op->KeywordList); + printf ("\n"); +} + + +/******************************************************************************* + * + * FUNCTION: AhFindAslAndAmlOperators + * + * PARAMETERS: Name - Name or prefix for an ASL operator. + * NULL means "find all" + * + * RETURN: None + * + * DESCRIPTION: Find all ASL operators that match the input Name or name + * prefix. Also displays the AML information if only one entry + * matches. + * + ******************************************************************************/ + +void +AhFindAslAndAmlOperators ( + char *Name) +{ + UINT32 MatchCount; + + + MatchCount = AhFindAslOperators (Name); + if (MatchCount == 1) + { + AhFindAmlOpcode (Name); + } +} + + +/******************************************************************************* + * + * FUNCTION: AhFindAslOperators (entry point for ASL operator search) + * + * PARAMETERS: Name - Name or prefix for an ASL operator. + * NULL means "find all" + * + * RETURN: Number of operators that matched the name prefix. + * + * DESCRIPTION: Find all ASL operators that match the input Name or name + * prefix. + * + ******************************************************************************/ + +UINT32 +AhFindAslOperators ( + char *Name) +{ + const AH_ASL_OPERATOR *Operator; + BOOLEAN MatchCount = 0; + + + AcpiUtStrupr (Name); + + /* Find/display all names that match the input name prefix */ + + for (Operator = Gbl_AslOperatorInfo; Operator->Name; Operator++) + { + if (!Name || (Name[0] == '*')) + { + AhDisplayAslOperator (Operator); + MatchCount++; + continue; + } + + /* Upper case the operator name before substring compare */ + + strcpy (Gbl_Buffer, Operator->Name); + AcpiUtStrupr (Gbl_Buffer); + + if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) + { + AhDisplayAslOperator (Operator); + MatchCount++; + } + } + + if (!MatchCount) + { + printf ("%s, no matching ASL operators\n", Name); + } + + return (MatchCount); +} + + +/******************************************************************************* + * + * FUNCTION: AhDisplayAslOperator + * + * PARAMETERS: Op - Pointer to ASL operator with syntax info + * + * RETURN: None + * + * DESCRIPTION: Format and display syntax info for an ASL operator. Splits + * long lines appropriately for reading. + * + ******************************************************************************/ + +static void +AhDisplayAslOperator ( + const AH_ASL_OPERATOR *Op) +{ + + /* ASL operator name and description */ + + printf ("%16s: %s\n", Op->Name, Op->Description); + if (!Op->Syntax) + { + return; + } + + /* Syntax for the operator */ + + AhPrintOneField (18, 0, AH_MAX_ASL_LINE_LENGTH, Op->Syntax); + printf ("\n"); + + AhDisplayOperatorKeywords (Op); + printf ("\n"); +} + + +/******************************************************************************* + * + * FUNCTION: AhDisplayOperatorKeywords + * + * PARAMETERS: Op - Pointer to ASL keyword with syntax info + * + * RETURN: None + * + * DESCRIPTION: Display any/all keywords that are associated with the ASL + * operator. + * + ******************************************************************************/ + +static void +AhDisplayOperatorKeywords ( + const AH_ASL_OPERATOR *Op) +{ + char *Token; + char *Separators = "(){}, "; + BOOLEAN FirstKeyword = TRUE; + + + if (!Op || !Op->Syntax) + { + return; + } + + /* + * Find all parameters that have the word "keyword" within, and then + * display the info about that keyword + */ + strcpy (Gbl_LineBuffer, Op->Syntax); + Token = strtok (Gbl_LineBuffer, Separators); + while (Token) + { + if (strstr (Token, "Keyword")) + { + if (FirstKeyword) + { + printf ("\n"); + FirstKeyword = FALSE; + } + + /* Found a keyword, display keyword information */ + + AhFindAslKeywords (Token); + } + + Token = strtok (NULL, Separators); + } +} diff --git a/source/tools/acpihelp/ahaslkey.c b/source/tools/acpihelp/ahaslkey.c index fb2a41f9e..71d0b6bc0 100644 --- a/source/tools/acpihelp/ahaslkey.c +++ b/source/tools/acpihelp/ahaslkey.c @@ -120,7 +120,7 @@ * ASL Keyword types and associated actual keywords. * This table was extracted from the ACPI specification. */ -const AH_ASL_KEYWORD AslKeywordInfo[] = +const AH_ASL_KEYWORD Gbl_AslKeywordInfo[] = { {"AccessAttribKeyword", "Serial Bus Attributes (with legacy SMBus aliases)", ":= AttribQuick (SMBusQuick) | AttribSendReceive (SMBusSendReceive) | " @@ -223,7 +223,7 @@ const AH_ASL_KEYWORD AslKeywordInfo[] = /* Preprocessor directives */ -const AH_DIRECTIVE_INFO PreprocessorDirectives[] = +const AH_DIRECTIVE_INFO Gbl_PreprocessorDirectives[] = { {"#include \"Filename\"", "Standard include of an ASCII ASL source code file"}, {"#include <Filename>", "Alternate syntax for #include, alternate search path"}, diff --git a/source/tools/acpihelp/ahaslops.c b/source/tools/acpihelp/ahaslops.c index 54e8fe946..e4d8585e2 100644 --- a/source/tools/acpihelp/ahaslops.c +++ b/source/tools/acpihelp/ahaslops.c @@ -120,7 +120,7 @@ * Note: All tokens require a space separator. * Long lines are automatically split during output. */ -const AH_ASL_OPERATOR AslOperatorInfo[] = +const AH_ASL_OPERATOR Gbl_AslOperatorInfo[] = { {"AccessAs", "(AccessType, AccessAttribKeyword | " "ExtendedAttribKeyword (AccessLength))", diff --git a/source/tools/acpihelp/ahdecode.c b/source/tools/acpihelp/ahdecode.c index f455f3601..797f43bc6 100644 --- a/source/tools/acpihelp/ahdecode.c +++ b/source/tools/acpihelp/ahdecode.c @@ -1,6 +1,6 @@ /****************************************************************************** * - * Module Name: ahdecode - Operator/Opcode decoding for acpihelp utility + * Module Name: ahdecode - Miscellaneous decoding for acpihelp utility * *****************************************************************************/ @@ -120,19 +120,6 @@ #include "acpredef.h" -#define AH_DISPLAY_EXCEPTION(Status, Name) \ - printf ("%.4X: %s\n", Status, Name) - -#define AH_DISPLAY_EXCEPTION_TEXT(Status, Exception) \ - printf ("%.4X: %-28s (%s)\n", Status, Exception->Name, Exception->Description) - -#define BUFFER_LENGTH 128 -#define LINE_BUFFER_LENGTH 512 - -static char Gbl_Buffer[BUFFER_LENGTH]; -static char Gbl_LineBuffer[LINE_BUFFER_LENGTH]; - - /* Local prototypes */ static BOOLEAN @@ -148,32 +135,77 @@ static void AhDisplayResourceName ( const ACPI_PREDEFINED_INFO *ThisName); -static void -AhDisplayAmlOpcode ( - const AH_AML_OPCODE *Op); - -static void -AhDisplayAmlType ( - const AH_AML_TYPE *Op); - -static void -AhDisplayAslOperator ( - const AH_ASL_OPERATOR *Op); - -static void -AhDisplayOperatorKeywords ( - const AH_ASL_OPERATOR *Op); -static void -AhDisplayAslKeyword ( - const AH_ASL_KEYWORD *Op); +/******************************************************************************* + * + * FUNCTION: AhPrintOneField + * + * PARAMETERS: Indent - Indent length for new line(s) + * CurrentPosition - Position on current line + * MaxPosition - Max allowed line length + * Field - Data to output + * + * RETURN: Line position after field is written + * + * DESCRIPTION: Split long lines appropriately for ease of reading. + * + ******************************************************************************/ -static void +void AhPrintOneField ( UINT32 Indent, UINT32 CurrentPosition, UINT32 MaxPosition, - const char *Field); + const char *Field) +{ + UINT32 Position; + UINT32 TokenLength; + const char *This; + const char *Next; + const char *Last; + + + This = Field; + Position = CurrentPosition; + + if (Position == 0) + { + printf ("%*s", (int) Indent, " "); + Position = Indent; + } + + Last = This + strlen (This); + while ((Next = strpbrk (This, " "))) + { + TokenLength = Next - This; + Position += TokenLength; + + /* Split long lines */ + + if (Position > MaxPosition) + { + printf ("\n%*s", (int) Indent, " "); + Position = TokenLength; + } + + printf ("%.*s ", (int) TokenLength, This); + This = Next + 1; + } + + /* Handle last token on the input line */ + + TokenLength = Last - This; + if (TokenLength > 0) + { + Position += TokenLength; + if (Position > MaxPosition) + { + printf ("\n%*s", (int) Indent, " "); + } + + printf ("%s", This); + } +} /******************************************************************************* @@ -197,7 +229,7 @@ AhDisplayDirectives ( printf ("iASL Preprocessor Directives\n\n"); - for (Info = PreprocessorDirectives; Info->Name; Info++) + for (Info = Gbl_PreprocessorDirectives; Info->Name; Info++) { printf (" %-36s : %s\n", Info->Name, Info->Description); } @@ -401,632 +433,6 @@ AhDisplayResourceName ( /******************************************************************************* * - * FUNCTION: AhFindAmlOpcode (entry point for AML opcode name search) - * - * PARAMETERS: Name - Name or prefix for an AML opcode. - * NULL means "find all" - * - * RETURN: None - * - * DESCRIPTION: Find all AML opcodes that match the input Name or name - * prefix. - * - ******************************************************************************/ - -void -AhFindAmlOpcode ( - char *Name) -{ - const AH_AML_OPCODE *Op; - BOOLEAN Found = FALSE; - - - AcpiUtStrupr (Name); - - /* Find/display all opcode names that match the input name prefix */ - - for (Op = AmlOpcodeInfo; Op->OpcodeString; Op++) - { - if (!Op->OpcodeName) /* Unused opcodes */ - { - continue; - } - - if (!Name || (Name[0] == '*')) - { - AhDisplayAmlOpcode (Op); - Found = TRUE; - continue; - } - - /* Upper case the opcode name before substring compare */ - - strcpy (Gbl_Buffer, Op->OpcodeName); - AcpiUtStrupr (Gbl_Buffer); - - if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) - { - AhDisplayAmlOpcode (Op); - Found = TRUE; - } - } - - if (!Found) - { - printf ("%s, no matching AML operators\n", Name); - } -} - - -/******************************************************************************* - * - * FUNCTION: AhDecodeAmlOpcode (entry point for AML opcode search) - * - * PARAMETERS: OpcodeString - String version of AML opcode - * - * RETURN: None - * - * DESCRIPTION: Display information about the input AML opcode - * - ******************************************************************************/ - -void -AhDecodeAmlOpcode ( - char *OpcodeString) -{ - const AH_AML_OPCODE *Op; - UINT32 Opcode; - UINT8 Prefix; - - - if (!OpcodeString) - { - AhFindAmlOpcode (NULL); - return; - } - - Opcode = strtoul (OpcodeString, NULL, 16); - if (Opcode > ACPI_UINT16_MAX) - { - printf ("Invalid opcode (more than 16 bits)\n"); - return; - } - - /* Only valid opcode extension is 0x5B */ - - Prefix = (Opcode & 0x0000FF00) >> 8; - if (Prefix && (Prefix != 0x5B)) - { - printf ("Invalid opcode (invalid extension prefix 0x%X)\n", - Prefix); - return; - } - - /* Find/Display the opcode. May fall within an opcode range */ - - for (Op = AmlOpcodeInfo; Op->OpcodeString; Op++) - { - if ((Opcode >= Op->OpcodeRangeStart) && - (Opcode <= Op->OpcodeRangeEnd)) - { - AhDisplayAmlOpcode (Op); - } - } -} - - -/******************************************************************************* - * - * FUNCTION: AhDisplayAmlOpcode - * - * PARAMETERS: Op - An opcode info struct - * - * RETURN: None - * - * DESCRIPTION: Display the contents of an AML opcode information struct - * - ******************************************************************************/ - -static void -AhDisplayAmlOpcode ( - const AH_AML_OPCODE *Op) -{ - - if (!Op->OpcodeName) - { - printf ("%18s: Opcode=%-9s\n", "Reserved opcode", Op->OpcodeString); - return; - } - - /* Opcode name and value(s) */ - - printf ("%18s: Opcode=%-9s Type (%s)", - Op->OpcodeName, Op->OpcodeString, Op->Type); - - /* Optional fixed/static arguments */ - - if (Op->FixedArguments) - { - printf (" FixedArgs ("); - AhPrintOneField (37, 36 + 7 + strlen (Op->Type) + 12, - AH_MAX_AML_LINE_LENGTH, Op->FixedArguments); - printf (")"); - } - - /* Optional variable-length argument list */ - - if (Op->VariableArguments) - { - if (Op->FixedArguments) - { - printf ("\n%*s", 36, " "); - } - printf (" VariableArgs ("); - AhPrintOneField (37, 15, AH_MAX_AML_LINE_LENGTH, Op->VariableArguments); - printf (")"); - } - printf ("\n"); - - /* Grammar specification */ - - if (Op->Grammar) - { - AhPrintOneField (37, 0, AH_MAX_AML_LINE_LENGTH, Op->Grammar); - printf ("\n"); - } -} - - -/******************************************************************************* - * - * FUNCTION: AhFindAmlTypes (entry point for AML grammar keyword search) - * - * PARAMETERS: Name - Name or prefix for an AML grammar element. - * NULL means "find all" - * - * RETURN: None - * - * DESCRIPTION: Find all AML grammar keywords that match the input Name or name - * prefix. - * - ******************************************************************************/ - -void -AhFindAmlTypes ( - char *Name) -{ - const AH_AML_TYPE *Keyword; - BOOLEAN Found = FALSE; - - - AcpiUtStrupr (Name); - - for (Keyword = AmlTypesInfo; Keyword->Name; Keyword++) - { - if (!Name) - { - printf (" %s\n", Keyword->Name); - Found = TRUE; - continue; - } - - if (*Name == '*') - { - AhDisplayAmlType (Keyword); - Found = TRUE; - continue; - } - - /* Upper case the operator name before substring compare */ - - strcpy (Gbl_Buffer, Keyword->Name); - AcpiUtStrupr (Gbl_Buffer); - - if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) - { - AhDisplayAmlType (Keyword); - Found = TRUE; - } - } - - if (!Found) - { - printf ("%s, no matching AML grammar type\n", Name); - } -} - - -/******************************************************************************* - * - * FUNCTION: AhDisplayAmlType - * - * PARAMETERS: Op - Pointer to AML grammar info - * - * RETURN: None - * - * DESCRIPTION: Format and display info for an AML grammar element. - * - ******************************************************************************/ - -static void -AhDisplayAmlType ( - const AH_AML_TYPE *Op) -{ - char *Description; - - - Description = Op->Description; - printf ("%4s", " "); /* Primary indent */ - - /* Emit the entire description string */ - - while (*Description) - { - /* Description can be multiple lines, must indent each */ - - while (*Description != '\n') - { - printf ("%c", *Description); - Description++; - } - - printf ("\n"); - Description++; - - /* Do indent */ - - if (*Description) - { - printf ("%8s", " "); /* Secondary indent */ - - /* Index extra for a comment */ - - if ((Description[0] == '/') && - (Description[1] == '/')) - { - printf ("%4s", " "); - } - } - } - - printf ("\n"); -} - - -/******************************************************************************* - * - * FUNCTION: AhFindAslKeywords (entry point for ASL keyword search) - * - * PARAMETERS: Name - Name or prefix for an ASL keyword. - * NULL means "find all" - * - * RETURN: None - * - * DESCRIPTION: Find all ASL keywords that match the input Name or name - * prefix. - * - ******************************************************************************/ - -void -AhFindAslKeywords ( - char *Name) -{ - const AH_ASL_KEYWORD *Keyword; - BOOLEAN Found = FALSE; - - - AcpiUtStrupr (Name); - - for (Keyword = AslKeywordInfo; Keyword->Name; Keyword++) - { - if (!Name || (Name[0] == '*')) - { - AhDisplayAslKeyword (Keyword); - Found = TRUE; - continue; - } - - /* Upper case the operator name before substring compare */ - - strcpy (Gbl_Buffer, Keyword->Name); - AcpiUtStrupr (Gbl_Buffer); - - if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) - { - AhDisplayAslKeyword (Keyword); - Found = TRUE; - } - } - - if (!Found) - { - printf ("%s, no matching ASL keywords\n", Name); - } -} - - -/******************************************************************************* - * - * FUNCTION: AhDisplayAslKeyword - * - * PARAMETERS: Op - Pointer to ASL keyword with syntax info - * - * RETURN: None - * - * DESCRIPTION: Format and display syntax info for an ASL keyword. Splits - * long lines appropriately for reading. - * - ******************************************************************************/ - -static void -AhDisplayAslKeyword ( - const AH_ASL_KEYWORD *Op) -{ - - /* ASL keyword name and description */ - - printf ("%22s: %s\n", Op->Name, Op->Description); - if (!Op->KeywordList) - { - return; - } - - /* List of actual keywords */ - - AhPrintOneField (24, 0, AH_MAX_ASL_LINE_LENGTH, Op->KeywordList); - printf ("\n"); -} - - -/******************************************************************************* - * - * FUNCTION: AhFindAslAndAmlOperators - * - * PARAMETERS: Name - Name or prefix for an ASL operator. - * NULL means "find all" - * - * RETURN: None - * - * DESCRIPTION: Find all ASL operators that match the input Name or name - * prefix. Also displays the AML information if only one entry - * matches. - * - ******************************************************************************/ - -void -AhFindAslAndAmlOperators ( - char *Name) -{ - UINT32 MatchCount; - - - MatchCount = AhFindAslOperators (Name); - if (MatchCount == 1) - { - AhFindAmlOpcode (Name); - } -} - - -/******************************************************************************* - * - * FUNCTION: AhFindAslOperators (entry point for ASL operator search) - * - * PARAMETERS: Name - Name or prefix for an ASL operator. - * NULL means "find all" - * - * RETURN: Number of operators that matched the name prefix. - * - * DESCRIPTION: Find all ASL operators that match the input Name or name - * prefix. - * - ******************************************************************************/ - -UINT32 -AhFindAslOperators ( - char *Name) -{ - const AH_ASL_OPERATOR *Operator; - BOOLEAN MatchCount = 0; - - - AcpiUtStrupr (Name); - - /* Find/display all names that match the input name prefix */ - - for (Operator = AslOperatorInfo; Operator->Name; Operator++) - { - if (!Name || (Name[0] == '*')) - { - AhDisplayAslOperator (Operator); - MatchCount++; - continue; - } - - /* Upper case the operator name before substring compare */ - - strcpy (Gbl_Buffer, Operator->Name); - AcpiUtStrupr (Gbl_Buffer); - - if (strstr (Gbl_Buffer, Name) == Gbl_Buffer) - { - AhDisplayAslOperator (Operator); - MatchCount++; - } - } - - if (!MatchCount) - { - printf ("%s, no matching ASL operators\n", Name); - } - - return (MatchCount); -} - - -/******************************************************************************* - * - * FUNCTION: AhDisplayAslOperator - * - * PARAMETERS: Op - Pointer to ASL operator with syntax info - * - * RETURN: None - * - * DESCRIPTION: Format and display syntax info for an ASL operator. Splits - * long lines appropriately for reading. - * - ******************************************************************************/ - -static void -AhDisplayAslOperator ( - const AH_ASL_OPERATOR *Op) -{ - - /* ASL operator name and description */ - - printf ("%16s: %s\n", Op->Name, Op->Description); - if (!Op->Syntax) - { - return; - } - - /* Syntax for the operator */ - - AhPrintOneField (18, 0, AH_MAX_ASL_LINE_LENGTH, Op->Syntax); - printf ("\n"); - - AhDisplayOperatorKeywords (Op); - printf ("\n"); -} - - -/******************************************************************************* - * - * FUNCTION: AhDisplayOperatorKeywords - * - * PARAMETERS: Op - Pointer to ASL keyword with syntax info - * - * RETURN: None - * - * DESCRIPTION: Display any/all keywords that are associated with the ASL - * operator. - * - ******************************************************************************/ - -static void -AhDisplayOperatorKeywords ( - const AH_ASL_OPERATOR *Op) -{ - char *Token; - char *Separators = "(){}, "; - BOOLEAN FirstKeyword = TRUE; - - - if (!Op || !Op->Syntax) - { - return; - } - - /* - * Find all parameters that have the word "keyword" within, and then - * display the info about that keyword - */ - strcpy (Gbl_LineBuffer, Op->Syntax); - Token = strtok (Gbl_LineBuffer, Separators); - while (Token) - { - if (strstr (Token, "Keyword")) - { - if (FirstKeyword) - { - printf ("\n"); - FirstKeyword = FALSE; - } - - /* Found a keyword, display keyword information */ - - AhFindAslKeywords (Token); - } - - Token = strtok (NULL, Separators); - } -} - - -/******************************************************************************* - * - * FUNCTION: AhPrintOneField - * - * PARAMETERS: Indent - Indent length for new line(s) - * CurrentPosition - Position on current line - * MaxPosition - Max allowed line length - * Field - Data to output - * - * RETURN: Line position after field is written - * - * DESCRIPTION: Split long lines appropriately for ease of reading. - * - ******************************************************************************/ - -static void -AhPrintOneField ( - UINT32 Indent, - UINT32 CurrentPosition, - UINT32 MaxPosition, - const char *Field) -{ - UINT32 Position; - UINT32 TokenLength; - const char *This; - const char *Next; - const char *Last; - - - This = Field; - Position = CurrentPosition; - - if (Position == 0) - { - printf ("%*s", (int) Indent, " "); - Position = Indent; - } - - Last = This + strlen (This); - while ((Next = strpbrk (This, " "))) - { - TokenLength = Next - This; - Position += TokenLength; - - /* Split long lines */ - - if (Position > MaxPosition) - { - printf ("\n%*s", (int) Indent, " "); - Position = TokenLength; - } - - printf ("%.*s ", (int) TokenLength, This); - This = Next + 1; - } - - /* Handle last token on the input line */ - - TokenLength = Last - This; - if (TokenLength > 0) - { - Position += TokenLength; - if (Position > MaxPosition) - { - printf ("\n%*s", (int) Indent, " "); - } - - printf ("%s", This); - } -} - - -/******************************************************************************* - * * FUNCTION: AhDisplayDeviceIds * * PARAMETERS: Name - Device Hardware ID string. @@ -1121,7 +527,7 @@ AhDisplayUuids ( /* Display entire table of known ACPI-related UUIDs/GUIDs */ - for (Info = AcpiUuids; Info->Description; Info++) + for (Info = Gbl_AcpiUuids; Info->Description; Info++) { if (!Info->String) /* Null UUID string means group description */ { @@ -1168,7 +574,7 @@ AhDisplayTables ( printf ("Known ACPI tables:\n"); - for (Info = AcpiSupportedTables; Info->Signature; Info++) + for (Info = Gbl_AcpiSupportedTables; Info->Signature; Info++) { printf ("%8s : %s\n", Info->Signature, Info->Description); i++; diff --git a/source/tools/acpihelp/ahgrammar.c b/source/tools/acpihelp/ahgrammar.c index 7375add1d..c8159ce82 100644 --- a/source/tools/acpihelp/ahgrammar.c +++ b/source/tools/acpihelp/ahgrammar.c @@ -115,7 +115,7 @@ #include "acpihelp.h" -const AH_AML_TYPE AmlTypesInfo[] = +const AH_AML_TYPE Gbl_AmlTypesInfo[] = { {"ComputationalData", "ComputationalData :=\n" diff --git a/source/tools/acpihelp/ahmain.c b/source/tools/acpihelp/ahmain.c index b86f79fb0..0c13d654b 100644 --- a/source/tools/acpihelp/ahmain.c +++ b/source/tools/acpihelp/ahmain.c @@ -113,6 +113,7 @@ * *****************************************************************************/ +#define DEFINE_AHELP_GLOBALS #include "acpihelp.h" @@ -133,6 +134,7 @@ AhDisplayUsage ( #define ACPI_OPTION(Name, Description) \ AcpiOsPrintf (" %-24s%s\n", Name, Description); + /****************************************************************************** * * FUNCTION: AhDisplayUsage |